Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 2 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT arrayElement(version_pair, getOSKernelVersion(), 1) Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT arrayElement(version_pair, getOSKernelVersion(), 1)': Received from localhost:9000. DB::Exception: Number of arguments for function arrayElement doesn't match: passed 3, should be 2: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT arrayElement(version_pair, getOSKernelVersion(), 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 3 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 4 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 5 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 6 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 7 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 8 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 9 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 10 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, version_pair[1] Query succeeded, using this AST as a start Fuzzing step 11 out of 1000 WITH splitByChar(' ', getOSKernelVersion(1)) AS version_pair SELECT 1, version_pair[1] Error on processing query 'WITH splitByChar(' ', getOSKernelVersion(1)) AS version_pair SELECT 1, version_pair[1]': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion(1)) AS version_pair SELECT 1, version_pair[1]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 12 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, version_pair[1] Got boring AST Fuzzing step 13 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, version_pair[1] Query succeeded, using this AST as a start Fuzzing step 14 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, version_pair[1] Query succeeded, using this AST as a start Fuzzing step 15 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, version_pair[1] GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ' Query succeeded, using this AST as a start Fuzzing step 16 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, version_pair[1] GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ' Got boring AST Fuzzing step 17 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, version_pair[1] GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ' Got boring AST Fuzzing step 18 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, version_pair[1] GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ' Got boring AST Fuzzing step 19 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, version_pair[1] GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ' Got boring AST Fuzzing step 20 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, version_pair[1] GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ' Got boring AST Fuzzing step 21 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, version_pair[1] GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ' Got boring AST Fuzzing step 22 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, version_pair[1] GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ' Got boring AST Fuzzing step 23 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1, version_pair[1] GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ' Query succeeded, using this AST as a start Fuzzing step 24 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ' Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ' Got boring AST Fuzzing step 26 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ' Got boring AST Fuzzing step 27 out of 1000 WITH splitByChar(' ', getOSKernelVersion(version_pair[1])) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ' Error on processing query 'WITH splitByChar(' ', getOSKernelVersion(version_pair[1])) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' '': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope WITH splitByChar(' ', getOSKernelVersion(version_pair[1])) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' '. Maybe you meant: ['version_pair']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 16. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 28 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ' Got boring AST Fuzzing step 29 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ' Query succeeded, using this AST as a start Fuzzing step 30 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), materialize(toLowCardinality(1)) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (' ')) Query succeeded, using this AST as a start Fuzzing step 31 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), materialize(toLowCardinality(1)) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (' ')) Got boring AST Fuzzing step 32 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), materialize(1) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (' ')) Query succeeded, using this AST as a start Fuzzing step 33 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (' ')) WITH CUBE Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (' ')) WITH CUBE': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343d54d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 34 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), materialize(1) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (' ')) Got boring AST Fuzzing step 35 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), materialize(1) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toLowCardinality(' '))) Query succeeded, using this AST as a start Fuzzing step 36 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), materialize(1) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toLowCardinality(' '))) Got boring AST Fuzzing step 37 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), materialize(1) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toLowCardinality(' '))) Got boring AST Fuzzing step 38 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), materialize(1) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toLowCardinality(' '))) Got boring AST Fuzzing step 39 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toLowCardinality(' '))) Query succeeded, using this AST as a start Fuzzing step 40 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toLowCardinality(' '))) Got boring AST Fuzzing step 41 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 PREWHERE version_pair[1] GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toLowCardinality(' '))) Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 PREWHERE version_pair[1] GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toLowCardinality(' ')))': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: String. In query WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 PREWHERE version_pair[1] GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toLowCardinality(' '))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 42 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toLowCardinality(' '))) Got boring AST Fuzzing step 43 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toLowCardinality(' '))) Got boring AST Fuzzing step 44 out of 1000 WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (' ')) Query succeeded, using this AST as a start Fuzzing step 45 out of 1000 WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 PREWHERE ' ' GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (' ')) Error on processing query 'WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 PREWHERE ' ' GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (' '))': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: String. In query WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 PREWHERE ' ' GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (' ')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 46 out of 1000 WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (' ')) Got boring AST Fuzzing step 47 out of 1000 WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (' ')) WITH TOTALS Error on processing query 'WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (' ')) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS and GROUPING SETS are not supported together. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343db0d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 48 out of 1000 WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (' ')) Got boring AST Fuzzing step 49 out of 1000 WITH splitByChar(toLowCardinality(toFixedString(' ', 1)), getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (' ')) Error on processing query 'WITH splitByChar(toLowCardinality(toFixedString(' ', 1)), getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (' '))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'separator' to function 'splitByChar'. Expected: const String, got: FixedString(1): In scope WITH splitByChar(toLowCardinality(toFixedString(' ', 1)), getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (' ')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 50 out of 1000 WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (' ')) Got boring AST Fuzzing step 51 out of 1000 WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(' '))) Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(' '))) Got boring AST Fuzzing step 53 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(' '))) Query succeeded, using this AST as a start Fuzzing step 54 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(' '))) Got boring AST Fuzzing step 55 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(' '))) Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(' '))) Query succeeded, using this AST as a start Fuzzing step 57 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(' '))) Got boring AST Fuzzing step 58 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(' '))) WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(' '))) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS and GROUPING SETS are not supported together. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343db0d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 59 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT getOSKernelVersion(), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(' '))) Got boring AST Fuzzing step 60 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(' '))) Query succeeded, using this AST as a start Fuzzing step 61 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(' '))) Got boring AST Fuzzing step 62 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(materialize(toFixedString(' ', 1))))) Query succeeded, using this AST as a start Fuzzing step 63 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(materialize(toFixedString(' ', 1))))) Got boring AST Fuzzing step 64 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(materialize(toFixedString(' ', 1))))) Got boring AST Fuzzing step 65 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(toFixedString(' ', 1)))) Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1) WHERE materialize(materialize(toFixedString(' ', 1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion(toNullable(1))), (getOSKernelVersion()), (version_pair), (materialize(toFixedString(' ', 1)))) Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1) WHERE materialize(materialize(toFixedString(' ', 1))) GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion(toNullable(1))), (getOSKernelVersion()), (version_pair), (materialize(toFixedString(' ', 1))))': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1) WHERE materialize(materialize(toFixedString(' ', 1))) GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion(toNullable(1))), (getOSKernelVersion()), (version_pair), (materialize(toFixedString(' ', 1)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 67 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toLowCardinality(1), 1) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(toFixedString(' ', 1)))) Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toLowCardinality(1), 1) GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(toFixedString(' ', 1))))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toLowCardinality(1), 1) GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(toFixedString(' ', 1)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 68 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1) PREWHERE toLowCardinality(' ') GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(toFixedString(' ', 1)))) Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1) PREWHERE toLowCardinality(' ') GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(toFixedString(' ', 1))))': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: LowCardinality(String). In query WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1) PREWHERE toLowCardinality(' ') GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(toFixedString(' ', 1)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 69 out of 1000 WITH splitByChar(' ', getOSKernelVersion(splitByChar(' ', getOSKernelVersion()))) AS version_pair SELECT toNullable(1) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(toFixedString(' ', 1)))) Error on processing query 'WITH splitByChar(' ', getOSKernelVersion(splitByChar(' ', getOSKernelVersion()))) AS version_pair SELECT toNullable(1) GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(toFixedString(' ', 1))))': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion(splitByChar(' ', getOSKernelVersion()))) AS version_pair SELECT toNullable(1) GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(toFixedString(' ', 1)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 70 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(' ', 1))) Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1) GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(' ', 1)))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1) GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(' ', 1))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 71 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(materialize(toNullable(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(toFixedString(' ', 1)))) Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(materialize(toNullable(toNullable(1)))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(toFixedString(' ', 1)))) Query succeeded, using this AST as a start Fuzzing step 73 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(materialize(toNullable(toNullable(1)))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(toFixedString(' ', 1)))) Got boring AST Fuzzing step 74 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(materialize(toNullable(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(' ', 1))) Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(materialize(toNullable(1))) GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(' ', 1)))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(materialize(toNullable(1))) GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(' ', 1))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 75 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(materialize(toNullable(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(toFixedString(' ', 1)))) Query succeeded, using this AST as a start Fuzzing step 76 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(materialize(toNullable(toUInt256(1)))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Query succeeded, using this AST as a start Fuzzing step 77 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Query succeeded, using this AST as a start Fuzzing step 78 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Got boring AST Fuzzing step 79 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Query succeeded, using this AST as a start Fuzzing step 80 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Got boring AST Fuzzing step 81 out of 1000 EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersi. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 82 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Got boring AST Fuzzing step 83 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Got boring AST Fuzzing step 85 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Query succeeded, using this AST as a start Fuzzing step 86 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Got boring AST Fuzzing step 87 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Query succeeded, using this AST as a start Fuzzing step 88 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Got boring AST Fuzzing step 89 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Query succeeded, using this AST as a start Fuzzing step 90 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Query succeeded, using this AST as a start Fuzzing step 91 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Query succeeded, using this AST as a start Fuzzing step 92 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Query succeeded, using this AST as a start Fuzzing step 93 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Got boring AST Fuzzing step 94 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Got boring AST Fuzzing step 95 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Query succeeded, using this AST as a start Fuzzing step 96 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Got boring AST Fuzzing step 97 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Query succeeded, using this AST as a start Fuzzing step 98 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', 1))) Got boring AST Fuzzing step 99 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1) Query succeeded, using this AST as a start Fuzzing step 100 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1) Got boring AST Fuzzing step 101 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(toUInt256(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1) Got boring AST Fuzzing step 102 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toUInt256(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Query succeeded, using this AST as a start Fuzzing step 103 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toUInt256(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Got boring AST Fuzzing step 104 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Query succeeded, using this AST as a start Fuzzing step 105 out of 1000 WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Query succeeded, using this AST as a start Fuzzing step 106 out of 1000 WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Got boring AST Fuzzing step 107 out of 1000 WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Got boring AST Fuzzing step 108 out of 1000 WITH splitByChar(toLowCardinality(toLowCardinality(toNullable(toFixedString(' ', 1)))), getOSKernelVersion()) AS version_pair SELECT toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Error on processing query 'WITH splitByChar(toLowCardinality(toLowCardinality(toNullable(toFixedString(' ', 1)))), getOSKernelVersion()) AS version_pair SELECT toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'separator' to function 'splitByChar'. Expected: const String, got: FixedString(1): In scope WITH splitByChar(toLowCardinality(toLowCardinality(toNullable(toFixedString(' ', 1)))), getOSKernelVersion()) AS version_pair SELECT toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 109 out of 1000 WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Got boring AST Fuzzing step 110 out of 1000 WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Got boring AST Fuzzing step 111 out of 1000 WITH splitByChar(1, toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Error on processing query 'WITH splitByChar(1, toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'separator' to function 'splitByChar'. Expected: const String, got: UInt8: In scope WITH splitByChar(1, toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 112 out of 1000 WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Got boring AST Fuzzing step 113 out of 1000 WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Got boring AST Fuzzing step 114 out of 1000 WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Query succeeded, using this AST as a start Fuzzing step 115 out of 1000 WITH splitByChar(toLowCardinality(toNullable(materialize(toNullable(toNullable(1)))), ' '), getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Error on processing query 'WITH splitByChar(toLowCardinality(toNullable(materialize(toNullable(toNullable(1)))), ' '), getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH splitByChar(toLowCardinality(toNullable(materialize(toNullable(toNullable(1)))), ' '), getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 116 out of 1000 WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Got boring AST Fuzzing step 117 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Query succeeded, using this AST as a start Fuzzing step 118 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Query succeeded, using this AST as a start Fuzzing step 119 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Got boring AST Fuzzing step 120 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Got boring AST Fuzzing step 121 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Got boring AST Fuzzing step 122 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Query succeeded, using this AST as a start Fuzzing step 123 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1 Got boring AST Fuzzing step 124 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toFixedString(' ', 1)), 1 Query succeeded, using this AST as a start Fuzzing step 125 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toFixedString(' ', 1)), 1 Got boring AST Fuzzing step 126 out of 1000 EXPLAIN QUERY TREE passes = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1 Error on processing query 'EXPLAIN QUERY TREE passes = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 127 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toFixedString(' ', 1)), 1 Got boring AST Fuzzing step 128 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toFixedString(' ', 1)), 1 Got boring AST Fuzzing step 129 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 130 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' ', 1), 1 Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' ', 1), 1': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' ', 1), 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 131 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(materialize(toNullable(toNullable(1)))), getOSKernelVersion(), version_pair, materialize(toFixedString(' ', 1)), 1 Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(materialize(toNullable(toNullable(1)))), getOSKernelVersion(), version_pair, materialize(toFixedString(' ', 1)), 1': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(materialize(toNullable(toNullable(1)))), getOSKernelVersion(), version_pair, materialize(toFixedString(' ', 1)), 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 132 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' ', 1), 1 Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' ', 1), 1': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' ', 1), 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 133 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toFixedString(1)), 1 Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toFixedString(1)), 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toFixedString(1)), 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 134 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toFixedString(' ', 1)), 1 Got boring AST Fuzzing step 135 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toFixedString(' ', 1)), 1 Got boring AST Fuzzing step 136 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toFixedString(' ', 1)), 1 Got boring AST Fuzzing step 137 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(1, ' ', 1), 1 Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(1, ' ', 1), 1': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 3, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(1, ' ', 1), 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 138 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' ', 1), 1 Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' ', 1), 1': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' ', 1), 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 139 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' ', 1), 1 Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' ', 1), 1': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' ', 1), 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 140 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(toLowCardinality(1)), getOSKernelVersion(), version_pair, materialize(' ', 1), 1 Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(toLowCardinality(1)), getOSKernelVersion(), version_pair, materialize(' ', 1), 1': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(toLowCardinality(1)), getOSKernelVersion(), version_pair, materialize(' ', 1), 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 141 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toFixedString(' ', 1)), materialize(toUInt128(1)) Query succeeded, using this AST as a start Fuzzing step 142 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toFixedString(' ', 1)), materialize(1) Query succeeded, using this AST as a start Fuzzing step 143 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toFixedString(' ', 1)), materialize(1) Got boring AST Fuzzing step 144 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toFixedString(' ', 1)), materialize(1) Got boring AST Fuzzing step 145 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toFixedString(' ', 1)), materialize(1) Query succeeded, using this AST as a start Fuzzing step 146 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toFixedString(' ', 1)), materialize(1) Got boring AST Fuzzing step 147 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), toLowCardinality(version_pair[1], 1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toFixedString(' ', 1)), materialize(1) Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), toLowCardinality(version_pair[1], 1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toFixedString(' ', 1)), materialize(1)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), toLowCardinality(version_pair[1], 1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toFixedString(' ', 1)), materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 148 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), materialize(1) Query succeeded, using this AST as a start Fuzzing step 149 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), materialize(1) Got boring AST Fuzzing step 150 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), materialize(1) Got boring AST Fuzzing step 151 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1 Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 153 out of 1000 WITH splitByChar(' ') AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toFixedString(' ', 1), 1), 1 WITH TOTALS Error on processing query 'WITH splitByChar(' ') AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toFixedString(' ', 1), 1), 1 WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'splitByChar'. Expected 2 mandatory arguments and 1 optional argument, got 1 argument: In scope WITH splitByChar(' ') AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toFixedString(' ', 1), 1), 1 WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 14. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 154 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 155 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH TOTALS Got boring AST Fuzzing step 156 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH TOTALS Got boring AST Fuzzing step 157 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(toLowCardinality(1)), version_pair, ' ', 1, materialize(toNullable(1)) Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(toLowCardinality(1)), version_pair, ' ', 1, materialize(toNullable(1))': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(toLowCardinality(1)), version_pair, ' ', 1, materialize(toNullable(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 158 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), 1, materialize(toLowCardinality(1)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 159 out of 1000 WITH splitByChar(materialize(toLowCardinality(1)), ' ') AS version_pair SELECT materialize(toLowCardinality(toLowCardinality(toUInt128(1)))), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), 1, materialize(toLowCardinality(1)) WITH TOTALS Error on processing query 'WITH splitByChar(materialize(toLowCardinality(1)), ' ') AS version_pair SELECT materialize(toLowCardinality(toLowCardinality(toUInt128(1)))), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), 1, materialize(toLowCardinality(1)) WITH TOTALS': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'separator' to function 'splitByChar'. Expected: const String, got: UInt8: In scope WITH splitByChar(materialize(toLowCardinality(1)), ' ') AS version_pair SELECT materialize(toLowCardinality(toLowCardinality(toUInt128(1)))), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), 1, materialize(toLowCardinality(1)) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 160 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 161 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(' '), 1, toLowCardinality(1))) WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (materialize(' '), 1, toLowCardinality(1))) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS and GROUPING SETS are not supported together. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343db0d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 162 out of 1000 EXPLAIN QUERY TREE dump_passes = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN QUERY TREE dump_passes = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "dump_passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 163 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(version_pair[1], ' '), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(version_pair[1], ' '), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(version_pair[1], ' '), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 164 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(materialize(' ')), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 165 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(materialize(' ')), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 166 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(materialize(' ')), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 167 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(materialize(' ')), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 168 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(materialize(' ')), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 169 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(materialize(' ')), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 170 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(materialize(' ')), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 171 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(materialize(' ')), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 172 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(materialize(' ')), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 173 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(materialize(' ')), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 174 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(materialize(' ')), 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 175 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(materialize(' ')), 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 176 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(toNullable(materialize(toNullable(toUInt256(1))))), getOSKernelVersion(), version_pair, materialize(' '), 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(toNullable(materialize(toNullable(toUInt256(1))))), getOSKernelVersion(), version_pair, materialize(' '), 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(toNullable(materialize(toNullable(toUInt256(1))))), getOSKernelVersion(), version_pair, materialize(' '), 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 177 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 178 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 179 out of 1000 WITH splitByChar(1, ' ', getOSKernelVersion()) AS version_pair SELECT 1, toLowCardinality(toUInt128(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(1, ' ', getOSKernelVersion()) AS version_pair SELECT 1, toLowCardinality(toUInt128(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'separator' to function 'splitByChar'. Expected: const String, got: UInt8: In scope WITH splitByChar(1, ' ', getOSKernelVersion()) AS version_pair SELECT 1, toLowCardinality(toUInt128(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 180 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 181 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 182 out of 1000 EXPLAIN PIPELINE compact = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN PIPELINE compact = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 183 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 184 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 185 out of 1000 WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT 1, materialize(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT 1, materialize(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'splitByChar'. Expected 2 mandatory arguments and 1 optional argument, got 1 argument: In scope WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT 1, materialize(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 14. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 186 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 187 out of 1000 WITH splitByChar(' ', getOSKernelVersion(version_pair[1])) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion(version_pair[1])) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope WITH splitByChar(' ', getOSKernelVersion(version_pair[1])) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, 1 WITH ROLLUP WITH TOTALS. Maybe you meant: ['version_pair']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 16. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 188 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 189 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(' '), getOSKernelVersion(), version_pair, ' ', 1, toNullable(1) WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(' '), getOSKernelVersion(), version_pair, ' ', 1, toNullable(1) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(' '), getOSKernelVersion(), version_pair, ' ', 1, toNullable(1) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 190 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(toNullable(toUInt256(1))), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(toNullable(toUInt256(1))), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(toNullable(toUInt256(1))), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 191 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 192 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 193 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 194 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toUInt256(toUInt256(1), 1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(materialize(materialize(toFixedString(' ', 1)))), version_pair, toNullable(' '), 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toUInt256(toUInt256(1), 1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(materialize(materialize(toFixedString(' ', 1)))), version_pair, toNullable(' '), 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt256'. Expected 1 argument, got 2 arguments: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toUInt256(toUInt256(1), 1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(materialize(materialize(toFixedString(' ', 1)))), version_pair, toNullable(' '), 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000089618ce 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000893c835 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 195 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 196 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 197 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 PREWHERE toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 PREWHERE toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (8c17915e-b852-4329-9393-082941235aa5)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:257: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000003360556e 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 8. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 11. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 16. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 17. ? @ 0x00007fa035818ac3 18. ? @ 0x00007fa0358aa850 Fuzzing step 198 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 199 out of 1000 WITH splitByChar(' ', getOSKernelVersion(toNullable(' '))) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion(toNullable(' '))) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion(toNullable(' '))) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 200 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt128(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 201 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(version_pair), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(version_pair), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(version_pair), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 202 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt128(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 203 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt128(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 204 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 205 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 206 out of 1000 WITH splitByChar(' ', getOSKernelVersion(1)) AS version_pair SELECT 1, toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion(1)) AS version_pair SELECT 1, toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion(1)) AS version_pair SELECT 1, toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 207 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 208 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 209 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 210 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 211 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 212 out of 1000 EXPLAIN PIPELINE header = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(toNullable(materialize(toNullable(toNullable(1))))), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN PIPELINE header = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(toNullable(materialize(toNullable(toNullable(1))))), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 213 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 214 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 215 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 216 out of 1000 WITH splitByChar(toFixedString(' ', 1), getOSKernelVersion()) AS version_pair SELECT materialize(1), 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(toFixedString(' ', 1), getOSKernelVersion()) AS version_pair SELECT materialize(1), 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'separator' to function 'splitByChar'. Expected: const String, got: FixedString(1): In scope WITH splitByChar(toFixedString(' ', 1), getOSKernelVersion()) AS version_pair SELECT materialize(1), 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 217 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 218 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 219 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1) GROUP BY version_pair, getOSKernelVersion(toLowCardinality(' ')), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1) GROUP BY version_pair, getOSKernelVersion(toLowCardinality(' ')), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1) GROUP BY version_pair, getOSKernelVersion(toLowCardinality(' ')), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 220 out of 1000 WITH splitByChar(' ', getOSKernelVersion(toUInt128(1))) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion(toUInt128(1))) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion(toUInt128(1))) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 221 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 222 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 223 out of 1000 WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'splitByChar'. Expected 2 mandatory arguments and 1 optional argument, got 1 argument: In scope WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 14. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 224 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 225 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 226 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 227 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 228 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(1)), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 229 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(1)), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 230 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(1)), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 231 out of 1000 EXPLAIN QUERY TREE dump_passes = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(1)), 1 WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE dump_passes = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(1)), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "dump_passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 232 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(1)), 1 WITH ROLLUP Got boring AST Fuzzing step 233 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(1)), 1 WITH ROLLUP Got boring AST Fuzzing step 234 out of 1000 WITH splitByChar(toNullable(' '), getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(1)), 1 WITH ROLLUP Error on processing query 'WITH splitByChar(toNullable(' '), getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(1)), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Nested type Array(String) cannot be inside Nullable type: In scope WITH splitByChar(toNullable(' '), getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(1)), 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/DataTypes/DataTypeNullable.cpp:30: DB::DataTypeNullable::DataTypeNullable(std::shared_ptr const&) @ 0x000000003244ee8d 5. ./contrib/llvm-project/libcxx/include/__memory/allocation_guard.h:66: std::shared_ptr std::allocate_shared[abi:v15007], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x000000002fda8783 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:0: DB::makeNullable(std::shared_ptr const&) @ 0x0000000032451783 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b32d 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 14. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 235 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(1)), 1 WITH ROLLUP Got boring AST Fuzzing step 236 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(1)), 1 WITH ROLLUP Got boring AST Fuzzing step 237 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 238 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 239 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 240 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 241 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 242 out of 1000 EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 243 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 244 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 245 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 246 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 247 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 248 out of 1000 WITH splitByChar(' ', getOSKernelVersion(toNullable(toNullable(1)))) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion(toNullable(toNullable(1)))) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion(toNullable(toNullable(1)))) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 249 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 250 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 251 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 252 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 253 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 254 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 255 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 256 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 257 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(materialize(toFixedString(' ', 1))), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(materialize(toFixedString(' ', 1))), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(materialize(toFixedString(' ', 1))), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 258 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 259 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 260 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 261 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 262 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 263 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 264 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 265 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 266 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 267 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 268 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 269 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 270 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(toNullable(1)), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 271 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 272 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(toNullable(1)), 1 WITH ROLLUP Got boring AST Fuzzing step 273 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(toNullable(1)), 1 WITH ROLLUP Got boring AST Fuzzing step 274 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(toNullable(1)), 1 WITH ROLLUP Got boring AST Fuzzing step 275 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 276 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 277 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 278 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 279 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 280 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 281 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 282 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 283 out of 1000 WITH splitByChar(' ', toLowCardinality(1), getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', toLowCardinality(1), getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 's' to function 'splitByChar'. Expected: String, got: UInt8: In scope WITH splitByChar(' ', toLowCardinality(1), getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 284 out of 1000 WITH splitByChar(' ', getOSKernelVersion(materialize(materialize(' ', 1)))) AS version_pair SELECT 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion(materialize(materialize(' ', 1)))) AS version_pair SELECT 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion(materialize(materialize(' ', 1)))) AS version_pair SELECT 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 21. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 285 out of 1000 EXPLAIN QUERY TREE passes = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE passes = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 286 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 287 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(toNullable(1)), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 288 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(toNullable(1)), 1 WITH ROLLUP Got boring AST Fuzzing step 289 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 290 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Got boring AST Fuzzing step 291 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(materialize(toUInt128(1))) GROUP BY version_pair, getOSKernelVersion(toNullable(materialize(toNullable(1)))), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(materialize(toUInt128(1))) GROUP BY version_pair, getOSKernelVersion(toNullable(materialize(toNullable(1)))), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(materialize(toUInt128(1))) GROUP BY version_pair, getOSKernelVersion(toNullable(materialize(toNullable(1)))), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 292 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 293 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP Got boring AST Fuzzing step 294 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(materialize(materialize(toLowCardinality(1)), 1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(materialize(materialize(toLowCardinality(1)), 1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(materialize(materialize(toLowCardinality(1)), 1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 295 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(materialize(toFixedString(' ', 1), 1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(materialize(toFixedString(' ', 1), 1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(materialize(toFixedString(' ', 1), 1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 296 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP Got boring AST Fuzzing step 297 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(' ', materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(' ', materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(' ', materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 298 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP Got boring AST Fuzzing step 299 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1 WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 300 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(materialize(1)), 1 WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toNullable(' ')), 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 301 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1), 1 WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toNullable(' ')), 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 302 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1), 1 WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toNullable(' ')), 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 303 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1), 1 WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 304 out of 1000 WITH splitByChar(materialize(toNullable(' ')), getOSKernelVersion()) AS version_pair SELECT materialize(1), 1 WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(materialize(toNullable(' ')), getOSKernelVersion()) AS version_pair SELECT materialize(1), 1 WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'separator' to function 'splitByChar'. Expected: const String, got: String: In scope WITH splitByChar(materialize(toNullable(' ')), getOSKernelVersion()) AS version_pair SELECT materialize(1), 1 WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 305 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 WHERE materialize(materialize(toUInt256(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 WHERE materialize(materialize(toUInt256(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type UInt256 of column materialize(materialize(_CAST('1'_UInt256, 'UInt256'_String))) for filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000a853ded 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:46: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000003b83783e 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:0: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000003be3875c 6. ./contrib/llvm-project/libcxx/include/string:1499: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&, String&, bool&) @ 0x0000000034c6d231 7. ./build_docker/./src/Planner/Planner.cpp:360: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d275ce 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0f791 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 14. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 19. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 20. ? @ 0x00007fa035818ac3 21. ? @ 0x00007fa0358aa850 Fuzzing step 306 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1), 1 WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), toUInt256(1), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1), 1 WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(' ', 1)), toUInt256(1), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 308 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1), 1 WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(' ', 1)), toUInt256(1), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 309 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1), 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(' ', 1)), toUInt256(1), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 310 out of 1000 WITH splitByChar(' ', getOSKernelVersion(toNullable(toFixedString(' ', 1)))) AS version_pair SELECT materialize(1), 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(' ', 1)), toUInt256(1), 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion(toNullable(toFixedString(' ', 1)))) AS version_pair SELECT materialize(1), 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(' ', 1)), toUInt256(1), 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion(toNullable(toFixedString(' ', 1)))) AS version_pair SELECT materialize(1), 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(' ', 1)), toUInt256(1), 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 311 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1), 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), toUInt256(1), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 312 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1), materialize(1) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), toUInt256(1), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 313 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1), materialize(1) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt256(1), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 314 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1), 1 WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt256(1), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 315 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt256(1), toNullable(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 316 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(materialize(toNullable(1))), version_pair, ' ', 1, toUInt256(1), toNullable(1) WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(materialize(toNullable(1))), version_pair, ' ', 1, toUInt256(1), toNullable(1) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(materialize(toNullable(1))), version_pair, ' ', 1, toUInt256(1), toNullable(1) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 317 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toNullable(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 318 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, toNullable(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 319 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, toNullable(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 320 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, toNullable(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 321 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 322 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 323 out of 1000 EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1 WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pai. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 324 out of 1000 WITH splitByChar(materialize(toNullable(' ')), ' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1 WITH ROLLUP WITH CUBE WITH TOTALS Error on processing query 'WITH splitByChar(materialize(toNullable(' ')), ' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1 WITH ROLLUP WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 254 ('CUBE'): CUBE WITH TOTALS. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 325 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 326 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 327 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 328 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toNullable(toFixedString(' ', 1)), ' '), 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toNullable(toFixedString(' ', 1)), ' '), 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toNullable(toFixedString(' ', 1)), ' '), 1, 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 329 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, materialize(toLowCardinality(1)) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 330 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(version_pair[1]), version_pair, toNullable(toFixedString(' ', 1)), 1, 1, materialize(1) WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(version_pair[1]), version_pair, toNullable(toFixedString(' ', 1)), 1, 1, materialize(1) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(version_pair[1]), version_pair, toNullable(toFixedString(' ', 1)), 1, 1, materialize(1) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 331 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, 1, materialize(toLowCardinality(1)) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 332 out of 1000 WITH splitByChar(materialize(toNullable(toNullable(1))), ' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(materialize(toLowCardinality(1))), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, 1, materialize(toLowCardinality(1)) WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(materialize(toNullable(toNullable(1))), ' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(materialize(toLowCardinality(1))), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, 1, materialize(toLowCardinality(1)) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'separator' to function 'splitByChar'. Expected: const String, got: UInt8: In scope WITH splitByChar(materialize(toNullable(toNullable(1))), ' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(materialize(toLowCardinality(1))), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, 1, materialize(toLowCardinality(1)) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 333 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, toUInt256(1), materialize(toLowCardinality(1)) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 334 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, toUInt256(1), materialize(toLowCardinality(1)) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 335 out of 1000 WITH splitByChar(' ', getOSKernelVersion(toNullable(splitByChar(toLowCardinality(' '), getOSKernelVersion()), materialize(toNullable(toNullable(1)))))) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, toUInt256(1), toLowCardinality(1) WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion(toNullable(splitByChar(toLowCardinality(' '), getOSKernelVersion()), materialize(toNullable(toNullable(1)))))) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, toUInt256(1), toLowCardinality(1) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion(toNullable(splitByChar(toLowCardinality(' '), getOSKernelVersion()), materialize(toNullable(toNullable(1)))))) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, toUInt256(1), toLowCardinality(1) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 18. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 336 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 PREWHERE toLowCardinality(' ') GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 PREWHERE toLowCardinality(' ') GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: LowCardinality(String). In query WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 PREWHERE toLowCardinality(' ') GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 337 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, toUInt256(1), materialize(toLowCardinality(1)) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 338 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, toUInt256(1), materialize(toLowCardinality(1)) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 339 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, toUInt256(1), materialize(toLowCardinality(1)) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 340 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, materialize(toNullable(toNullable(1))), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, toUInt256(1), materialize(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 341 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, materialize(toNullable(toNullable(1))), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, toUInt256(1), materialize(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 342 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, materialize(toNullable(toNullable(1))), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt256(1), materialize(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 343 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, materialize(toNullable(toNullable(1))), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(1)), toUInt256(1), materialize(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 344 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, materialize(toNullable(toNullable(1))), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), toUInt256(1), materialize(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 345 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, materialize(toNullable(toNullable(1))), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt256(1), materialize(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 346 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(toNullable(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt256(1), materialize(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 347 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(toNullable(toNullable(1))), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt256(1), materialize(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 348 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(toNullable(1)), 1 WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(toNullable(1)), 1 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 349 out of 1000 EXPLAIN PIPELINE compact = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(toNullable(toNullable(1))), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt256(toUInt128(1)), materialize(1) WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN PIPELINE compact = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(toNullable(toNullable(1))), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt256(toUInt128(1)), materialize(1) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 350 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(toNullable(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt256(1), materialize(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 351 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt256(1), materialize(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 352 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(materialize(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt256(1), materialize(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 353 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(materialize(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt256(1), materialize(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 354 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt256(1), materialize(1) WITH ROLLUP WITH CUBE WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt256(1), materialize(1) WITH ROLLUP WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 283 ('CUBE'): CUBE WITH TOTALS. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 355 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(materialize(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt256(1), materialize(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 356 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(materialize(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt256(1), materialize(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 357 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(materialize(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toNullable(toFixedString(' ', 1))), 1, toUInt256(1), materialize(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 358 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(materialize(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(' ', 1)), 1, 1, materialize(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 359 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(' ', splitByChar(1, toLowCardinality(' '), getOSKernelVersion()), toLowCardinality(1))), 1, 1, materialize(1) WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(' ', splitByChar(1, toLowCardinality(' '), getOSKernelVersion()), toLowCardinality(1))), 1, 1, materialize(1) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'separator' to function 'splitByChar'. Expected: const String, got: UInt8: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(' ', splitByChar(1, toLowCardinality(' '), getOSKernelVersion()), toLowCardinality(1))), 1, 1, materialize(1) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 360 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(materialize(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(materialize(toNullable(toUInt256(1)))), version_pair, toNullable(toNullable(materialize(toNullable(1))), toFixedString(' ', 1)), 1, 1, materialize(1) WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(materialize(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(materialize(toNullable(toUInt256(1)))), version_pair, toNullable(toNullable(materialize(toNullable(1))), toFixedString(' ', 1)), 1, 1, materialize(1) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(materialize(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(materialize(toNullable(toUInt256(1)))), version_pair, toNullable(toNullable(materialize(toNullable(1))), toFixedString(' ', 1)), 1, 1, materialize(1) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 361 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(materialize(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(' ', 1)), 1, 1, materialize(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 362 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(materialize(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(toFixedString(' ', 1), 1)), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 363 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(' ', 1, 1)), 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(' ', 1, 1)), 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(' ', 1, 1)), 1, 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 364 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(materialize(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(toFixedString(' ', 1), 1)), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 365 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(' ', 1, 1)), 1, toUInt128(1), 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(' ', 1, 1)), 1, toUInt128(1), 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(' ', 1, 1)), 1, toUInt128(1), 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 366 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), materialize(materialize(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(toFixedString(' ', 1), 1)), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 367 out of 1000 WITH splitByChar(toLowCardinality(' '), getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(materialize(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', 1), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 368 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(materialize(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', 1), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 369 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(materialize(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', 1), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 370 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(materialize(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', 1), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 371 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(materialize(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', 1), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 372 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', 1), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 373 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 374 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 375 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1), 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1), 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 377 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1), 1, materialize(1), toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 378 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 379 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(toNullable(toNullable(1)), 1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', 1), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(toNullable(toNullable(1)), 1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', 1), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(toNullable(toNullable(1)), 1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', 1), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 380 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toNullable(1), 1), 1, 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toNullable(1), 1), 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toNullable(1), 1), 1, 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 381 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 PREWHERE toNullable(materialize(toUInt256(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, materialize(1) WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 PREWHERE toNullable(materialize(toUInt256(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, materialize(1) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (8c17915e-b852-4329-9393-082941235aa5)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:257: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000003360556e 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 8. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 11. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 16. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 17. ? @ 0x00007fa035818ac3 18. ? @ 0x00007fa0358aa850 Fuzzing step 382 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY GROUPING SETS ( (version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', toNullable(1), 1), 1, 1, 1)) WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY GROUPING SETS ((version_pair), (getOSKernelVersion()), (getOSKernelVersion()), (version_pair), (toFixedString(' ', toNullable(1), 1), 1, 1, 1)) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS and GROUPING SETS are not supported together. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343db0d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 383 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 384 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 385 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 386 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 387 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 388 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 389 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 390 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 391 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 392 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 393 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 394 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 395 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 396 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 397 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 398 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 399 out of 1000 EXPLAIN TABLE OVERRIDE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSK. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 400 out of 1000 EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSK. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 401 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 402 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 403 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 404 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 405 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 406 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 407 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 408 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 409 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 410 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 411 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 412 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 413 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 414 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 415 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 416 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 417 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 418 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 419 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 420 out of 1000 EXPLAIN TABLE OVERRIDE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSK. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 421 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 422 out of 1000 EXPLAIN TABLE OVERRIDE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSK. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 423 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 424 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 425 out of 1000 EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSK. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 426 out of 1000 EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSK. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 427 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 428 out of 1000 EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSK. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 429 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 430 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 431 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 432 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 433 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 434 out of 1000 EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toNullable(1)), 1), 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSK. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 435 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toNullable(1)), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 436 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toNullable(1)), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 437 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 438 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toNullable(1)), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 439 out of 1000 WITH splitByChar(materialize(toFixedString(' ', 1)), getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toNullable(1)), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(materialize(toFixedString(' ', 1)), getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toNullable(1)), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'separator' to function 'splitByChar'. Expected: const String, got: FixedString(1): In scope WITH splitByChar(materialize(toFixedString(' ', 1)), getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toNullable(1)), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 440 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 WHERE 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toNullable(toFixedString(' ', 1), toUInt128(1))), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 WHERE 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toNullable(toFixedString(' ', 1), toUInt128(1))), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 WHERE 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toNullable(toFixedString(' ', 1), toUInt128(1))), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 441 out of 1000 WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 WITH TOTALS Error on processing query 'WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 442 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toNullable(1)), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 443 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, materialize(1), materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toNullable(1)), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 444 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, materialize(1), materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toNullable(1)), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 445 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, materialize(1), toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toNullable(1)), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 446 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, materialize(1), toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toNullable(1)), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 447 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, materialize(1), toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 448 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, materialize(1), toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 449 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, 1, toNullable(toUInt128(1)), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 450 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, 1, toNullable(1), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 451 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, materialize(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, 1, toNullable(1), toNullable(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 452 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, materialize(toUInt256(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, 1, toNullable(1), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 453 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(toUInt256(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toNullable(1), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 454 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(toUInt256(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toNullable(1), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 455 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(toUInt256(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 456 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(toUInt256(1)), 1 GROUP BY version_pair, getOSKernelVersion(toNullable(1)), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(toUInt256(1)), 1 GROUP BY version_pair, getOSKernelVersion(toNullable(1)), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(toUInt256(1)), 1 GROUP BY version_pair, getOSKernelVersion(toNullable(1)), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 457 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(toUInt256(1)), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 458 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(toUInt256(materialize(toNullable(toFixedString(' ', 1), toNullable(1))), 1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(toUInt256(materialize(toNullable(toFixedString(' ', 1), toNullable(1))), 1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(toUInt256(materialize(toNullable(toFixedString(' ', 1), toNullable(1))), 1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 459 out of 1000 EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(toUInt256(toNullable(toUInt128(1)))), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(version_pair[1]), version_pair, ' ', toNullable(1), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(toUInt256(toNullable(toUInt128(1)))), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(version_pair[1]), version_pair, ' ', toNullable(1), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(toUInt256(toNullable(toUInt128(1)))), materialize. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 460 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 461 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(1), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(1), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(1), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 462 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 463 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 464 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 465 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(toNullable(1)), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 466 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toNullable(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 467 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toNullable(getOSKernelVersion(), 1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toLowCardinality(1), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toNullable(getOSKernelVersion(), 1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toLowCardinality(1), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toNullable(getOSKernelVersion(), 1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toLowCardinality(1), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 468 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toNullable(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 469 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt256(1), ' ', 1, toNullable(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 470 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt256(1), ' ', 1, toNullable(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 471 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt256(1), ' ', 1, toNullable(1), materialize(1) PREWHERE toNullable(' ') GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt256(1), ' ', 1, toNullable(1), materialize(1) PREWHERE toNullable(' ') GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: Nullable(String). In query WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt256(1), ' ', 1, toNullable(1), materialize(1) PREWHERE toNullable(' ') GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 472 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toNullable(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 473 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toNullable(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 474 out of 1000 EXPLAIN TABLE OVERRIDE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toNullable(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toNullable(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toNullable(1), 1 GROUP BY version_pair, getOSKernelVersio. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 475 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 476 out of 1000 WITH splitByChar(toNullable(toNullable(toUInt256(1))), ' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(toNullable(toNullable(toUInt256(1))), ' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'separator' to function 'splitByChar'. Expected: const String, got: UInt256: In scope WITH splitByChar(toNullable(toNullable(toUInt256(1))), ' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 477 out of 1000 WITH splitByChar(toNullable(' '), getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(toFixedString(' ', 1, 1)), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(toNullable(' '), getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(toFixedString(' ', 1, 1)), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Nested type Array(String) cannot be inside Nullable type: In scope WITH splitByChar(toNullable(' '), getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(toFixedString(' ', 1, 1)), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/DataTypes/DataTypeNullable.cpp:30: DB::DataTypeNullable::DataTypeNullable(std::shared_ptr const&) @ 0x000000003244ee8d 5. ./contrib/llvm-project/libcxx/include/__memory/allocation_guard.h:66: std::shared_ptr std::allocate_shared[abi:v15007], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x000000002fda8783 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:0: DB::makeNullable(std::shared_ptr const&) @ 0x0000000032451783 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b32d 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 14. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 478 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 479 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, toUInt256(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 480 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 481 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 482 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 483 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 484 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 485 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 486 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 487 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 488 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 489 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 490 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(toUInt128(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt128(1), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 491 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt128(1), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 492 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt128(1), 1, 1 WITH ROLLUP Got boring AST Fuzzing step 493 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 494 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 495 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 496 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 497 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(materialize(toLowCardinality(1))), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 498 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(materialize(toLowCardinality(1))), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 499 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 500 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 501 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(materialize(' ')), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(materialize(' ')), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(materialize(' ')), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 502 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH CUBE Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 294 ('CUBE'): CUBE. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 503 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 504 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 505 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toLowCardinality(' ')), 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 506 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(materialize(1), toLowCardinality(' ')), 1, 1, 1, 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(materialize(1), toLowCardinality(' ')), 1, 1, 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(materialize(1), toLowCardinality(' ')), 1, 1, 1, 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 507 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toLowCardinality(' ')), 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 508 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toLowCardinality(' ')), materialize(1), 1, toLowCardinality(1), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 509 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toLowCardinality(' ')), materialize(1), 1, toLowCardinality(1), 1, 1 WITH ROLLUP Got boring AST Fuzzing step 510 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(toLowCardinality(' ')), materialize(1), 1, toLowCardinality(1), 1, 1 WITH ROLLUP Got boring AST Fuzzing step 511 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), materialize(1), 1, toLowCardinality(1), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 512 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), materialize(1), 1, toLowCardinality(1), 1, 1 WITH ROLLUP Got boring AST Fuzzing step 513 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), materialize(1), 1, toLowCardinality(1), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(toLowCardinality(' '), ' '), materialize(1), 1, toLowCardinality(1), 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(toLowCardinality(' '), ' '), materialize(1), 1, toLowCardinality(1), 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(toLowCardinality(' '), ' '), materialize(1), 1, toLowCardinality(1), 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 515 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), toLowCardinality(1) PREWHERE toNullable(' ') GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), materialize(toUInt256(toNullable(1)), 1), 1, toLowCardinality(1), 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), toLowCardinality(1) PREWHERE toNullable(' ') GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), materialize(toUInt256(toNullable(1)), 1), 1, toLowCardinality(1), 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), toLowCardinality(1) PREWHERE toNullable(' ') GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), materialize(toUInt256(toNullable(1)), 1), 1, toLowCardinality(1), 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 516 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), toLowCardinality(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), materialize(1), 1, toLowCardinality(1), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 517 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), toLowCardinality(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), materialize(1), 1, toLowCardinality(1), 1, 1 WITH ROLLUP Got boring AST Fuzzing step 518 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), toLowCardinality(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, toLowCardinality(1), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 519 out of 1000 EXPLAIN PIPELINE header = true WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), toLowCardinality(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, toLowCardinality(1), materialize(1), 1 WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE header = true WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), toLowCardinality(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, toLowCardinality(1), materialize(1), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 520 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), toLowCardinality(materialize(toLowCardinality(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, toLowCardinality(1), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, toLowCardinality(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(toFixedString(toFixedString(' ', toNullable(1)), 1)), version_pair, ' ', materialize(1), 1, 1, 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, toLowCardinality(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(toFixedString(toFixedString(' ', toNullable(1)), 1)), version_pair, ' ', materialize(1), 1, 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, toLowCardinality(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(toFixedString(toFixedString(' ', toNullable(1)), 1)), version_pair, ' ', materialize(1), 1, 1, 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 522 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 523 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 524 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, materialize(1) PREWHERE getOSKernelVersion() GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, materialize(1) PREWHERE getOSKernelVersion() GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: String. In query WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, materialize(1) PREWHERE getOSKernelVersion() GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 525 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(materialize(toNullable(toUInt256(1))), 1), materialize(toLowCardinality(toLowCardinality(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(materialize(toNullable(toUInt256(1))), 1), materialize(toLowCardinality(toLowCardinality(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(materialize(toNullable(toUInt256(1))), 1), materialize(toLowCardinality(toLowCardinality(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 526 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 527 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, toLowCardinality(1), materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 528 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, toLowCardinality(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toNullable(1), 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 529 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toNullable(1), 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 530 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 531 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 532 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 533 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 534 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, materialize(toUInt256(1)), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 535 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, materialize(toUInt256(1)), 1, 1 WITH ROLLUP Got boring AST Fuzzing step 536 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, 1, 1 WHERE materialize(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, materialize(toUInt256(1)), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 537 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, 1, 1 WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, 1, 1 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 538 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, 1, 1 WHERE materialize(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, materialize(1), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 539 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, materialize(1), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 540 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(' ', 1, 1), toNullable(' '), 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(' ', 1, 1), toNullable(' '), 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(' ', 1, 1), toNullable(' '), 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 541 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, materialize(1), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 542 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, materialize(1), 1, 1 WITH ROLLUP Got boring AST Fuzzing step 543 out of 1000 WITH splitByChar(materialize(toLowCardinality(' ')), getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, materialize(toLowCardinality(1)), 1 WITH ROLLUP Error on processing query 'WITH splitByChar(materialize(toLowCardinality(' ')), getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, materialize(toLowCardinality(1)), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'separator' to function 'splitByChar'. Expected: const String, got: String: In scope WITH splitByChar(materialize(toLowCardinality(' ')), getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, materialize(toLowCardinality(1)), 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 544 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, materialize(1), 1, 1 WITH ROLLUP Got boring AST Fuzzing step 545 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, materialize(1), 1, 1 WITH ROLLUP Got boring AST Fuzzing step 546 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, materialize(1), 1, 1 WITH ROLLUP Got boring AST Fuzzing step 547 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, materialize(1), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 548 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, materialize(1), 1, 1 WITH ROLLUP Got boring AST Fuzzing step 549 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 550 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 551 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, materialize(1), toUInt128(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 552 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, materialize(1), toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 553 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, materialize(1), toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 554 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 555 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 556 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 557 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 558 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 559 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 560 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 561 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 562 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 563 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 564 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 565 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 566 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 567 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 568 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 569 out of 1000 EXPLAIN TABLE OVERRIDE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 570 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 571 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 572 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 573 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 574 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 575 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 576 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 577 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 578 out of 1000 EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 579 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 580 out of 1000 EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 581 out of 1000 EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 582 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 583 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 584 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 585 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 586 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 587 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 588 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 589 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 590 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 591 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(toLowCardinality(1)), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 592 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT splitByChar(' ', toLowCardinality(1), getOSKernelVersion()), 1, ' ', 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toLowCardinality(1), 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT splitByChar(' ', toLowCardinality(1), getOSKernelVersion()), 1, ' ', 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toLowCardinality(1), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 's' to function 'splitByChar'. Expected: String, got: UInt8: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT splitByChar(' ', toLowCardinality(1), getOSKernelVersion()), 1, ' ', 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toLowCardinality(1), 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 593 out of 1000 WITH splitByChar(toNullable(' '), getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(1) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(toLowCardinality(1)), 1 WITH ROLLUP Error on processing query 'WITH splitByChar(toNullable(' '), getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(1) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(toLowCardinality(1)), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Nested type Array(String) cannot be inside Nullable type: In scope WITH splitByChar(toNullable(' '), getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, materialize(1) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(toLowCardinality(1)), 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/DataTypes/DataTypeNullable.cpp:30: DB::DataTypeNullable::DataTypeNullable(std::shared_ptr const&) @ 0x000000003244ee8d 5. ./contrib/llvm-project/libcxx/include/__memory/allocation_guard.h:66: std::shared_ptr std::allocate_shared[abi:v15007], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x000000002fda8783 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:0: DB::makeNullable(std::shared_ptr const&) @ 0x0000000032451783 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b32d 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 14. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 594 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(toLowCardinality(1)), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 595 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(toLowCardinality(1)), 1 WITH ROLLUP Got boring AST Fuzzing step 596 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(1), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 597 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(toUInt128(1)), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(1), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(toUInt128(1)), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(1), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(toUInt128(1)), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(1), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 598 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 599 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 600 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 601 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 602 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 603 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 604 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 605 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 606 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 607 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 608 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 609 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 610 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 611 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 612 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 613 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 614 out of 1000 EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, ge. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 615 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 616 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 617 out of 1000 EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, ge. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 618 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 619 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 620 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 621 out of 1000 EXPLAIN TABLE OVERRIDE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, ge. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 622 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 623 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toUInt256(toNullable(1)), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 624 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(toNullable(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, toNullable(1), toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 625 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toLowCardinality(toNullable(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 626 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(toLowCardinality(1)), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 627 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(toLowCardinality(toLowCardinality(1))), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 628 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(toFixedString(' ', toNullable(1)), 1), version_pair, ' ', 1, 1, 1, toUInt128(toLowCardinality(toLowCardinality(1))), 1 WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(toFixedString(' ', toNullable(1)), 1), version_pair, ' ', 1, 1, 1, toUInt128(toLowCardinality(toLowCardinality(1))), 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 2, should be 0: While processing getOSKernelVersion(toFixedString(' ', toNullable(1)), 1): While processing WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toNullable(1)) GROUP BY getOSKernelVersion(toFixedString(' ', toNullable(1)), 1), getOSKernelVersion() WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 14. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActionsNoMakeSet(std::shared_ptr const&, DB::ActionsDAG&, bool) @ 0x0000000033a70990 15. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalyzer::analyzeAggregation(DB::ActionsDAG&) @ 0x0000000033a69b7a 16. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x0000000033a64f39 17. ./src/Interpreters/ExpressionAnalyzer.h:324: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x0000000034c6416d 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0a180 19. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 20. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 22. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 23. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 24. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 25. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 27. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 28. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 629 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toUInt128(toLowCardinality(toLowCardinality(1))), materialize(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 630 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toLowCardinality(toLowCardinality(1)), materialize(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 631 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(' '), 1, 1 WHERE materialize(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toLowCardinality(1), materialize(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 632 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1 WHERE materialize(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toLowCardinality(1), materialize(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 633 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(1)), ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toLowCardinality(1), materialize(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 634 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(1)), ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toLowCardinality(1), materialize(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 635 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1), ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, toLowCardinality(1), 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 636 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(1), ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 637 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 638 out of 1000 WITH splitByChar(toLowCardinality(toNullable(' ')), getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1, ' ', materialize(1), 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(materialize(materialize(' '))), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(toLowCardinality(toNullable(' ')), getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1, ' ', materialize(1), 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(materialize(materialize(' '))), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Nested type Array(String) cannot be inside Nullable type: In scope WITH splitByChar(toLowCardinality(toNullable(' ')), getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1, ' ', materialize(1), 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(materialize(materialize(' '))), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/DataTypes/DataTypeNullable.cpp:30: DB::DataTypeNullable::DataTypeNullable(std::shared_ptr const&) @ 0x000000003244ee8d 5. ./contrib/llvm-project/libcxx/include/__memory/allocation_guard.h:66: std::shared_ptr std::allocate_shared[abi:v15007], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x000000002fda8783 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:0: DB::makeNullable(std::shared_ptr const&) @ 0x0000000032451783 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b32d 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 14. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 639 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 640 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1, ' ', 1, toLowCardinality(1) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 641 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1, ' ', 1, toLowCardinality(1) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, materialize(1), 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 642 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1, ' ', 1, toLowCardinality(1) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, toLowCardinality(toNullable(toFixedString(' ', toNullable(1)), toUInt256(1))) WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1, ' ', 1, toLowCardinality(1) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, toLowCardinality(toNullable(toFixedString(' ', toNullable(1)), toUInt256(1))) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1, ' ', 1, toLowCardinality(1) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, toLowCardinality(toNullable(toFixedString(' ', toNullable(1)), toUInt256(1))) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 643 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, toLowCardinality(1) WHERE materialize(1) WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, toLowCardinality(1) WHERE materialize(1) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 644 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, materialize(1), 1, 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 645 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, materialize(1), 1, 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 646 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, materialize(1), 1, 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 647 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, materialize(1), toUInt256(1), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 648 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, materialize(1), 1, 1, toLowCardinality(1) WITH ROLLUP WITH CUBE WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, materialize(1), 1, 1, toLowCardinality(1) WITH ROLLUP WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 355 ('CUBE'): CUBE WITH TOTALS. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 649 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, 1 PREWHERE toNullable(toNullable(toNullable(1))) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, materialize(1), toUInt256(1), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, 1 PREWHERE toNullable(toNullable(toNullable(1))) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, materialize(1), toUInt256(1), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (8c17915e-b852-4329-9393-082941235aa5)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:257: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000003360556e 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 8. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 11. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 16. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 17. ? @ 0x00007fa035818ac3 18. ? @ 0x00007fa0358aa850 Fuzzing step 650 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, materialize(1), toUInt256(1), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 651 out of 1000 WITH splitByChar(1, ' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(getOSKernelVersion()), version_pair, toFixedString(' ', 1), 1, 1, toUInt256(1), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(1, ' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(getOSKernelVersion()), version_pair, toFixedString(' ', 1), 1, 1, toUInt256(1), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'separator' to function 'splitByChar'. Expected: const String, got: UInt8: In scope WITH splitByChar(1, ' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(1), ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(getOSKernelVersion()), version_pair, toFixedString(' ', 1), 1, 1, toUInt256(1), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 652 out of 1000 WITH splitByChar(materialize(toLowCardinality(toNullable(1))), ' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, 1 WHERE materialize(toNullable(toUInt256(1)), 1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, 1, 1, 1, toLowCardinality(materialize(toLowCardinality(1))) WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(materialize(toLowCardinality(toNullable(1))), ' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, 1 WHERE materialize(toNullable(toUInt256(1)), 1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, 1, 1, 1, toLowCardinality(materialize(toLowCardinality(1))) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(materialize(toLowCardinality(toNullable(1))), ' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, 1 WHERE materialize(toNullable(toUInt256(1)), 1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, 1, 1, 1, toLowCardinality(materialize(toLowCardinality(1))) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 653 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', materialize(toFixedString(' ', 1)), 1), 1, materialize(1), toUInt256(1), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', materialize(toFixedString(' ', 1)), 1), 1, materialize(1), toUInt256(1), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', materialize(toFixedString(' ', 1)), 1), 1, materialize(1), toUInt256(1), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 654 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, materialize(1), toUInt256(1), 1, 1 WITH ROLLUP WITH CUBE WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, materialize(1), toUInt256(1), 1, 1 WITH ROLLUP WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 349 ('CUBE'): CUBE WITH TOTALS. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 655 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, materialize(1), toUInt256(1), 1, toLowCardinality(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 656 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, materialize(1), 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 657 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt128(1), 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, materialize(1), 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 658 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt128(1), 1, ' ', 1, 1 WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), toUInt256(1), 1, 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 659 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt128(1), 1, ' ', 1, materialize(toUInt256(1)) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), toUInt256(1), 1, 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 660 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt128(toLowCardinality(' '), 1), 1, ' ', 1, materialize(toUInt256(1)) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toNullable(1)), toUInt256(1), toNullable(1), 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt128(toLowCardinality(' '), 1), 1, ' ', 1, materialize(toUInt256(1)) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toNullable(1)), toUInt256(1), toNullable(1), 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt128'. Expected 1 argument, got 2 arguments: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt128(toLowCardinality(' '), 1), 1, ' ', 1, materialize(toUInt256(1)) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', toNullable(1)), toUInt256(1), toNullable(1), 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000890dd2e 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000088e5f75 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 661 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, materialize(toUInt256(1)) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt256(toFixedString(toNullable(toFixedString(' ', 1, 1), 1)), 1), 1, 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP WITH CUBE WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, materialize(toUInt256(1)) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toUInt256(toFixedString(toNullable(toFixedString(' ', 1, 1), 1)), 1), 1, 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 433 ('CUBE'): CUBE WITH TOTALS. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 662 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt128(1), 1, ' ', 1, materialize(toUInt256(1)) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), toUInt256(1), 1, 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 663 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt128(1), 1, ' ', 1, materialize(toUInt256(1)) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), toUInt256(1), 1, 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 664 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, materialize(toUInt256(1)) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), toUInt256(1), 1, 1, 1, toNullable(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 665 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, materialize(toUInt256(1)) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), toUInt256(1), 1, 1, 1, toNullable(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 666 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toUInt128(1)), 1, ' ', 1, materialize(toUInt256(1)) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), toUInt256(1), 1, 1, 1, toNullable(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 667 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1), 1, ' ', 1, materialize(toUInt256(1)) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), toUInt256(1), 1, 1, 1, toNullable(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 668 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1), 1, ' ', 1, materialize(toUInt256(toNullable(1))) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), toUInt256(1), 1, 1, 1, toNullable(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 669 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, materialize(toUInt256(toNullable(1))) PREWHERE ' ' WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, 1, 1, 1, toNullable(1) WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, materialize(toUInt256(toNullable(1))) PREWHERE ' ' WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, 1, 1, 1, toNullable(1) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: String. In query WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, materialize(toUInt256(toNullable(1))) PREWHERE ' ' WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, 1, 1, 1, toNullable(1) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 670 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1), 1, ' ', 1, materialize(toUInt256(toNullable(1))) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), toUInt256(1), 1, 1, 1, toNullable(1) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 671 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1), 1, ' ', 1, toUInt256(toNullable(1)) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', 1), 1), 1, 1, 1, 1, toNullable(1) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 672 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1), 1, ' ', materialize(1), toUInt256(toNullable(toNullable(toFixedString(' ', 1)), 1)) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(toUInt256(1)), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', 1), 1), 1, 1, 1, toUInt128(1), 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1), 1, ' ', materialize(1), toUInt256(toNullable(toNullable(toFixedString(' ', 1)), 1)) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(toUInt256(1)), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', 1), 1), 1, 1, 1, toUInt128(1), 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1), 1, ' ', materialize(1), toUInt256(toNullable(toNullable(toFixedString(' ', 1)), 1)) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(toUInt256(1)), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', 1), 1), 1, 1, 1, toUInt128(1), 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 673 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1), 1, ' ', 1, toUInt256(toNullable(1)) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', 1), 1), 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 674 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, toUInt256(toNullable(1)) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', 1), 1), 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 675 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, toUInt256(1) WHERE materialize(1) WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, toUInt256(1) WHERE materialize(1) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 676 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, toUInt256(toNullable(toNullable(1))) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', 1), 1), 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, toNullable(toNullable(1)) WHERE materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toUInt128(1)), 1), 1, 1, 1, toNullable(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 678 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, toNullable(toNullable(1)) WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toUInt128(1)), 1), 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 679 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, toNullable(toNullable(1)) WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toUInt128(1)), materialize(1)), 1, 1, 1, 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, toNullable(toNullable(1)) WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toUInt128(1)), materialize(1)), 1, 1, 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, toNullable(toNullable(1)) WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', toUInt128(1)), materialize(1)), 1, 1, 1, 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 680 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, toNullable(toNullable(1)) WHERE materialize(materialize(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', 1), 1), 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 681 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, toNullable(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(toFixedString(' ', 1), 1), 1, 1, materialize(1), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 682 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, toNullable(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, 1, 1, materialize(1), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 683 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 684 out of 1000 EXPLAIN PIPELINE `graph=1` = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE `graph=1` = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, 1, 1, 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 685 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', 1, toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toFixedString(' ', 1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 686 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toUInt256(1)), 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toUInt256(1)), 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 688 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toUInt256(1)), 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(version_pair), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toUInt256(1)), 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(version_pair), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toUInt256(1)), 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(version_pair), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 689 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toUInt256(1)), 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 690 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toUInt256(1)), 1, materialize(' '), toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 691 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toUInt256(1)), 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 692 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toUInt256(1)), 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 693 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toUInt256(1)), 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 694 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toUInt256(1)), 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 695 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toUInt256(1)), 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 696 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toUInt256(1)), 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 697 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toUInt256(1)), 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 698 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toUInt256(1)), 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 699 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(toUInt256(1)), 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 700 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1), 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 701 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 702 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 703 out of 1000 WITH splitByChar(' ', getOSKernelVersion(toLowCardinality(materialize(toLowCardinality(1))))) AS version_pair SELECT 1, 1, ' ', 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, materialize(toNullable(1)), 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion(toLowCardinality(materialize(toLowCardinality(1))))) AS version_pair SELECT 1, 1, ' ', 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, materialize(toNullable(1)), 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion(toLowCardinality(materialize(toLowCardinality(1))))) AS version_pair SELECT 1, 1, ' ', 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, materialize(toNullable(1)), 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 704 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', toNullable(1) WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', toNullable(1) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 705 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, materialize(toLowCardinality(1)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 706 out of 1000 WITH splitByChar(toNullable(' '), getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', toNullable(1) WITH TOTALS Error on processing query 'WITH splitByChar(toNullable(' '), getOSKernelVersion()) AS version_pair SELECT 1, 1, ' ', toNullable(1) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 707 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, materialize(toLowCardinality(1)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 708 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, materialize(toLowCardinality(toNullable(1))) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 709 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(materialize(toFixedString(' ', 1))), version_pair, ' ', 1, 1, toUInt128(1), 1, 1, 1, materialize(toLowCardinality(toNullable(1))) WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(materialize(toFixedString(' ', 1))), version_pair, ' ', 1, 1, toUInt128(1), 1, 1, 1, materialize(toLowCardinality(toNullable(1))) WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(materialize(toFixedString(' ', 1))), version_pair, ' ', 1, 1, toUInt128(1), 1, 1, 1, materialize(toLowCardinality(toNullable(1))) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 710 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, materialize(toNullable(toNullable(1)), toLowCardinality(toNullable(1))) WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, materialize(toNullable(toNullable(1)), toLowCardinality(toNullable(1))) WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, materialize(toNullable(toNullable(1)), toLowCardinality(toNullable(1))) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 711 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toUInt256(1)), ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(materialize(toNullable(toFixedString(' ', 1)))), version_pair, ' ', 1, 1, 1, 1, 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toUInt256(1)), ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(materialize(toNullable(toFixedString(' ', 1)))), version_pair, ' ', 1, 1, 1, 1, 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toUInt256(1)), ' ', toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(materialize(toNullable(toFixedString(' ', 1)))), version_pair, ' ', 1, 1, 1, 1, 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 712 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(' ', 1), toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, materialize(1), 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 713 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(' ', 1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toNullable(toUInt256(1))), 1, 1, materialize(1), 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 714 out of 1000 WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(' ', 1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toNullable(toUInt256(1))), 1, 1, materialize(1), 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP Error on processing query 'WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(' ', 1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toNullable(toUInt256(1))), 1, 1, materialize(1), 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'splitByChar'. Expected 2 mandatory arguments and 1 optional argument, got 1 argument: In scope WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(' ', 1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toNullable(toUInt256(1))), 1, 1, materialize(1), 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 14. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 715 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(' ', 1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toNullable(toUInt256(1))), 1, 1, materialize(1), 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP Got boring AST Fuzzing step 716 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(' ', 1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toNullable(toUInt256(1))), 1, 1, materialize(1), 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP Got boring AST Fuzzing step 717 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(' ', 1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(1)), 1, 1, materialize(1), 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 718 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(' ', toLowCardinality(toUInt128(1))), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(1)), 1, 1, materialize(1), 1, 1, toLowCardinality(toNullable(1)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 719 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(' ', toLowCardinality(toUInt128(1))), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(1)), 1, 1, materialize(1), 1, 1, toLowCardinality(1) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 720 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(' ', toLowCardinality(toUInt128(1))), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(1)), 1, 1, materialize(1), 1, 1, toLowCardinality(1) WITH ROLLUP Got boring AST Fuzzing step 721 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(' ', toLowCardinality(1)), toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(version_pair, 1)), 1, 1, materialize(1), 1, 1, toLowCardinality(1) WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(' ', toLowCardinality(1)), toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(version_pair, 1)), 1, 1, materialize(1), 1, 1, toLowCardinality(1) WITH ROLLUP': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt256'. Expected 1 argument, got 2 arguments: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(' ', toLowCardinality(1)), toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(version_pair, 1)), 1, 1, materialize(1), 1, 1, toLowCardinality(1) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000089618ce 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000893c835 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 722 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(toLowCardinality(' '), toLowCardinality(toUInt128(1))), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(1)), 1, 1, materialize(1), 1, 1, toLowCardinality(1) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 723 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(toLowCardinality(' '), toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toUInt256(1)), 1, 1, materialize(1), 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 724 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt256(1), toFixedString(toLowCardinality(' '), toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, materialize(1), 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 725 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt256(1), toFixedString(toLowCardinality(' '), 1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), toLowCardinality(toNullable(toUInt128(1))), 1, materialize(1), 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 726 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(toLowCardinality(' '), 1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), toLowCardinality(toUInt128(1)), 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 727 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(toLowCardinality(' '), 1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toLowCardinality(toUInt128(1)), 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 728 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(toLowCardinality(' '), 1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toLowCardinality(1), 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 729 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toLowCardinality(' '), 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toLowCardinality(1), 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 730 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toLowCardinality(toFixedString(' ', 1)), 1, toUInt128(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, toLowCardinality(1), 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 731 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toLowCardinality(toFixedString(' ', 1)), 1, toUInt128(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), toLowCardinality(1), 1, 1, 1, 1, toNullable(toUInt128(1)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 732 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toLowCardinality(toFixedString(' ', 1)), 1, toUInt128(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), toUInt256(1), 1, 1, 1, 1, 1, toNullable(1) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 733 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(toNullable(1)), toFixedString(' ', 1), 1, toUInt128(1) GROUP BY version_pair, getOSKernelVersion(toNullable(version_pair, materialize(toNullable(1)))), getOSKernelVersion(toFixedString(' ', toUInt128(1))), version_pair, materialize(' '), toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(toNullable(1)), toFixedString(' ', 1), 1, toUInt128(1) GROUP BY version_pair, getOSKernelVersion(toNullable(version_pair, materialize(toNullable(1)))), getOSKernelVersion(toFixedString(' ', toUInt128(1))), version_pair, materialize(' '), toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toNullable(toNullable(1)), toFixedString(' ', 1), 1, toUInt128(1) GROUP BY version_pair, getOSKernelVersion(toNullable(version_pair, materialize(toNullable(1)))), getOSKernelVersion(toFixedString(' ', toUInt128(1))), version_pair, materialize(' '), toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 734 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toLowCardinality(toFixedString(materialize(' '), 1)), 1, toUInt128(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), toUInt256(1), 1, 1, 1, 1, 1, toNullable(1) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 735 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(materialize(' '), 1), 1, toUInt128(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), toUInt256(toFixedString(' ', 1, 1), 1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(materialize(' '), 1), 1, toUInt128(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), toUInt256(toFixedString(' ', 1, 1), 1), 1, 1, 1, 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(materialize(' '), 1), 1, toUInt128(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), toUInt256(toFixedString(' ', 1, 1), 1), 1, 1, 1, 1, 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 736 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toLowCardinality(toFixedString(materialize(' '), 1)), 1, toUInt128(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), toUInt256(1), 1, 1, 1, 1, 1, toNullable(1) WITH ROLLUP Got boring AST Fuzzing step 737 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toLowCardinality(toFixedString(materialize(' '), 1)), 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), toUInt256(1), 1, 1, 1, 1, 1, toNullable(1) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 738 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toLowCardinality(toFixedString(materialize(' '), 1)), 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), toUInt256(1), 1, 1, 1, 1, 1, toNullable(1) WITH ROLLUP Got boring AST Fuzzing step 739 out of 1000 WITH splitByChar(' ', materialize(toNullable(' ')), getOSKernelVersion()) AS version_pair SELECT 1, toLowCardinality(toFixedString(materialize(' '), 1)), 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), toUInt256(1), materialize(toLowCardinality(1)), 1, 1, 1, 1, toNullable(1) WITH ROLLUP Error on processing query 'WITH splitByChar(' ', materialize(toNullable(' ')), getOSKernelVersion()) AS version_pair SELECT 1, toLowCardinality(toFixedString(materialize(' '), 1)), 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), toUInt256(1), materialize(toLowCardinality(1)), 1, 1, 1, 1, toNullable(1) WITH ROLLUP': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 3rd argument 'max_substrings' to function 'splitByChar'. Expected: const Number, got: String: In scope WITH splitByChar(' ', materialize(toNullable(' ')), getOSKernelVersion()) AS version_pair SELECT 1, toLowCardinality(toFixedString(materialize(' '), 1)), 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, materialize(' '), toUInt256(1), materialize(toLowCardinality(1)), 1, 1, 1, 1, toNullable(1) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ff035 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 740 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toLowCardinality(toFixedString(materialize(' '), 1)), 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, toNullable(1) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toLowCardinality(toFixedString(' ', 1)), 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, toNullable(1) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 742 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toLowCardinality(toFixedString(' ', 1)), 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, toNullable(1) WITH ROLLUP Got boring AST Fuzzing step 743 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, toFixedString(' ', 1), 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, materialize(1), 1, 1, toNullable(1) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 744 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, materialize(1), 1, 1, toNullable(1) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 745 out of 1000 WITH splitByChar(' ') AS version_pair SELECT 1, ' ', 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, materialize(1), 1, 1, toNullable(1) WITH ROLLUP Error on processing query 'WITH splitByChar(' ') AS version_pair SELECT 1, ' ', 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, materialize(1), 1, 1, toNullable(1) WITH ROLLUP': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'splitByChar'. Expected 2 mandatory arguments and 1 optional argument, got 1 argument: In scope WITH splitByChar(' ') AS version_pair SELECT 1, ' ', 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, materialize(1), 1, 1, toNullable(1) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 14. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 746 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, materialize(1), 1, 1, toNullable(1) WITH ROLLUP Got boring AST Fuzzing step 747 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, materialize(1), 1, 1, toNullable(1) WITH ROLLUP Got boring AST Fuzzing step 748 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT ' ', 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, materialize(1), 1, 1, toNullable(1) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 749 out of 1000 WITH splitByChar(materialize(toFixedString(' ', toNullable(materialize(toUInt256(1))), 1)), ' ', getOSKernelVersion()) AS version_pair SELECT ' ', 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, materialize(1), 1, 1, toNullable(1) WITH ROLLUP Error on processing query 'WITH splitByChar(materialize(toFixedString(' ', toNullable(materialize(toUInt256(1))), 1)), ' ', getOSKernelVersion()) AS version_pair SELECT ' ', 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, materialize(1), 1, 1, toNullable(1) WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH splitByChar(materialize(toFixedString(' ', toNullable(materialize(toUInt256(1))), 1)), ' ', getOSKernelVersion()) AS version_pair SELECT ' ', 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, materialize(1), 1, 1, toNullable(1) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 18. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 750 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT ' ', 1, 1, toLowCardinality(toLowCardinality(toNullable(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 751 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT ' ', 1, 1, toLowCardinality(toLowCardinality(toNullable(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 752 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT ' ', 1, 1, toLowCardinality(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(toNullable(toNullable(toNullable(1)))), getOSKernelVersion(), version_pair, ' ', toUInt256(materialize(toLowCardinality(toNullable(1))), 1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT ' ', 1, 1, toLowCardinality(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(toNullable(toNullable(toNullable(1)))), getOSKernelVersion(), version_pair, ' ', toUInt256(materialize(toLowCardinality(toNullable(1))), 1), 1, 1, 1, 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT ' ', 1, 1, toLowCardinality(toLowCardinality(1)) GROUP BY version_pair, getOSKernelVersion(toNullable(toNullable(toNullable(1)))), getOSKernelVersion(), version_pair, ' ', toUInt256(materialize(toLowCardinality(toNullable(1))), 1), 1, 1, 1, 1, 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 753 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT ' ', 1, 1, toLowCardinality(toLowCardinality(toNullable(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 754 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT ' ', 1, 1, toLowCardinality(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(materialize(materialize(1), toLowCardinality(' ')), 1), 1, 1, 1, 1, toNullable(1), 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT ' ', 1, 1, toLowCardinality(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(materialize(materialize(1), toLowCardinality(' ')), 1), 1, 1, 1, 1, toNullable(1), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT ' ', 1, 1, toLowCardinality(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(materialize(materialize(1), toLowCardinality(' ')), 1), 1, 1, 1, 1, toNullable(1), 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 755 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toLowCardinality(' '), toLowCardinality(1)), ' ', 1, 1, toLowCardinality(toLowCardinality(toNullable(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 756 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toLowCardinality(' '), toLowCardinality(1)), ' ', 1, toUInt256(1), toLowCardinality(toLowCardinality(toNullable(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 757 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toLowCardinality(' '), 1), ' ', 1, toUInt256(1), toLowCardinality(toLowCardinality(toFixedString(materialize(' '), toNullable(1)), toNullable(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toLowCardinality(' '), 1), ' ', 1, toUInt256(1), toLowCardinality(toLowCardinality(toFixedString(materialize(' '), toNullable(1)), toNullable(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toLowCardinality(' '), 1), ' ', 1, toUInt256(1), toLowCardinality(toLowCardinality(toFixedString(materialize(' '), toNullable(1)), toNullable(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 758 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toLowCardinality(' '), toLowCardinality(1)), ' ', 1, toUInt256(1), toLowCardinality(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 759 out of 1000 WITH splitByChar(toLowCardinality(' '), getOSKernelVersion(materialize(toNullable(toFixedString(' ', 1))))) AS version_pair SELECT toFixedString(toLowCardinality(' '), toLowCardinality(1)), ' ', 1, toUInt256(1), toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(materialize(toUInt256(1))), 1, 1, 1, 1, 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(toLowCardinality(' '), getOSKernelVersion(materialize(toNullable(toFixedString(' ', 1))))) AS version_pair SELECT toFixedString(toLowCardinality(' '), toLowCardinality(1)), ' ', 1, toUInt256(1), toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(materialize(toUInt256(1))), 1, 1, 1, 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(toLowCardinality(' '), getOSKernelVersion(materialize(toNullable(toFixedString(' ', 1))))) AS version_pair SELECT toFixedString(toLowCardinality(' '), toLowCardinality(1)), ' ', 1, toUInt256(1), toNullable(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(materialize(toUInt256(1))), 1, 1, 1, 1, 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 760 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toLowCardinality(' '), toLowCardinality(1)), ' ', 1, toUInt256(1), toLowCardinality(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 761 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toLowCardinality(' '), 1), ' ', 1, toUInt256(1), toLowCardinality(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 762 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toLowCardinality(' '), 1), ' ', 1, toUInt256(1), toLowCardinality(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 763 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toLowCardinality(' '), 1), ' ', 1, toUInt256(1), toLowCardinality(toNullable(1)) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 764 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, ' ', 1, toUInt256(1), toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 765 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, ' ', 1, toUInt256(1), toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 766 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, ' ', 1, toUInt256(1), toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 767 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, ' ', 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 768 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, ' ', 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 769 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, ' ', 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 770 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, ' ', 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 771 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, ' ', 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 772 out of 1000 EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, ' ', 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, ' ', 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('splitByChar'): splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, ' ', 1, 1, toLowCardinality(1) GROUP BY ve. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 773 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, ' ', 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 774 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, ' ', 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 775 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, ' ', 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 776 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, toNullable(' '), 1, 1, toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), toUInt256(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 777 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, toNullable(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 778 out of 1000 WITH splitByChar(materialize(' '), getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toNullable(' ')), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(materialize(' '), getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toNullable(' ')), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'separator' to function 'splitByChar'. Expected: const String, got: String: In scope WITH splitByChar(materialize(' '), getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toNullable(' ')), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 779 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, toNullable(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(toLowCardinality(toLowCardinality(toNullable(1)))), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, toNullable(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(toLowCardinality(toLowCardinality(toNullable(1)))), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, toNullable(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(toLowCardinality(toLowCardinality(toNullable(1)))), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 780 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, toNullable(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(toFixedString(' ', toNullable(1)), 1), ' '), 1, toLowCardinality(toNullable(1)), 1, 1, 1, 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, toNullable(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(toFixedString(' ', toNullable(1)), 1), ' '), 1, toLowCardinality(toNullable(1)), 1, 1, 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' '), 1, toNullable(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toFixedString(toFixedString(' ', toNullable(1)), 1), ' '), 1, toLowCardinality(toNullable(1)), 1, 1, 1, 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 781 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT ' ', 1, toNullable(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 782 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toNullable(toFixedString(' ', 1))), 1, toNullable(toLowCardinality(' ')), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 783 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(1))))), 1, toNullable(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 784 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(1))))), 1, toNullable(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 785 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 786 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))), 1, toNullable(' '), 1, 1, 1 WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))), 1, toNullable(' '), 1, 1, 1 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 787 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))), 1, ' ', materialize(1), 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(toUInt256(1), ' ')), 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))), 1, ' ', materialize(1), 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(toUInt256(1), ' ')), 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))), 1, ' ', materialize(1), 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(toUInt256(1), ' ')), 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 788 out of 1000 WITH splitByChar(' ', toFixedString(' ', toLowCardinality(toUInt256(1))), getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' ', toLowCardinality(toUInt256(1))), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', toFixedString(' ', toLowCardinality(toUInt256(1))), getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' ', toLowCardinality(toUInt256(1))), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', toFixedString(' ', toLowCardinality(toUInt256(1))), getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' ', toLowCardinality(toUInt256(1))), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 789 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toFixedString(' ', toUInt256(1))), 1, ' ', 1, 1, 1 WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toFixedString(' ', toUInt256(1))), 1, ' ', 1, 1, 1 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 790 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toFixedString(' ', toUInt256(1))), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 791 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toFixedString(' ', toUInt256(1))), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 792 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toFixedString(' ', toUInt256(1))), 1, ' ', 1, toUInt128(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 793 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toFixedString(' ', toUInt256(1))), 1, ' ', 1, toUInt128(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, 1, 1, 1, 1, 1, 1 WITH ROLLUP Got boring AST Fuzzing step 794 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toFixedString(' ', toUInt256(1))), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, 1, 1, 1, 1, 1, toUInt128(1) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 795 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toNullable(toUInt256(materialize(toNullable(1)))), toFixedString(' ', toUInt256(1))), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, 1, 1, toLowCardinality(1), 1, 1, toUInt128(1) WITH ROLLUP WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toNullable(toUInt256(materialize(toNullable(1)))), toFixedString(' ', toUInt256(1))), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, 1, 1, toLowCardinality(1), 1, 1, toUInt128(1) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toNullable(toUInt256(materialize(toNullable(1)))), toFixedString(' ', toUInt256(1))), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, 1, 1, toLowCardinality(1), 1, 1, toUInt128(1) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 796 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' ', toUInt256(1)), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, 1, 1, 1, 1, 1, toUInt128(1) WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' ', toUInt256(1)), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, 1, 1, 1, 1, 1, toUInt128(1) WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(' ', toUInt256(1)), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(toLowCardinality(' ')), 1, 1, 1, 1, 1, 1, toUInt128(1) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 797 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(' ', toUInt256(1)), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1, 1, 1, 1, toUInt128(1) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 798 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(' ', toUInt256(1)), 1, ' ', toNullable(1), 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1, 1, 1, 1, toUInt128(1) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 799 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(' ', toUInt256(1)), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1, 1, 1, 1, toUInt128(1) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 800 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(' ', toUInt256(1)), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1, 1, toNullable(toUInt128(1)), 1, toUInt128(1) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 801 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(' ', toUInt256(1)), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, toNullable(toUInt128(1)), 1, toUInt128(1) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 802 out of 1000 WITH splitByChar(' ', getOSKernelVersion(toNullable(toFixedString(' ', toLowCardinality(1))))) AS version_pair SELECT toFixedString(' ', toUInt256(1)), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, toNullable(toUInt128(1)), 1, toUInt128(1) WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion(toNullable(toFixedString(' ', toLowCardinality(1))))) AS version_pair SELECT toFixedString(' ', toUInt256(1)), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, toNullable(toUInt128(1)), 1, toUInt128(1) WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function getOSKernelVersion doesn't match: passed 1, should be 0: In scope WITH splitByChar(' ', getOSKernelVersion(toNullable(toFixedString(' ', toLowCardinality(1))))) AS version_pair SELECT toFixedString(' ', toUInt256(1)), 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, toNullable(toUInt128(1)), 1, toUInt128(1) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 803 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toFixedString(' ', 1), 1), 1, toLowCardinality(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, toUInt128(1), 1, toUInt128(1) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 804 out of 1000 WITH splitByChar(' ') AS version_pair SELECT toFixedString(' ', 1), 1, 1, toLowCardinality(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, toUInt128(1), 1, toUInt128(1) WITH ROLLUP Error on processing query 'WITH splitByChar(' ') AS version_pair SELECT toFixedString(' ', 1), 1, 1, toLowCardinality(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, toUInt128(1), 1, toUInt128(1) WITH ROLLUP': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'splitByChar'. Expected 2 mandatory arguments and 1 optional argument, got 1 argument: In scope WITH splitByChar(' ') AS version_pair SELECT toFixedString(' ', 1), 1, 1, toLowCardinality(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, toUInt128(1), 1, toUInt128(1) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 14. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 805 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toFixedString(' ', 1), 1), materialize(1), toLowCardinality(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, toUInt128(1), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 806 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toFixedString(' ', 1), 1), materialize(1), toLowCardinality(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, toUInt128(1), toUInt128(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 807 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toFixedString(' ', 1), 1), materialize(1), toLowCardinality(' '), 1, 1, 1 WHERE toUInt256(toNullable(toNullable(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, toUInt128(toFixedString(' ', toLowCardinality(toUInt256(1))), 1), 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toFixedString(' ', 1), 1), materialize(1), toLowCardinality(' '), 1, 1, 1 WHERE toUInt256(toNullable(toNullable(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, toUInt128(toFixedString(' ', toLowCardinality(toUInt256(1))), 1), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt128'. Expected 1 argument, got 2 arguments: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toFixedString(' ', 1), 1), materialize(1), toLowCardinality(' '), 1, 1, 1 WHERE toUInt256(toNullable(toNullable(1))) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, toUInt128(toFixedString(' ', toLowCardinality(toUInt256(1))), 1), 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000890dd2e 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000088e5f75 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 808 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(' ', 1, 1), materialize(1), toLowCardinality(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, toUInt128(1), toUInt128(1), 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(' ', 1, 1), materialize(1), toLowCardinality(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, toUInt128(1), toUInt128(1), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(' ', 1, 1), materialize(1), toLowCardinality(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, toUInt128(1), toUInt128(1), 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 809 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toFixedString(' ', 1), 1), materialize(1), toLowCardinality(toFixedString(' ', toLowCardinality(toUInt128(1))), ' '), 1, 1, 1 WHERE toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, toUInt128(1), 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toFixedString(' ', 1), 1), materialize(1), toLowCardinality(toFixedString(' ', toLowCardinality(toUInt128(1))), ' '), 1, 1, 1 WHERE toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, toUInt128(1), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toFixedString(' ', 1), 1), materialize(1), toLowCardinality(toFixedString(' ', toLowCardinality(toUInt128(1))), ' '), 1, 1, 1 WHERE toLowCardinality(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, 1, toUInt128(1), 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 810 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toFixedString(' ', 1), 1), materialize(1), toLowCardinality(' '), 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, toUInt128(1), toUInt128(1), 1 WITH ROLLUP Got boring AST Fuzzing step 811 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toFixedString(' ', 1), 1), materialize(1), ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, toUInt128(1), toUInt128(toNullable(1)), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 812 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(' ', 1), 1, materialize(1), ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, toUInt128(1), toUInt128(toNullable(1)), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 813 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt128(toLowCardinality(toLowCardinality(1))), ' ', 1, 1, materialize(1), ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', 1, 1, 1, 1, toUInt128(1), toUInt128(toNullable(1)), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 814 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt128(toLowCardinality(1)), ' ', 1, 1, materialize(1), ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1, 1, toUInt128(1), toUInt128(toNullable(1)), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 815 out of 1000 WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT toUInt128(toLowCardinality(1)), ' ', 1, 1, materialize(1), ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1, 1, toUInt128(1), toNullable(1), 1 WITH ROLLUP Error on processing query 'WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT toUInt128(toLowCardinality(1)), ' ', 1, 1, materialize(1), ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1, 1, toUInt128(1), toNullable(1), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'splitByChar'. Expected 2 mandatory arguments and 1 optional argument, got 1 argument: In scope WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT toUInt128(toLowCardinality(1)), ' ', 1, 1, materialize(1), ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1, 1, toUInt128(1), toNullable(1), 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 14. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 816 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt128(toLowCardinality(1)), ' ', 1, 1, 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1, 1, toUInt128(1), toNullable(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 817 out of 1000 WITH splitByChar(toLowCardinality(toFixedString(' ', 1)), ' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), ' ', 1, 1, 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1, 1, toUInt128(1), toNullable(1), 1 WITH ROLLUP Error on processing query 'WITH splitByChar(toLowCardinality(toFixedString(' ', 1)), ' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), ' ', 1, 1, 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1, 1, toUInt128(1), toNullable(1), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'separator' to function 'splitByChar'. Expected: const String, got: FixedString(1): In scope WITH splitByChar(toLowCardinality(toFixedString(' ', 1)), ' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(1), ' ', 1, 1, 1, ' ', 1, 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1, 1, toUInt128(1), toNullable(1), 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 818 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt128(toLowCardinality(1)), ' ', 1, 1, 1, ' ', 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, toNullable(1), 1, 1, toUInt128(1), toNullable(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 819 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt128(toLowCardinality(1)), ' ', 1, 1, 1, materialize(' '), 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, toNullable(1), 1, 1, toUInt128(1), toNullable(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 820 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt128(1), ' ', 1, 1, 1, materialize(' '), 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, toNullable(1), 1, 1, toUInt128(1), toNullable(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 821 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt128(1), ' ', materialize(1), 1, 1, materialize(' '), 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1, 1, 1, toNullable(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 822 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt128(1), ' ', materialize(1), 1, 1, materialize(' '), 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1, 1, 1, toNullable(1), 1 WITH ROLLUP Got boring AST Fuzzing step 823 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt128(1), ' ', materialize(1), 1, 1, ' ', 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), 1, 1, 1, 1, 1, toNullable(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 824 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt128(1), ' ', materialize(1), 1, 1, ' ', 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), materialize(toNullable(1)), 1, 1, 1, 1, toNullable(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 825 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toUInt128(1), ' ', materialize(1), 1, 1, ' ', 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), materialize(toNullable(1)), 1, 1, 1, 1, toNullable(1), 1 WITH ROLLUP Got boring AST Fuzzing step 826 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', materialize(1), 1, 1, ' ', 1, 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), materialize(toNullable(1)), 1, 1, 1, 1, toNullable(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 827 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', materialize(1), 1, 1, ' ', 1, materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), materialize(toNullable(1)), 1, 1, 1, 1, toNullable(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 828 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', materialize(1), 1, 1, ' ', 1, materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toNullable(' '), materialize(toNullable(1)), 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 829 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT 1, ' ', materialize(1), 1, 1, ' ', 1, materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toNullable(1)), 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 830 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(' ')), materialize(1), 1, 1, ' ', 1, materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, 1, 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 831 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(' ')), materialize(1), 1, 1, ' ', 1, materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, materialize(toNullable(toUInt128(1))), materialize(toNullable(1)), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 832 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(' ')), materialize(1), 1, 1, ' ', 1, materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toLowCardinality(toUInt128(1)), 1), 1, 1, 1, materialize(toNullable(toUInt128(1))), materialize(toNullable(1)), 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(' ')), materialize(1), 1, 1, ' ', 1, materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toLowCardinality(toUInt128(1)), 1), 1, 1, 1, materialize(toNullable(toUInt128(1))), materialize(toNullable(1)), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(' ')), materialize(1), 1, 1, ' ', 1, materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toLowCardinality(toUInt128(1)), 1), 1, 1, 1, materialize(toNullable(toUInt128(1))), materialize(toNullable(1)), 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 833 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(' ')), materialize(1), 1, 1, ' ', toLowCardinality(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, materialize(toUInt128(1)), materialize(toNullable(1)), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 834 out of 1000 WITH splitByChar(materialize(toNullable(toUInt256(1))), ' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(' ')), materialize(1), 1, 1, ' ', toLowCardinality(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, materialize(toUInt128(1)), materialize(toNullable(1)), 1 WITH ROLLUP Error on processing query 'WITH splitByChar(materialize(toNullable(toUInt256(1))), ' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(' ')), materialize(1), 1, 1, ' ', toLowCardinality(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, materialize(toUInt128(1)), materialize(toNullable(1)), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'separator' to function 'splitByChar'. Expected: const String, got: UInt256: In scope WITH splitByChar(materialize(toNullable(toUInt256(1))), ' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(' ')), materialize(1), 1, 1, ' ', toLowCardinality(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, materialize(toUInt128(1)), materialize(toNullable(1)), 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 835 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(' ')), materialize(1), 1, 1, ' ', toLowCardinality(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, materialize(toUInt128(1)), materialize(toNullable(1)), 1 WITH ROLLUP Got boring AST Fuzzing step 836 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(' ')), materialize(1), 1, 1, ' ', toLowCardinality(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, materialize(toNullable(materialize(toNullable(toUInt256(1)))), 1), materialize(1), 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(' ')), materialize(1), 1, 1, ' ', toLowCardinality(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, materialize(toNullable(materialize(toNullable(toUInt256(1)))), 1), materialize(1), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(' ')), materialize(1), 1, 1, ' ', toLowCardinality(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, materialize(toNullable(materialize(toNullable(toUInt256(1)))), 1), materialize(1), 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 837 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(toFixedString(' ', 1))), materialize(1), 1, 1, ' ', toLowCardinality(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, materialize(toUInt128(1)), toNullable(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 838 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(toFixedString(' ', 1))), 1, 1, 1, ' ', 1, materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toNullable(toFixedString(toFixedString(' ', 1), 1, 1)), 1), 1, toUInt128(1), 1, materialize(toUInt128(1)), toNullable(1), 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(toFixedString(' ', 1))), 1, 1, 1, ' ', 1, materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toNullable(toFixedString(toFixedString(' ', 1), 1, 1)), 1), 1, toUInt128(1), 1, materialize(toUInt128(1)), toNullable(1), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(toFixedString(' ', 1))), 1, 1, 1, ' ', 1, materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(toNullable(toFixedString(toFixedString(' ', 1), 1, 1)), 1), 1, toUInt128(1), 1, materialize(toUInt128(1)), toNullable(1), 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 839 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(toFixedString(' ', 1))), materialize(1), 1, 1, ' ', toLowCardinality(1), materialize(1) GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, toUInt128(1), toNullable(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 840 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(toFixedString(' ', 1))), materialize(materialize(1)), 1, 1, ' ', toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, toUInt128(1), toNullable(1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 841 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(toFixedString(' ', 1))), materialize(1), 1, 1, ' ', toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, toUInt128(1), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 842 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toLowCardinality(toFixedString(materialize(' '), 1))), materialize(1), 1, 1, ' ', toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, toUInt128(1), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 843 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toFixedString(materialize(' '), 1)), materialize(1), 1, 1, ' ', toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, toUInt128(1), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 844 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(materialize(' '), 1), materialize(1), 1, 1, ' ', toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, toUInt128(1), 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(materialize(' '), 1), materialize(1), 1, 1, ' ', toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, toUInt128(1), 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(materialize(' '), 1), materialize(1), 1, 1, ' ', toLowCardinality(1), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, toUInt128(1), 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 845 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toFixedString(' ', 1)), materialize(1), 1, 1, ' ', toLowCardinality(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, ' ', materialize(1), 1, 1, 1, toUInt128(1), 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 846 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toLowCardinality(toFixedString(' ', 1)), materialize(1), 1, 1, toLowCardinality(toLowCardinality(1)), toLowCardinality(' '), toLowCardinality(toLowCardinality(1)), 1 GROUP BY version_pair, getOSKernelVersion(), getOSKernelVersion(), version_pair, toLowCardinality(' '), materialize(1), 1, 1, 1, toUInt128(1), 1, 1 WITH ROLLUP Current AST is too long, discarding it and using the original AST as a start Fuzzing step 847 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 848 out of 1000 WITH splitByChar(' ', toFixedString(' ', toLowCardinality(1)), getOSKernelVersion()) AS version_pair SELECT version_pair[1] Error on processing query 'WITH splitByChar(' ', toFixedString(' ', toLowCardinality(1)), getOSKernelVersion()) AS version_pair SELECT version_pair[1]': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 's' to function 'splitByChar'. Expected: String, got: FixedString(1): In scope WITH splitByChar(' ', toFixedString(' ', toLowCardinality(1)), getOSKernelVersion()) AS version_pair SELECT version_pair[1]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 849 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 850 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 851 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 852 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 853 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] PREWHERE materialize(toNullable(toNullable(1))) Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] PREWHERE materialize(toNullable(toNullable(1)))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (8c17915e-b852-4329-9393-082941235aa5)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:257: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000003360556e 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 8. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 11. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 16. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 17. ? @ 0x00007fa035818ac3 18. ? @ 0x00007fa0358aa850 Fuzzing step 854 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 855 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 856 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 857 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 858 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 859 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 860 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 861 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 862 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 863 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 864 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 865 out of 1000 WITH splitByChar(' ', getOSKernelVersion(materialize(toLowCardinality(toNullable(' '), toFixedString(' ', 1)), toNullable(1)))) AS version_pair SELECT version_pair[1] Error on processing query 'WITH splitByChar(' ', getOSKernelVersion(materialize(toLowCardinality(toNullable(' '), toFixedString(' ', 1)), toNullable(1)))) AS version_pair SELECT version_pair[1]': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion(materialize(toLowCardinality(toNullable(' '), toFixedString(' ', 1)), toNullable(1)))) AS version_pair SELECT version_pair[1]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 21. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 866 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 867 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 868 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 869 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 870 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 871 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 872 out of 1000 WITH splitByChar(' ', toFixedString(' ', toUInt256(1)), getOSKernelVersion()) AS version_pair SELECT arrayElement(toUInt128(1)) Error on processing query 'WITH splitByChar(' ', toFixedString(' ', toUInt256(1)), getOSKernelVersion()) AS version_pair SELECT arrayElement(toUInt128(1))': Received from localhost:9000. DB::Exception: Number of arguments for function arrayElement doesn't match: passed 1, should be 2: In scope WITH splitByChar(' ', toFixedString(' ', toUInt256(1)), getOSKernelVersion()) AS version_pair SELECT arrayElement(toUInt128(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 873 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] WHERE toNullable(materialize(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 874 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] WHERE toNullable(materialize(toNullable(1))) Got boring AST Fuzzing step 875 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] WHERE toNullable(materialize(toNullable(1))) Got boring AST Fuzzing step 876 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] WHERE toNullable(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 877 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] WHERE toNullable(materialize(1)) Got boring AST Fuzzing step 878 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] WHERE toNullable(1) Query succeeded, using this AST as a start Fuzzing step 879 out of 1000 WITH splitByChar(materialize(toFixedString(' ', 1)), getOSKernelVersion()) AS version_pair SELECT version_pair[1] WHERE toNullable(toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(materialize(toNullable(1))))))), 1) Error on processing query 'WITH splitByChar(materialize(toFixedString(' ', 1)), getOSKernelVersion()) AS version_pair SELECT version_pair[1] WHERE toNullable(toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(materialize(toNullable(1))))))), 1)': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'separator' to function 'splitByChar'. Expected: const String, got: FixedString(1): In scope WITH splitByChar(materialize(toFixedString(' ', 1)), getOSKernelVersion()) AS version_pair SELECT version_pair[1] WHERE toNullable(toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(materialize(toNullable(1))))))), 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 880 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] WHERE toNullable(1) Got boring AST Fuzzing step 881 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] WHERE toNullable(1) Got boring AST Fuzzing step 882 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] WHERE toNullable(1) Got boring AST Fuzzing step 883 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Query succeeded, using this AST as a start Fuzzing step 884 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 885 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 886 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(toLowCardinality(1))] Query succeeded, using this AST as a start Fuzzing step 887 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Query succeeded, using this AST as a start Fuzzing step 888 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Got boring AST Fuzzing step 889 out of 1000 WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Error on processing query 'WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)]': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'splitByChar'. Expected 2 mandatory arguments and 1 optional argument, got 1 argument: In scope WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 14. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 890 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Got boring AST Fuzzing step 891 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Got boring AST Fuzzing step 892 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Got boring AST Fuzzing step 893 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Got boring AST Fuzzing step 894 out of 1000 WITH splitByChar(toNullable(' '), getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(toLowCardinality(1))] Error on processing query 'WITH splitByChar(toNullable(' '), getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(toLowCardinality(1))]': Received from localhost:9000. DB::Exception: Nested type Array(String) cannot be inside Nullable type: In scope WITH splitByChar(toNullable(' '), getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(toLowCardinality(1))]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/DataTypes/DataTypeNullable.cpp:30: DB::DataTypeNullable::DataTypeNullable(std::shared_ptr const&) @ 0x000000003244ee8d 5. ./contrib/llvm-project/libcxx/include/__memory/allocation_guard.h:66: std::shared_ptr std::allocate_shared[abi:v15007], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x000000002fda8783 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:0: DB::makeNullable(std::shared_ptr const&) @ 0x0000000032451783 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b32d 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 14. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 895 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Got boring AST Fuzzing step 896 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Got boring AST Fuzzing step 897 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Got boring AST Fuzzing step 898 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Got boring AST Fuzzing step 899 out of 1000 EXPLAIN PIPELINE compact = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Error on processing query 'EXPLAIN PIPELINE compact = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)]': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 900 out of 1000 EXPLAIN QUERY TREE run_passes = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Error on processing query 'EXPLAIN QUERY TREE run_passes = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)]': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "run_passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 901 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Got boring AST Fuzzing step 902 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Query succeeded, using this AST as a start Fuzzing step 903 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toLowCardinality(' '), 1), version_pair[materialize(toLowCardinality(1))] Query succeeded, using this AST as a start Fuzzing step 904 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toLowCardinality(' '), 1), version_pair[materialize(toLowCardinality(1))] Got boring AST Fuzzing step 905 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toLowCardinality(' '), 1), version_pair[toLowCardinality(1)] Query succeeded, using this AST as a start Fuzzing step 906 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toFixedString(toLowCardinality(' '), 1), version_pair[toLowCardinality(1)] Got boring AST Fuzzing step 907 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[toLowCardinality(materialize(1))] Query succeeded, using this AST as a start Fuzzing step 908 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[toLowCardinality(materialize(1))] Got boring AST Fuzzing step 909 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[toLowCardinality(materialize(materialize(toNullable(1))))] Query succeeded, using this AST as a start Fuzzing step 910 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(materialize(toNullable(1)))] Query succeeded, using this AST as a start Fuzzing step 911 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(materialize(toNullable(1)))] Got boring AST Fuzzing step 912 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(materialize(toNullable(1)))] Got boring AST Fuzzing step 913 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(materialize(toNullable(1)))] Got boring AST Fuzzing step 914 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(materialize(toNullable(1)))] Got boring AST Fuzzing step 915 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT arrayElement(version_pair, toNullable(' '), materialize(materialize(toNullable(1)))) Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT arrayElement(version_pair, toNullable(' '), materialize(materialize(toNullable(1))))': Received from localhost:9000. DB::Exception: Number of arguments for function arrayElement doesn't match: passed 3, should be 2: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT arrayElement(version_pair, toNullable(' '), materialize(materialize(toNullable(1)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 916 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(materialize(toNullable(1)))] Got boring AST Fuzzing step 917 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(materialize(toNullable(1)))] Got boring AST Fuzzing step 918 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(materialize(toNullable(1)))] Got boring AST Fuzzing step 919 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(materialize(toNullable(toNullable(toNullable(1))), toNullable(1)))] Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(materialize(toNullable(toNullable(toNullable(1))), toNullable(1)))]': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(materialize(toNullable(toNullable(toNullable(1))), toNullable(1)))]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 920 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT arrayElement(materialize(materialize(toNullable(1)))) Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT arrayElement(materialize(materialize(toNullable(1))))': Received from localhost:9000. DB::Exception: Number of arguments for function arrayElement doesn't match: passed 1, should be 2: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT arrayElement(materialize(materialize(toNullable(1)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 921 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(toNullable(1))] Query succeeded, using this AST as a start Fuzzing step 922 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Query succeeded, using this AST as a start Fuzzing step 923 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Got boring AST Fuzzing step 924 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT arrayElement(version_pair) Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT arrayElement(version_pair)': Received from localhost:9000. DB::Exception: Number of arguments for function arrayElement doesn't match: passed 1, should be 2: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT arrayElement(version_pair). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 925 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Got boring AST Fuzzing step 926 out of 1000 WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Error on processing query 'WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)]': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'splitByChar'. Expected 2 mandatory arguments and 1 optional argument, got 1 argument: In scope WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 14. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 927 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Got boring AST Fuzzing step 928 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] WHERE version_pair[1] Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] WHERE version_pair[1]': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: String. In query WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] WHERE version_pair[1]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 929 out of 1000 WITH splitByChar(' ', toNullable(toLowCardinality(' ')), getOSKernelVersion()) AS version_pair SELECT version_pair[1] Error on processing query 'WITH splitByChar(' ', toNullable(toLowCardinality(' ')), getOSKernelVersion()) AS version_pair SELECT version_pair[1]': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 3rd argument 'max_substrings' to function 'splitByChar'. Expected: const Number, got: String: In scope WITH splitByChar(' ', toNullable(toLowCardinality(' ')), getOSKernelVersion()) AS version_pair SELECT version_pair[1]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ff035 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 930 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Got boring AST Fuzzing step 931 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Got boring AST Fuzzing step 932 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT arrayElement(version_pair) Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT arrayElement(version_pair)': Received from localhost:9000. DB::Exception: Number of arguments for function arrayElement doesn't match: passed 1, should be 2: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT arrayElement(version_pair). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 933 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Got boring AST Fuzzing step 934 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT arrayElement(version_pair) Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT arrayElement(version_pair)': Received from localhost:9000. DB::Exception: Number of arguments for function arrayElement doesn't match: passed 1, should be 2: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT arrayElement(version_pair). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 935 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Got boring AST Fuzzing step 936 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Got boring AST Fuzzing step 937 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(materialize(materialize(1)), 1)] Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(materialize(materialize(1)), 1)]': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(materialize(materialize(1)), 1)]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 938 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Got boring AST Fuzzing step 939 out of 1000 WITH splitByChar(toFixedString(' ', 1), getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)] Error on processing query 'WITH splitByChar(toFixedString(' ', 1), getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)]': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'separator' to function 'splitByChar'. Expected: const String, got: FixedString(1): In scope WITH splitByChar(toFixedString(' ', 1), getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(1)]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 940 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Query succeeded, using this AST as a start Fuzzing step 941 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 942 out of 1000 WITH splitByChar(' ') AS version_pair SELECT version_pair[1] Error on processing query 'WITH splitByChar(' ') AS version_pair SELECT version_pair[1]': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'splitByChar'. Expected 2 mandatory arguments and 1 optional argument, got 1 argument: In scope WITH splitByChar(' ') AS version_pair SELECT version_pair[1]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 14. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 943 out of 1000 WITH splitByChar(' ') AS version_pair SELECT materialize(toLowCardinality(1)), version_pair[1] Error on processing query 'WITH splitByChar(' ') AS version_pair SELECT materialize(toLowCardinality(1)), version_pair[1]': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'splitByChar'. Expected 2 mandatory arguments and 1 optional argument, got 1 argument: In scope WITH splitByChar(' ') AS version_pair SELECT materialize(toLowCardinality(1)), version_pair[1]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 14. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 944 out of 1000 WITH splitByChar(toFixedString(toLowCardinality(' '), toUInt128(1)), ' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Error on processing query 'WITH splitByChar(toFixedString(toLowCardinality(' '), toUInt128(1)), ' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1]': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'separator' to function 'splitByChar'. Expected: const String, got: FixedString(1): In scope WITH splitByChar(toFixedString(toLowCardinality(' '), toUInt128(1)), ' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 945 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 946 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 947 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 948 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 949 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(toUInt256(1))] Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(toUInt256(1))]': Received from localhost:9000. DB::Exception: Second argument for function 'arrayElement' must be integer, got 'UInt256' instead: In scope WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[materialize(toUInt256(1))]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::(anonymous namespace)::FunctionArrayElement::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001ea94dbe 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 950 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 951 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] Got boring AST Fuzzing step 952 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], materialize(toNullable(1)), toNullable(' '), materialize(materialize(toFixedString(' ', 1))) Query succeeded, using this AST as a start Fuzzing step 953 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], materialize(toNullable(1)), toNullable(' '), materialize(materialize(toFixedString(' ', 1))) Got boring AST Fuzzing step 954 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] WITH TOTALS Error on processing query 'WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 955 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Query succeeded, using this AST as a start Fuzzing step 956 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Query succeeded, using this AST as a start Fuzzing step 958 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Query succeeded, using this AST as a start Fuzzing step 959 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Got boring AST Fuzzing step 960 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Got boring AST Fuzzing step 961 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Got boring AST Fuzzing step 962 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Query succeeded, using this AST as a start Fuzzing step 963 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Query succeeded, using this AST as a start Fuzzing step 964 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Got boring AST Fuzzing step 965 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Got boring AST Fuzzing step 966 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Got boring AST Fuzzing step 967 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Got boring AST Fuzzing step 968 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Got boring AST Fuzzing step 969 out of 1000 EXPLAIN WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Query succeeded, using this AST as a start Fuzzing step 970 out of 1000 EXPLAIN ESTIMATE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Query succeeded, using this AST as a start Fuzzing step 971 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Query succeeded, using this AST as a start Fuzzing step 972 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Query succeeded, using this AST as a start Fuzzing step 973 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Got boring AST Fuzzing step 974 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Got boring AST Fuzzing step 975 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Got boring AST Fuzzing step 976 out of 1000 EXPLAIN PIPELINE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Got boring AST Fuzzing step 977 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Query succeeded, using this AST as a start Fuzzing step 978 out of 1000 EXPLAIN AST WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Got boring AST Fuzzing step 979 out of 1000 EXPLAIN QUERY TREE WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Query succeeded, using this AST as a start Fuzzing step 980 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Query succeeded, using this AST as a start Fuzzing step 981 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Got boring AST Fuzzing step 982 out of 1000 EXPLAIN SYNTAX WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[toLowCardinality(1)], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Got boring AST Fuzzing step 983 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[1], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Query succeeded, using this AST as a start Fuzzing step 984 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[1], toNullable(1), toNullable(' '), materialize(toFixedString(' ', 1)) Got boring AST Fuzzing step 985 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[1], toNullable(1), toNullable(' '), toFixedString(' ', 1) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 986 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[1], toNullable(1), toNullable(' '), toFixedString(' ', 1) WITH ROLLUP Got boring AST Fuzzing step 987 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[1], 1, toNullable(' '), ' ', 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 988 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[1], 1, toNullable(' '), ' ', 1 WITH ROLLUP Got boring AST Fuzzing step 989 out of 1000 WITH splitByChar(materialize(' '), getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[1], 1, toNullable(' '), toNullable(toFixedString(' ', 1)), 1 WITH ROLLUP Error on processing query 'WITH splitByChar(materialize(' '), getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[1], 1, toNullable(' '), toNullable(toFixedString(' ', 1)), 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'separator' to function 'splitByChar'. Expected: const String, got: String: In scope WITH splitByChar(materialize(' '), getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[1], 1, toNullable(' '), toNullable(toFixedString(' ', 1)), 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083fefba 6. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 990 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[1], 1, toNullable(' '), ' ', 1 WITH ROLLUP Got boring AST Fuzzing step 991 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[1], 1, toNullable(' '), toFixedString(' ', 1), 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 992 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[1], 1, toNullable(' '), ' ', 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 993 out of 1000 EXPLAIN PIPELINE compact = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[1], 1, toNullable(' '), ' ', 1, 1 WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE compact = true WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[1], 1, toNullable(' '), ' ', 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 994 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[1], 1, toNullable(' '), ' ', 1, 1 WITH ROLLUP Got boring AST Fuzzing step 995 out of 1000 WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[1], 1, toNullable(' '), ' ', 1, 1 WITH ROLLUP Error on processing query 'WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[1], 1, toNullable(' '), ' ', 1, 1 WITH ROLLUP': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'splitByChar'. Expected 2 mandatory arguments and 1 optional argument, got 1 argument: In scope WITH splitByChar(getOSKernelVersion()) AS version_pair SELECT version_pair[1] GROUP BY version_pair[1], 1, toNullable(' '), ' ', 1, 1 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. DB::FunctionTokens::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c0e347d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 14. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 996 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(1)), version_pair[1] GROUP BY version_pair[1], 1, toNullable(' '), ' ', 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 997 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT materialize(toNullable(1)), version_pair[1] GROUP BY version_pair[1], 1, toNullable(' '), ' ', 1, 1 WITH ROLLUP Got boring AST Fuzzing step 998 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1), version_pair[1] GROUP BY version_pair[1], 1, toNullable(' '), ' ', 1, 1 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 999 out of 1000 WITH splitByChar(' ', getOSKernelVersion()) AS version_pair SELECT toNullable(1), version_pair[1] GROUP BY version_pair[1], 1, toNullable(' '), ' ', 1, 1 WITH ROLLUP Got boring AST Fuzzing step 0 out of 1 Query succeeded, using this AST as a start Fuzzing step 0 out of 1 Query succeeded, using this AST as a start Fuzzing step 0 out of 1 Query succeeded, using this AST as a start Fuzzing step 0 out of 50 Query succeeded, using this AST as a start Fuzzing step 1 out of 50 CREATE TABLE nums__fuzz_0 ( `n` Array(UInt64), `m` Nullable(UInt64) MATERIALIZED n + 1 ) ENGINE = Log Error on processing query 'CREATE TABLE nums__fuzz_0 (`n` Array(UInt64), `m` Nullable(UInt64) MATERIALIZED n + 1) ENGINE = Log': Received from localhost:9000. DB::Exception: Illegal types Array(UInt64) and UInt8 of arguments of function plus: While processing _CAST(n + 1 AS m_tmp_alter4558338778609264126, 'Nullable(UInt64)') AS m: default expression and column type are incompatible.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000861f137 4. DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001a45c94a 5. DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000019caadd9 6. DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000a7caea3 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/string:1499: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x0000000033aa9f33 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x0000000033aaabd2 21. ./build_docker/./src/Storages/ColumnsDescription.cpp:986: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x00000000380ffc91 22. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, DB::LoadingStrictnessLevel, bool) @ 0x00000000348a82f8 23. ./contrib/boost/boost/multi_index_container.hpp:1000: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&, DB::LoadingStrictnessLevel) const @ 0x00000000348af396 24. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348cde07 25. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 26. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 2 out of 50 CREATE TABLE nums__fuzz_1 ( `n` UInt64, `m` UInt64 MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 3 out of 50 CREATE TABLE nums__fuzz_2 ( `n` Int128, `m` UInt64 MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 4 out of 50 CREATE TABLE nums__fuzz_3 ( `n` LowCardinality(Int128), `m` Nullable(UInt64) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 5 out of 50 CREATE TABLE nums__fuzz_4 ( `n` Array(Decimal(76, 26)), `m` Nullable(UInt64) MATERIALIZED n + 1 ) ENGINE = Log Error on processing query 'CREATE TABLE nums__fuzz_4 (`n` Array(Decimal(76, 26)), `m` Nullable(UInt64) MATERIALIZED n + 1) ENGINE = Log': Received from localhost:9000. DB::Exception: Illegal types Array(Decimal(76, 26)) and UInt8 of arguments of function plus: While processing _CAST(n + 1 AS m_tmp_alter6754470192571000999, 'Nullable(UInt64)') AS m: default expression and column type are incompatible.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000861f137 4. DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001a45c94a 5. DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000019caadd9 6. DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000a7caea3 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/string:1499: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x0000000033aa9f33 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x0000000033aaabd2 21. ./build_docker/./src/Storages/ColumnsDescription.cpp:986: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x00000000380ffc91 22. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, DB::LoadingStrictnessLevel, bool) @ 0x00000000348a82f8 23. ./contrib/boost/boost/multi_index_container.hpp:1000: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&, DB::LoadingStrictnessLevel) const @ 0x00000000348af396 24. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348cde07 25. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 26. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 6 out of 50 CREATE TABLE nums__fuzz_5 ( `n` LowCardinality(Int128), `m` LowCardinality(Nullable(UInt64)) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 7 out of 50 CREATE TABLE nums__fuzz_6 ( `n` LowCardinality(Int128), `m` LowCardinality(Nullable(UInt64)) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 8 out of 50 CREATE TABLE nums__fuzz_7 ( `n` LowCardinality(Int128), `m` LowCardinality(Nullable(UInt64)) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 9 out of 50 CREATE TABLE nums__fuzz_8 ( `n` Int128, `m` LowCardinality(Float32) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 10 out of 50 CREATE TABLE nums__fuzz_9 ( `n` Int128, `m` LowCardinality(Float32) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 11 out of 50 CREATE TABLE nums__fuzz_10 ( `n` Int128, `m` LowCardinality(Float32) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 12 out of 50 CREATE TABLE nums__fuzz_11 ( `n` Int128, `m` Float32 MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 13 out of 50 CREATE TABLE nums__fuzz_12 ( `n` Int128, `m` Nullable(Float32) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 14 out of 50 CREATE TABLE nums__fuzz_13 ( `n` Int128, `m` Nullable(Float32) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 15 out of 50 CREATE TABLE nums__fuzz_14 ( `n` LowCardinality(Int128), `m` LowCardinality(Nullable(Float32)) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 16 out of 50 CREATE TABLE nums__fuzz_15 ( `n` LowCardinality(Int128), `m` Nullable(Float32) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 17 out of 50 CREATE TABLE nums__fuzz_16 ( `n` LowCardinality(Int128), `m` LowCardinality(Float32) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 18 out of 50 CREATE TABLE nums__fuzz_17 ( `n` UInt128, `m` Int64 MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 19 out of 50 CREATE TABLE nums__fuzz_18 ( `n` UInt128, `m` Int64 MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 20 out of 50 CREATE TABLE nums__fuzz_19 ( `n` UInt128, `m` Int64 MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 21 out of 50 CREATE TABLE nums__fuzz_20 ( `n` UInt128, `m` Array(Int64) MATERIALIZED n + 1 ) ENGINE = Log Error on processing query 'CREATE TABLE nums__fuzz_20 (`n` UInt128, `m` Array(Int64) MATERIALIZED n + 1) ENGINE = Log': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: While processing _CAST(n + 1 AS m_tmp_alter11000450431408477034, 'Array(Int64)') AS m: default expression and column type are incompatible.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:254: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000003322484d 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 14. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 15. ./contrib/llvm-project/libcxx/include/string:1499: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x0000000033aa9f33 16. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x0000000033aaabd2 17. ./build_docker/./src/Storages/ColumnsDescription.cpp:986: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x00000000380ffc91 18. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, DB::LoadingStrictnessLevel, bool) @ 0x00000000348a82f8 19. ./contrib/boost/boost/multi_index_container.hpp:1000: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&, DB::LoadingStrictnessLevel) const @ 0x00000000348af396 20. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348cde07 21. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 22 out of 50 CREATE TABLE nums__fuzz_21 ( `n` UInt128, `m` Nullable(Int64) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 23 out of 50 CREATE TABLE nums__fuzz_22 ( `n` UInt128, `m` Int64 MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 24 out of 50 CREATE TABLE nums__fuzz_23 ( `n` FixedString(2), `m` Int64 MATERIALIZED n + 1 ) ENGINE = Log Error on processing query 'CREATE TABLE nums__fuzz_23 (`n` FixedString(2), `m` Int64 MATERIALIZED n + 1) ENGINE = Log': Received from localhost:9000. DB::Exception: Illegal types FixedString(2) and UInt8 of arguments of function plus: While processing _CAST(n + 1 AS m_tmp_alter2796586957127917785, 'Int64') AS m: default expression and column type are incompatible.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000861f137 4. DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001a45c94a 5. DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000019caadd9 6. DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000a7caea3 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/string:1499: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x0000000033aa9f33 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x0000000033aaabd2 21. ./build_docker/./src/Storages/ColumnsDescription.cpp:986: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x00000000380ffc91 22. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, DB::LoadingStrictnessLevel, bool) @ 0x00000000348a82f8 23. ./contrib/boost/boost/multi_index_container.hpp:1000: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&, DB::LoadingStrictnessLevel) const @ 0x00000000348af396 24. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348cde07 25. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 26. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 25 out of 50 CREATE TABLE nums__fuzz_24 ( `n` Nullable(UInt128), `m` Int64 MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 26 out of 50 CREATE TABLE nums__fuzz_25 ( `n` Nullable(UInt128), `m` Int64 MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 27 out of 50 CREATE TABLE nums__fuzz_26 ( `n` Nullable(UInt256), `m` LowCardinality(Int64) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 28 out of 50 CREATE TABLE nums__fuzz_27 ( `n` UInt256, `m` UInt128 MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 29 out of 50 CREATE TABLE nums__fuzz_28 ( `n` UInt256, `m` UInt128 MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 30 out of 50 CREATE TABLE nums__fuzz_29 ( `n` UInt256, `m` Nullable(UInt128) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 31 out of 50 CREATE TABLE nums__fuzz_30 ( `n` UInt256, `m` Array(UInt128) MATERIALIZED n + 1 ) ENGINE = Log Error on processing query 'CREATE TABLE nums__fuzz_30 (`n` UInt256, `m` Array(UInt128) MATERIALIZED n + 1) ENGINE = Log': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: While processing _CAST(n + 1 AS m_tmp_alter3968141972648972294, 'Array(UInt128)') AS m: default expression and column type are incompatible.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:254: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000003322484d 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 14. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 15. ./contrib/llvm-project/libcxx/include/string:1499: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x0000000033aa9f33 16. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x0000000033aaabd2 17. ./build_docker/./src/Storages/ColumnsDescription.cpp:986: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x00000000380ffc91 18. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, DB::LoadingStrictnessLevel, bool) @ 0x00000000348a82f8 19. ./contrib/boost/boost/multi_index_container.hpp:1000: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&, DB::LoadingStrictnessLevel) const @ 0x00000000348af396 20. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348cde07 21. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 32 out of 50 CREATE TABLE nums__fuzz_31 ( `n` UInt256, `m` Nullable(UInt128) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 33 out of 50 CREATE TABLE nums__fuzz_32 ( `n` Array(UInt256), `m` LowCardinality(Nullable(UInt128)) MATERIALIZED n + 1 ) ENGINE = Log Error on processing query 'CREATE TABLE nums__fuzz_32 (`n` Array(UInt256), `m` LowCardinality(Nullable(UInt128)) MATERIALIZED n + 1) ENGINE = Log': Received from localhost:9000. DB::Exception: Illegal types Array(UInt256) and UInt8 of arguments of function plus: While processing _CAST(n + 1 AS m_tmp_alter6935021488425122661, 'LowCardinality(Nullable(UInt128))') AS m: default expression and column type are incompatible.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000861f137 4. DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001a45c94a 5. DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000019caadd9 6. DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000a7caea3 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/string:1499: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x0000000033aa9f33 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x0000000033aaabd2 21. ./build_docker/./src/Storages/ColumnsDescription.cpp:986: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x00000000380ffc91 22. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, DB::LoadingStrictnessLevel, bool) @ 0x00000000348a82f8 23. ./contrib/boost/boost/multi_index_container.hpp:1000: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&, DB::LoadingStrictnessLevel) const @ 0x00000000348af396 24. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348cde07 25. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 26. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 34 out of 50 CREATE TABLE nums__fuzz_33 ( `n` LowCardinality(UInt256), `m` Nullable(UInt128) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 35 out of 50 CREATE TABLE nums__fuzz_34 ( `n` LowCardinality(UInt256), `m` Array(UInt128) MATERIALIZED n + 1 ) ENGINE = Log Error on processing query 'CREATE TABLE nums__fuzz_34 (`n` LowCardinality(UInt256), `m` Array(UInt128) MATERIALIZED n + 1) ENGINE = Log': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: While processing _CAST(n + 1 AS m_tmp_alter8499583723494640300, 'Array(UInt128)') AS m: default expression and column type are incompatible.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:254: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000003322484d 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 14. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 15. ./contrib/llvm-project/libcxx/include/string:1499: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x0000000033aa9f33 16. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x0000000033aaabd2 17. ./build_docker/./src/Storages/ColumnsDescription.cpp:986: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x00000000380ffc91 18. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, DB::LoadingStrictnessLevel, bool) @ 0x00000000348a82f8 19. ./contrib/boost/boost/multi_index_container.hpp:1000: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&, DB::LoadingStrictnessLevel) const @ 0x00000000348af396 20. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348cde07 21. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 36 out of 50 CREATE TABLE nums__fuzz_35 ( `n` UInt256, `m` Nullable(UInt128) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 37 out of 50 CREATE TABLE nums__fuzz_36 ( `n` UInt256, `m` Nullable(UInt128) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 38 out of 50 CREATE TABLE nums__fuzz_37 ( `n` UInt256, `m` Nullable(UInt128) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 39 out of 50 CREATE TABLE nums__fuzz_38 ( `n` Array(UInt256), `m` Nullable(UInt128) MATERIALIZED n + 1 ) ENGINE = Log Error on processing query 'CREATE TABLE nums__fuzz_38 (`n` Array(UInt256), `m` Nullable(UInt128) MATERIALIZED n + 1) ENGINE = Log': Received from localhost:9000. DB::Exception: Illegal types Array(UInt256) and UInt8 of arguments of function plus: While processing _CAST(n + 1 AS m_tmp_alter977115530022603362, 'Nullable(UInt128)') AS m: default expression and column type are incompatible.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000861f137 4. DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001a45c94a 5. DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000019caadd9 6. DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000a7caea3 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/string:1499: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x0000000033aa9f33 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x0000000033aaabd2 21. ./build_docker/./src/Storages/ColumnsDescription.cpp:986: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x00000000380ffc91 22. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, DB::LoadingStrictnessLevel, bool) @ 0x00000000348a82f8 23. ./contrib/boost/boost/multi_index_container.hpp:1000: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&, DB::LoadingStrictnessLevel) const @ 0x00000000348af396 24. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348cde07 25. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 26. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 40 out of 50 CREATE TABLE nums__fuzz_39 ( `n` UInt256, `m` Nullable(UInt128) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 41 out of 50 CREATE TABLE nums__fuzz_40 ( `n` Array(UInt256), `m` LowCardinality(Nullable(UInt128)) MATERIALIZED n + 1 ) ENGINE = Log Error on processing query 'CREATE TABLE nums__fuzz_40 (`n` Array(UInt256), `m` LowCardinality(Nullable(UInt128)) MATERIALIZED n + 1) ENGINE = Log': Received from localhost:9000. DB::Exception: Illegal types Array(UInt256) and UInt8 of arguments of function plus: While processing _CAST(n + 1 AS m_tmp_alter9746904612582679349, 'LowCardinality(Nullable(UInt128))') AS m: default expression and column type are incompatible.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000861f137 4. DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001a45c94a 5. DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000019caadd9 6. DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000a7caea3 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/string:1499: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x0000000033aa9f33 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x0000000033aaabd2 21. ./build_docker/./src/Storages/ColumnsDescription.cpp:986: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x00000000380ffc91 22. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, DB::LoadingStrictnessLevel, bool) @ 0x00000000348a82f8 23. ./contrib/boost/boost/multi_index_container.hpp:1000: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&, DB::LoadingStrictnessLevel) const @ 0x00000000348af396 24. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348cde07 25. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 26. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 42 out of 50 CREATE TABLE nums__fuzz_41 ( `n` UInt256, `m` UInt128 MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 43 out of 50 CREATE TABLE nums__fuzz_42 ( `n` Date32, `m` UInt128 MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 44 out of 50 CREATE TABLE nums__fuzz_43 ( `n` Date32, `m` UInt128 MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 45 out of 50 CREATE TABLE nums__fuzz_44 ( `n` Array(Date32), `m` Nullable(UInt128) MATERIALIZED n + 1 ) ENGINE = Log Error on processing query 'CREATE TABLE nums__fuzz_44 (`n` Array(Date32), `m` Nullable(UInt128) MATERIALIZED n + 1) ENGINE = Log': Received from localhost:9000. DB::Exception: Illegal types Array(Date32) and UInt8 of arguments of function plus: While processing _CAST(n + 1 AS m_tmp_alter3271488690998181602, 'Nullable(UInt128)') AS m: default expression and column type are incompatible.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000861f137 4. DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001a45c94a 5. DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000019caadd9 6. DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000a7caea3 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/string:1499: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x0000000033aa9f33 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x0000000033aaabd2 21. ./build_docker/./src/Storages/ColumnsDescription.cpp:986: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x00000000380ffc91 22. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, DB::LoadingStrictnessLevel, bool) @ 0x00000000348a82f8 23. ./contrib/boost/boost/multi_index_container.hpp:1000: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&, DB::LoadingStrictnessLevel) const @ 0x00000000348af396 24. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348cde07 25. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 26. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 46 out of 50 CREATE TABLE nums__fuzz_45 ( `n` Date32, `m` LowCardinality(UInt128) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 47 out of 50 CREATE TABLE nums__fuzz_46 ( `n` Nullable(Date32), `m` LowCardinality(UInt128) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 48 out of 50 CREATE TABLE nums__fuzz_47 ( `n` Nullable(Int32), `m` Float32 MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 49 out of 50 CREATE TABLE nums__fuzz_48 ( `n` Nullable(Float32), `m` LowCardinality(Float32) MATERIALIZED n + 1 ) ENGINE = Log Query succeeded, using this AST as a start Fuzzing step 0 out of 1 Query succeeded, using this AST as a start Fuzzing step 0 out of 1 Query succeeded, using this AST as a start Fuzzing step 0 out of 1 Query succeeded, using this AST as a start Fuzzing step 0 out of 1 Query succeeded, using this AST as a start Fuzzing step 0 out of 1 Query succeeded, using this AST as a start Fuzzing step 0 out of 1 Query succeeded, using this AST as a start Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT n, m FROM nums__fuzz_17 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 2 out of 1000 SELECT n, m FROM nums__fuzz_43 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 SELECT n, m FROM nums__fuzz_27 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 4 out of 1000 SELECT n, m FROM nums__fuzz_27 ORDER BY n ASC NULLS FIRST Got boring AST Fuzzing step 5 out of 1000 SELECT n, m FROM nums__fuzz_43 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 6 out of 1000 SELECT n, m FROM nums__fuzz_17 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 7 out of 1000 SELECT n, m FROM nums__fuzz_17 ORDER BY n ASC NULLS FIRST Got boring AST Fuzzing step 8 out of 1000 SELECT n, m FROM nums__fuzz_43 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 9 out of 1000 SELECT n, m FROM nums__fuzz_43 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 10 out of 1000 SELECT n, m FROM nums__fuzz_12 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 11 out of 1000 SELECT n, m FROM nums__fuzz_48 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 12 out of 1000 SELECT n, m FROM nums__fuzz_15 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 13 out of 1000 SELECT n, m FROM nums__fuzz_12 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 14 out of 1000 SELECT n, m FROM nums__fuzz_12 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 15 out of 1000 SELECT n, m FROM nums__fuzz_17 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 16 out of 1000 SELECT n, m FROM nums__fuzz_17 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 17 out of 1000 SELECT n, m FROM nums__fuzz_25 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 18 out of 1000 SELECT n, m FROM nums__fuzz_25 PREWHERE nums__fuzz_41 ORDER BY n DESC Error on processing query 'SELECT n, m FROM nums__fuzz_25 PREWHERE nums__fuzz_41 ORDER BY n DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_41' in scope SELECT n, m FROM nums__fuzz_25 PREWHERE nums__fuzz_41 ORDER BY n DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 19 out of 1000 SELECT n, m FROM nums__fuzz_48 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 20 out of 1000 SELECT n, m FROM nums__fuzz_18 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 21 out of 1000 SELECT n, m FROM nums__fuzz_9 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 22 out of 1000 SELECT n, m FROM nums__fuzz_17 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 23 out of 1000 SELECT m FROM nums__fuzz_17 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 24 out of 1000 SELECT m FROM nums__fuzz_17 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 SELECT m FROM nums__fuzz_17 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 26 out of 1000 SELECT m FROM nums__fuzz_43 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 27 out of 1000 SELECT m FROM nums__fuzz_43 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 28 out of 1000 SELECT m FROM nums__fuzz_25 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 29 out of 1000 SELECT m FROM nums__fuzz_25 ORDER BY n DESC NULLS LAST Got boring AST Fuzzing step 30 out of 1000 SELECT m FROM nums__fuzz_28 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 31 out of 1000 SELECT m FROM nums__fuzz_28 ORDER BY n ASC NULLS FIRST Got boring AST Fuzzing step 32 out of 1000 SELECT m FROM nums__fuzz_15 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 33 out of 1000 SELECT m FROM nums__fuzz_18 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 34 out of 1000 SELECT m FROM nums__fuzz_16 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 35 out of 1000 SELECT m FROM nums__fuzz_16 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 36 out of 1000 SELECT m FROM nums__fuzz_16 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 37 out of 1000 SELECT m FROM nums__fuzz_3 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 38 out of 1000 SELECT m FROM nums__fuzz_16 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 39 out of 1000 SELECT m FROM nums__fuzz_28 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 40 out of 1000 EXPLAIN QUERY TREE passes = true SELECT m FROM nums__fuzz_27 ORDER BY n DESC Error on processing query 'EXPLAIN QUERY TREE passes = true SELECT m FROM nums__fuzz_27 ORDER BY n DESC': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 41 out of 1000 SELECT m FROM nums__fuzz_16 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 42 out of 1000 SELECT m FROM nums__fuzz_25 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 43 out of 1000 SELECT m FROM nums__fuzz_25 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 44 out of 1000 SELECT m FROM nums__fuzz_15 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 45 out of 1000 SELECT m FROM nums__fuzz_18 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 46 out of 1000 SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 47 out of 1000 SELECT m FROM nums__fuzz_28 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 48 out of 1000 SELECT m FROM nums__fuzz_12 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 49 out of 1000 SELECT m FROM nums__fuzz_12 ORDER BY n ASC Got boring AST Fuzzing step 50 out of 1000 SELECT m FROM nums__fuzz_46 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 51 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 SELECT m FROM nums__fuzz_17 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 53 out of 1000 SELECT m FROM nums__fuzz_17 ORDER BY n DESC Got boring AST Fuzzing step 54 out of 1000 SELECT m FROM nums__fuzz_46 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 55 out of 1000 EXPLAIN json = true SELECT m FROM nums__fuzz_46 ORDER BY n ASC Error on processing query 'EXPLAIN json = true SELECT m FROM nums__fuzz_46 ORDER BY n ASC': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "json" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496cdff 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 56 out of 1000 SELECT m FROM nums__fuzz_13 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 57 out of 1000 SELECT m FROM nums__fuzz_12 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 58 out of 1000 SELECT m FROM nums__fuzz_12 ORDER BY nums__fuzz_29 ASC, n ASC Error on processing query 'SELECT m FROM nums__fuzz_12 ORDER BY nums__fuzz_29 ASC, n ASC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_29' in scope SELECT m FROM nums__fuzz_12 ORDER BY nums__fuzz_29 ASC, n ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 59 out of 1000 SELECT m FROM nums__fuzz_12 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 60 out of 1000 SELECT m FROM nums__fuzz_43 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 61 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 62 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT m FROM nums__fuzz_48 ORDER BY n DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT m FROM nums__fuzz_48 ORDER BY n DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 63 out of 1000 SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 64 out of 1000 SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS LAST Got boring AST Fuzzing step 65 out of 1000 SELECT m FROM nums__fuzz_18 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 SELECT m FROM nums__fuzz_25 GROUP BY nums__fuzz_24, version_pair[toLowCardinality(toUInt256(1))], nums__fuzz_14, nums__fuzz_19 ORDER BY n DESC NULLS LAST Error on processing query 'SELECT m FROM nums__fuzz_25 GROUP BY nums__fuzz_24, version_pair[toLowCardinality(toUInt256(1))], nums__fuzz_14, nums__fuzz_19 ORDER BY n DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_24' in scope SELECT m FROM nums__fuzz_25 GROUP BY nums__fuzz_24, version_pair[toLowCardinality(toUInt256(1))], nums__fuzz_14, nums__fuzz_19 ORDER BY n DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 67 out of 1000 SELECT m FROM nums__fuzz_17 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 68 out of 1000 SELECT m FROM nums__fuzz_43 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 69 out of 1000 SELECT m FROM nums__fuzz_48 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 70 out of 1000 SELECT m FROM nums__fuzz_27 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 71 out of 1000 SELECT m FROM nums__fuzz_27 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 SELECT m FROM nums__fuzz_13 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 73 out of 1000 SELECT m FROM nums__fuzz_12 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 74 out of 1000 SELECT m FROM nums__fuzz_27 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 75 out of 1000 SELECT m FROM nums__fuzz_3 ORDER BY nums__fuzz_33 ASC, n DESC Error on processing query 'SELECT m FROM nums__fuzz_3 ORDER BY nums__fuzz_33 ASC, n DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_33' in scope SELECT m FROM nums__fuzz_3 ORDER BY nums__fuzz_33 ASC, n DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 76 out of 1000 EXPLAIN QUERY TREE run_passes = true, passes = true SELECT m FROM nums__fuzz_27 ORDER BY n DESC NULLS FIRST Error on processing query 'EXPLAIN QUERY TREE run_passes = true, passes = true SELECT m FROM nums__fuzz_27 ORDER BY n DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "run_passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 77 out of 1000 SELECT m FROM nums__fuzz_13 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 78 out of 1000 SELECT m FROM nums__fuzz_13 ORDER BY n DESC Got boring AST Fuzzing step 79 out of 1000 SELECT m FROM nums__fuzz_13 ORDER BY n DESC Got boring AST Fuzzing step 80 out of 1000 SELECT m FROM nums__fuzz_17 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 81 out of 1000 SELECT m FROM nums__fuzz_27 WHERE m ORDER BY n DESC Error on processing query 'SELECT m FROM nums__fuzz_27 WHERE m ORDER BY n DESC': Received from localhost:9000. DB::Exception: Illegal type UInt128 of column __table1.m for filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000a853ded 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:46: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000003b83783e 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:0: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000003be3875c 6. ./contrib/llvm-project/libcxx/include/string:1499: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&, String&, bool&) @ 0x0000000034c6d231 7. ./build_docker/./src/Planner/Planner.cpp:360: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d275ce 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0f791 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 14. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 19. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 20. ? @ 0x00007fa035818ac3 21. ? @ 0x00007fa0358aa850 Fuzzing step 82 out of 1000 SELECT m FROM nums__fuzz_46 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 83 out of 1000 SELECT m FROM nums__fuzz_46 WHERE toFixedString(toFixedString(' ', toUInt128(1)), 1) ORDER BY n ASC Error on processing query 'SELECT m FROM nums__fuzz_46 WHERE toFixedString(toFixedString(' ', toUInt128(1)), 1) ORDER BY n ASC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: FixedString(1). In query SELECT m FROM nums__fuzz_46 WHERE toFixedString(toFixedString(' ', toUInt128(1)), 1) ORDER BY n ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 84 out of 1000 SELECT m FROM nums__fuzz_46 ORDER BY n DESC Got boring AST Fuzzing step 85 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 86 out of 1000 SELECT m FROM nums__fuzz_43 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 87 out of 1000 SELECT m FROM nums__fuzz_15 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 88 out of 1000 SELECT m FROM nums__fuzz_16 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 89 out of 1000 SELECT m FROM nums__fuzz_18 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 90 out of 1000 SELECT m FROM nums__fuzz_18 ORDER BY n DESC NULLS LAST Got boring AST Fuzzing step 91 out of 1000 SELECT m FROM nums__fuzz_12 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 92 out of 1000 SELECT m FROM nums__fuzz_25 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 93 out of 1000 SELECT m FROM nums__fuzz_25 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 94 out of 1000 SELECT m FROM nums__fuzz_25 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 95 out of 1000 SELECT m FROM nums__fuzz_25 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 96 out of 1000 SELECT m FROM nums__fuzz_16 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 SELECT m FROM nums__fuzz_16 ORDER BY n DESC NULLS LAST Got boring AST Fuzzing step 98 out of 1000 SELECT m FROM nums__fuzz_16 ORDER BY n DESC NULLS LAST Got boring AST Fuzzing step 99 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 100 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 101 out of 1000 EXPLAIN AST SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 102 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 103 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 104 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 105 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 106 out of 1000 EXPLAIN SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 107 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 108 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 109 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 110 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 111 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 112 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 113 out of 1000 EXPLAIN SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 114 out of 1000 EXPLAIN SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 115 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 117 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 118 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 119 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 120 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 121 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 122 out of 1000 EXPLAIN TABLE OVERRIDE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('m'): m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 123 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 124 out of 1000 EXPLAIN SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 125 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 126 out of 1000 EXPLAIN AST SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 127 out of 1000 EXPLAIN AST SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 128 out of 1000 EXPLAIN AST SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 129 out of 1000 EXPLAIN AST SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 130 out of 1000 EXPLAIN AST SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 131 out of 1000 EXPLAIN AST SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 132 out of 1000 EXPLAIN TABLE OVERRIDE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('m'): m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 133 out of 1000 EXPLAIN TABLE OVERRIDE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('m'): m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 134 out of 1000 EXPLAIN AST SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 135 out of 1000 EXPLAIN AST SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 136 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 137 out of 1000 SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 138 out of 1000 SELECT m FROM nums__fuzz_28 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 139 out of 1000 SELECT m FROM nums__fuzz_18 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 SELECT m FROM nums__fuzz_15 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 141 out of 1000 SELECT m FROM nums__fuzz_15 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 142 out of 1000 SELECT m FROM nums__fuzz_27 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 143 out of 1000 SELECT m FROM nums__fuzz_25 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 144 out of 1000 SELECT m FROM nums__fuzz_25 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 145 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 146 out of 1000 SELECT m FROM nums__fuzz_13 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 147 out of 1000 SELECT m FROM nums__fuzz_13 ORDER BY n ASC NULLS FIRST Got boring AST Fuzzing step 148 out of 1000 SELECT m FROM nums__fuzz_28 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 149 out of 1000 SELECT m FROM nums__fuzz_28 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 150 out of 1000 SELECT m FROM nums__fuzz_47 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 151 out of 1000 SELECT m FROM nums__fuzz_46 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 153 out of 1000 SELECT m FROM nums__fuzz_22 WHERE materialize(toNullable(' ')) ORDER BY n ASC Error on processing query 'SELECT m FROM nums__fuzz_22 WHERE materialize(toNullable(' ')) ORDER BY n ASC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(String). In query SELECT m FROM nums__fuzz_22 WHERE materialize(toNullable(' ')) ORDER BY n ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 154 out of 1000 SELECT m FROM nums__fuzz_43 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 155 out of 1000 SELECT m FROM nums__fuzz_48 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 156 out of 1000 SELECT m FROM nums__fuzz_48 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 157 out of 1000 SELECT m FROM nums__fuzz_48 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 158 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 159 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n DESC NULLS LAST Got boring AST Fuzzing step 160 out of 1000 SELECT m FROM nums__fuzz_27 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 161 out of 1000 SELECT m FROM nums__fuzz_18 PREWHERE materialize(toNullable(toUInt128(1))) ORDER BY n ASC NULLS FIRST Error on processing query 'SELECT m FROM nums__fuzz_18 PREWHERE materialize(toNullable(toUInt128(1))) ORDER BY n ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Storage Log (table default.nums__fuzz_18 (e36fe986-4aed-4a30-aa2a-ec41f66eae2b)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:257: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000003360556e 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 8. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 11. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 16. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 17. ? @ 0x00007fa035818ac3 18. ? @ 0x00007fa0358aa850 Fuzzing step 162 out of 1000 SELECT m FROM nums__fuzz_28 WHERE toFixedString(' ', 1) ORDER BY n DESC NULLS LAST Error on processing query 'SELECT m FROM nums__fuzz_28 WHERE toFixedString(' ', 1) ORDER BY n DESC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: FixedString(1). In query SELECT m FROM nums__fuzz_28 WHERE toFixedString(' ', 1) ORDER BY n DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 163 out of 1000 SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 SELECT m FROM nums__fuzz_9 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 165 out of 1000 SELECT m FROM nums__fuzz_9 ORDER BY n DESC Got boring AST Fuzzing step 166 out of 1000 EXPLAIN TABLE OVERRIDE SELECT m FROM nums__fuzz_18 ORDER BY n ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT m FROM nums__fuzz_18 ORDER BY n ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('m'): m FROM nums__fuzz_18 ORDER BY n ASC. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 167 out of 1000 SELECT m FROM nums__fuzz_12 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 168 out of 1000 SELECT m FROM nums__fuzz_12 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 169 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 170 out of 1000 SELECT m FROM nums__fuzz_18 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 171 out of 1000 SELECT m FROM nums__fuzz_18 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 172 out of 1000 SELECT m FROM nums__fuzz_18 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 173 out of 1000 SELECT m FROM nums__fuzz_3 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 174 out of 1000 SELECT m FROM nums__fuzz_47 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 175 out of 1000 SELECT m FROM nums__fuzz_43 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 176 out of 1000 SELECT m FROM nums__fuzz_3 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 177 out of 1000 SELECT m FROM nums__fuzz_3 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 178 out of 1000 SELECT m FROM nums__fuzz_3 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 179 out of 1000 SELECT m FROM nums__fuzz_28 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 180 out of 1000 SELECT m FROM nums__fuzz_16 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 181 out of 1000 SELECT m FROM nums__fuzz_15 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 182 out of 1000 SELECT m FROM nums__fuzz_15 ORDER BY n ASC Got boring AST Fuzzing step 183 out of 1000 SELECT m FROM nums__fuzz_3 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 184 out of 1000 SELECT m FROM nums__fuzz_46 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 185 out of 1000 SELECT m FROM nums__fuzz_18 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 186 out of 1000 SELECT m FROM nums__fuzz_25 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 187 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 189 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 190 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 191 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_43 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 192 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_43 ORDER BY n ASC Got boring AST Fuzzing step 193 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_43 ORDER BY n ASC Got boring AST Fuzzing step 194 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_43 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 195 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums__fuzz_43 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 196 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 197 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n ASC Got boring AST Fuzzing step 198 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n ASC Got boring AST Fuzzing step 199 out of 1000 SELECT m FROM nums__fuzz_9 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 200 out of 1000 SELECT m FROM nums__fuzz_3 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 201 out of 1000 SELECT m FROM nums__fuzz_3 ORDER BY n ASC Got boring AST Fuzzing step 202 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT m FROM nums__fuzz_3 ORDER BY n ASC Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT m FROM nums__fuzz_3 ORDER BY n ASC': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 203 out of 1000 SELECT m FROM nums__fuzz_43 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 204 out of 1000 SELECT m FROM nums__fuzz_48 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 205 out of 1000 SELECT m FROM nums__fuzz_48 ORDER BY n ASC NULLS FIRST Got boring AST Fuzzing step 206 out of 1000 SELECT m FROM nums__fuzz_17 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 207 out of 1000 SELECT m FROM nums__fuzz_48 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 208 out of 1000 SELECT m FROM nums__fuzz_9 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 209 out of 1000 SELECT m FROM nums__fuzz_12 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 210 out of 1000 SELECT m FROM nums__fuzz_27 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 211 out of 1000 SELECT m FROM nums__fuzz_27 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 212 out of 1000 SELECT m FROM nums__fuzz_6 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 SELECT m FROM nums__fuzz_46 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 214 out of 1000 SELECT m FROM nums__fuzz_46 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 215 out of 1000 SELECT m FROM nums__fuzz_48 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 216 out of 1000 SELECT materialize(toLowCardinality(1)), m FROM nums__fuzz_3 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 217 out of 1000 SELECT materialize(1), m FROM nums__fuzz_3 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 218 out of 1000 SELECT materialize(1), m FROM nums__fuzz_46 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 219 out of 1000 SELECT materialize(1), m FROM nums__fuzz_46 GROUP BY toLowCardinality(toFixedString(' ', 1)), toFixedString(toFixedString(' ', toUInt128(materialize(toNullable(1)))), 1), nums__fuzz_9 ORDER BY n ASC NULLS LAST Error on processing query 'SELECT materialize(1), m FROM nums__fuzz_46 GROUP BY toLowCardinality(toFixedString(' ', 1)), toFixedString(toFixedString(' ', toUInt128(materialize(toNullable(1)))), 1), nums__fuzz_9 ORDER BY n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT materialize(1), m FROM nums__fuzz_46 GROUP BY toLowCardinality(toFixedString(' ', 1)), toFixedString(toFixedString(' ', toUInt128(materialize(toNullable(1)))), 1), nums__fuzz_9 ORDER BY n ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 220 out of 1000 SELECT materialize(1), m FROM nums__fuzz_25 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 221 out of 1000 SELECT materialize(1), m FROM nums__fuzz_25 ORDER BY n ASC Got boring AST Fuzzing step 222 out of 1000 SELECT 1, m FROM nums__fuzz_16 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 223 out of 1000 SELECT 1, m FROM nums__fuzz_16 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 224 out of 1000 SELECT 1, m FROM nums__fuzz_27 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 225 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 1, m FROM nums__fuzz_25 ORDER BY n ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 1, m FROM nums__fuzz_25 ORDER BY n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 226 out of 1000 SELECT 1, m FROM nums__fuzz_46 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 227 out of 1000 SELECT toUInt256(1), m FROM nums__fuzz_9 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 228 out of 1000 SELECT toUInt256(1), m FROM nums__fuzz_9 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 229 out of 1000 SELECT toUInt256(materialize(toLowCardinality(toUInt128(1)))), m FROM nums__fuzz_12 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 230 out of 1000 SELECT toUInt256(materialize(toLowCardinality(toUInt128(1)))), m FROM nums__fuzz_25 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 231 out of 1000 SELECT toUInt256(materialize(toLowCardinality(toUInt128(1)))), m FROM nums__fuzz_13 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 232 out of 1000 SELECT materialize(toLowCardinality(toUInt128(1))), m FROM nums__fuzz_3 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 233 out of 1000 SELECT materialize(toLowCardinality(toUInt128(1))), m FROM nums__fuzz_3 ORDER BY n DESC Got boring AST Fuzzing step 234 out of 1000 SELECT materialize(toUInt128(1)), m FROM nums__fuzz_18 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 235 out of 1000 SELECT toUInt128(1), m FROM nums__fuzz_18 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 236 out of 1000 SELECT 1, m FROM nums__fuzz_12 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 237 out of 1000 SELECT 1, m FROM nums__fuzz_48 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 238 out of 1000 SELECT 1, m FROM nums__fuzz_46 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 239 out of 1000 SELECT 1, m FROM nums__fuzz_18 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 240 out of 1000 SELECT toNullable(1), m FROM nums__fuzz_18 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 241 out of 1000 SELECT 1, m FROM nums__fuzz_48 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 242 out of 1000 SELECT 1, m FROM nums__fuzz_48 ORDER BY n DESC Got boring AST Fuzzing step 243 out of 1000 SELECT 1, m FROM nums__fuzz_48 ORDER BY n DESC Got boring AST Fuzzing step 244 out of 1000 SELECT 1, m FROM nums__fuzz_18 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 245 out of 1000 SELECT 1, m FROM nums__fuzz_46 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 246 out of 1000 SELECT 1, m FROM nums__fuzz_46 ORDER BY n ASC Got boring AST Fuzzing step 247 out of 1000 SELECT 1, m FROM nums__fuzz_46 GROUP BY toNullable(materialize(toNullable(1))), toNullable(1) ORDER BY n ASC Error on processing query 'SELECT 1, m FROM nums__fuzz_46 GROUP BY toNullable(materialize(toNullable(1))), toNullable(1) ORDER BY n ASC': Received from localhost:9000. DB::Exception: Column default.nums__fuzz_46.n is not under aggregate function and not in GROUP BY keys. In query SELECT 1, m FROM nums__fuzz_46 GROUP BY toNullable(materialize(toNullable(1))), toNullable(1) ORDER BY n ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000335939dc 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 248 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1, m FROM nums__fuzz_6 PREWHERE version_pair[materialize(materialize(toNullable(1)))] ORDER BY n ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1, m FROM nums__fuzz_6 PREWHERE version_pair[materialize(materialize(toNullable(1)))] ORDER BY n ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 48 ('1'): 1, m FROM nums__fuzz_6 PREWHERE version_pair[materialize(materialize(toNullable(1)))] ORDER BY n ASC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 249 out of 1000 SELECT 1, m FROM nums__fuzz_46 ORDER BY n ASC Got boring AST Fuzzing step 250 out of 1000 SELECT 1, m FROM nums__fuzz_15 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 251 out of 1000 SELECT 1, m FROM nums__fuzz_15 ORDER BY n ASC Got boring AST Fuzzing step 252 out of 1000 SELECT 1, m FROM nums__fuzz_13 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 253 out of 1000 SELECT 1, m FROM nums__fuzz_13 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 254 out of 1000 SELECT m FROM nums__fuzz_46 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 255 out of 1000 SELECT m FROM nums__fuzz_46 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 256 out of 1000 SELECT m FROM nums__fuzz_3 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 257 out of 1000 SELECT m FROM nums__fuzz_25 WHERE nums ORDER BY n DESC Error on processing query 'SELECT m FROM nums__fuzz_25 WHERE nums ORDER BY n DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums' in scope SELECT m FROM nums__fuzz_25 WHERE nums ORDER BY n DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 258 out of 1000 SELECT m FROM nums__fuzz_18 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 259 out of 1000 SELECT m FROM nums__fuzz_12 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 260 out of 1000 SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 261 out of 1000 SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS FIRST Got boring AST Fuzzing step 262 out of 1000 SELECT m FROM nums__fuzz_6 GROUP BY toLowCardinality(' '), toFixedString(' ', 1), toNullable(materialize(toNullable(toNullable(1)))) ORDER BY n ASC NULLS FIRST Error on processing query 'SELECT m FROM nums__fuzz_6 GROUP BY toLowCardinality(' '), toFixedString(' ', 1), toNullable(materialize(toNullable(toNullable(1)))) ORDER BY n ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Column default.nums__fuzz_6.n is not under aggregate function and not in GROUP BY keys. In query SELECT m FROM nums__fuzz_6 GROUP BY toLowCardinality(' '), toFixedString(' ', 1), toNullable(materialize(toNullable(toNullable(1)))) ORDER BY n ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000335939dc 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 263 out of 1000 EXPLAIN AST optimize = true SELECT m FROM nums__fuzz_9 ORDER BY n ASC NULLS FIRST Error on processing query 'EXPLAIN AST optimize = true SELECT m FROM nums__fuzz_9 ORDER BY n ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "optimize" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495f93b 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 264 out of 1000 SELECT m FROM nums__fuzz_3 ORDER BY nums__fuzz_19 ASC, n ASC NULLS FIRST Error on processing query 'SELECT m FROM nums__fuzz_3 ORDER BY nums__fuzz_19 ASC, n ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_19' in scope SELECT m FROM nums__fuzz_3 ORDER BY nums__fuzz_19 ASC, n ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 265 out of 1000 SELECT m FROM nums__fuzz_13 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 266 out of 1000 SELECT m FROM nums__fuzz_13 ORDER BY n ASC NULLS FIRST Got boring AST Fuzzing step 267 out of 1000 SELECT m FROM nums__fuzz_13 ORDER BY n ASC NULLS FIRST Got boring AST Fuzzing step 268 out of 1000 SELECT m FROM nums__fuzz_27 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 269 out of 1000 SELECT m FROM nums__fuzz_17 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 270 out of 1000 SELECT m FROM nums__fuzz_43 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 271 out of 1000 SELECT m FROM nums__fuzz_43 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 272 out of 1000 SELECT m FROM nums__fuzz_28 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 273 out of 1000 SELECT m FROM nums__fuzz_28 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 274 out of 1000 SELECT m FROM nums__fuzz_15 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 275 out of 1000 SELECT m FROM nums__fuzz_15 WHERE nums__fuzz_24 ORDER BY n DESC NULLS FIRST Error on processing query 'SELECT m FROM nums__fuzz_15 WHERE nums__fuzz_24 ORDER BY n DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_24' in scope SELECT m FROM nums__fuzz_15 WHERE nums__fuzz_24 ORDER BY n DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 276 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 277 out of 1000 SELECT m FROM nums__fuzz_27 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 278 out of 1000 SELECT m FROM nums__fuzz_27 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 279 out of 1000 SELECT m FROM nums__fuzz_13 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 280 out of 1000 SELECT m FROM nums__fuzz_13 ORDER BY n DESC NULLS LAST Got boring AST Fuzzing step 281 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 282 out of 1000 SELECT m FROM nums__fuzz_13 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 283 out of 1000 SELECT m FROM nums__fuzz_6 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 284 out of 1000 SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 285 out of 1000 SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS FIRST Got boring AST Fuzzing step 286 out of 1000 SELECT m FROM nums__fuzz_25 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 287 out of 1000 SELECT m FROM nums__fuzz_25 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 288 out of 1000 SELECT m FROM nums__fuzz_15 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 289 out of 1000 SELECT m FROM nums__fuzz_27 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 290 out of 1000 SELECT m FROM nums__fuzz_46 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 291 out of 1000 SELECT m FROM nums__fuzz_13 WHERE 1 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 292 out of 1000 SELECT m FROM nums__fuzz_6 WHERE 1 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 293 out of 1000 EXPLAIN AST SELECT m FROM nums__fuzz_3 WHERE 1 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 294 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_3 WHERE 1 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 295 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums__fuzz_3 WHERE 1 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 296 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_3 WHERE 1 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 297 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_3 WHERE 1 ORDER BY n DESC Got boring AST Fuzzing step 298 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_3 WHERE 1 ORDER BY n DESC Got boring AST Fuzzing step 299 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_3 WHERE 1 ORDER BY n DESC Got boring AST Fuzzing step 300 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_3 WHERE 1 ORDER BY n DESC Got boring AST Fuzzing step 301 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_3 WHERE 1 ORDER BY n DESC Got boring AST Fuzzing step 302 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT m FROM nums__fuzz_3 WHERE 1 ORDER BY n DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT m FROM nums__fuzz_3 WHERE 1 ORDER BY n DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('m'): m FROM nums__fuzz_3 WHERE 1 ORDER BY n DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 303 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_3 WHERE 1 ORDER BY n DESC Got boring AST Fuzzing step 304 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_3 WHERE 1 ORDER BY n DESC Got boring AST Fuzzing step 305 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_3 WHERE 1 ORDER BY n DESC Got boring AST Fuzzing step 306 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums__fuzz_3 WHERE 1 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT m FROM nums__fuzz_3 WHERE 1 ORDER BY n DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT m FROM nums__fuzz_3 WHERE 1 ORDER BY n DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('m'): m FROM nums__fuzz_3 WHERE 1 ORDER BY n DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 308 out of 1000 SELECT m FROM nums__fuzz_12 WHERE 1 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 309 out of 1000 SELECT m FROM nums__fuzz_48 WHERE 1 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 310 out of 1000 SELECT m FROM nums__fuzz_6 WHERE 1 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 311 out of 1000 SELECT m FROM nums__fuzz_43 WHERE 1 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 312 out of 1000 SELECT m FROM nums__fuzz_43 WHERE 1 ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 313 out of 1000 SELECT nums__fuzz_47, m FROM nums__fuzz_16 WHERE 1 ORDER BY n DESC NULLS LAST Error on processing query 'SELECT nums__fuzz_47, m FROM nums__fuzz_16 WHERE 1 ORDER BY n DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_47' in scope SELECT nums__fuzz_47, m FROM nums__fuzz_16 WHERE 1 ORDER BY n DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 314 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 315 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n ASC NULLS FIRST Got boring AST Fuzzing step 316 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n ASC NULLS FIRST Got boring AST Fuzzing step 317 out of 1000 SELECT m FROM nums__fuzz_22 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 318 out of 1000 SELECT m FROM nums__fuzz_43 ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 319 out of 1000 SELECT m FROM nums__fuzz_43 ORDER BY n ASC NULLS FIRST Got boring AST Fuzzing step 320 out of 1000 SELECT m FROM nums__fuzz_13 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 321 out of 1000 SELECT m FROM nums__fuzz_48 WHERE toFixedString(toLowCardinality(' '), toLowCardinality(1)) ORDER BY n ASC Error on processing query 'SELECT m FROM nums__fuzz_48 WHERE toFixedString(toLowCardinality(' '), toLowCardinality(1)) ORDER BY n ASC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: LowCardinality(FixedString(1)). In query SELECT m FROM nums__fuzz_48 WHERE toFixedString(toLowCardinality(' '), toLowCardinality(1)) ORDER BY n ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 322 out of 1000 SELECT m FROM nums__fuzz_15 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 323 out of 1000 SELECT m FROM nums__fuzz_15 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 324 out of 1000 SELECT m FROM nums__fuzz_46 ORDER BY version_pair[materialize(materialize(toNullable(1)))] DESC, n ASC NULLS LAST Error on processing query 'SELECT m FROM nums__fuzz_46 ORDER BY version_pair[materialize(materialize(toNullable(1)))] DESC, n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT m FROM nums__fuzz_46 ORDER BY version_pair[materialize(materialize(toNullable(1)))] DESC, n ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 325 out of 1000 SELECT m FROM nums__fuzz_15 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 326 out of 1000 SELECT m FROM nums__fuzz_18 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 327 out of 1000 SELECT m FROM nums__fuzz_18 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 328 out of 1000 SELECT m FROM nums__fuzz_3 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 329 out of 1000 SELECT m FROM nums__fuzz_6 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 330 out of 1000 SELECT m FROM nums__fuzz_12 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 331 out of 1000 SELECT m FROM nums__fuzz_17 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 332 out of 1000 SELECT m FROM nums__fuzz_17 ORDER BY n ASC Got boring AST Fuzzing step 333 out of 1000 SELECT m FROM nums__fuzz_17 ORDER BY n ASC Got boring AST Fuzzing step 334 out of 1000 SELECT m FROM nums__fuzz_6 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 335 out of 1000 SELECT m FROM nums__fuzz_6 ORDER BY n ASC Got boring AST Fuzzing step 336 out of 1000 SELECT m FROM nums__fuzz_6 ORDER BY n ASC Got boring AST Fuzzing step 337 out of 1000 SELECT m FROM nums__fuzz_6 ORDER BY n ASC Got boring AST Fuzzing step 338 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 339 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 340 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 341 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 342 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 343 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 344 out of 1000 EXPLAIN SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 345 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 346 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 347 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 348 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 349 out of 1000 EXPLAIN TABLE OVERRIDE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('m'): m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 350 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 351 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 352 out of 1000 EXPLAIN AST SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 353 out of 1000 EXPLAIN AST SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 354 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 356 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 357 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 358 out of 1000 EXPLAIN SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 359 out of 1000 EXPLAIN SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 360 out of 1000 SELECT m FROM nums__fuzz_9 PREWHERE nums__fuzz_42 ORDER BY n ASC NULLS LAST Error on processing query 'SELECT m FROM nums__fuzz_9 PREWHERE nums__fuzz_42 ORDER BY n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_42' in scope SELECT m FROM nums__fuzz_9 PREWHERE nums__fuzz_42 ORDER BY n ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 361 out of 1000 EXPLAIN SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 362 out of 1000 EXPLAIN SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 363 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 364 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 365 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 366 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 367 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('m'): m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 368 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 369 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 370 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('m'): m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 371 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 372 out of 1000 EXPLAIN TABLE OVERRIDE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('m'): m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 373 out of 1000 EXPLAIN SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 374 out of 1000 EXPLAIN SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 375 out of 1000 EXPLAIN SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 376 out of 1000 EXPLAIN SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 377 out of 1000 EXPLAIN SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 378 out of 1000 EXPLAIN SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 379 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 380 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 381 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 382 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 383 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 384 out of 1000 EXPLAIN SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 385 out of 1000 EXPLAIN SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 386 out of 1000 EXPLAIN TABLE OVERRIDE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('m'): m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 387 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 388 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 389 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 390 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 391 out of 1000 EXPLAIN TABLE OVERRIDE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('m'): m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 392 out of 1000 EXPLAIN TABLE OVERRIDE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('m'): m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 393 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 394 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 395 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 396 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 EXPLAIN TABLE OVERRIDE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('m'): m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 398 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 399 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 400 out of 1000 EXPLAIN AST SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 401 out of 1000 EXPLAIN AST SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 402 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 403 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 404 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 405 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 406 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 407 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 408 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 409 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 410 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 411 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 412 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 413 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 414 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 415 out of 1000 SELECT m FROM nums__fuzz_16 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 416 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true SELECT m FROM nums__fuzz_12 ORDER BY n ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true SELECT m FROM nums__fuzz_12 ORDER BY n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 417 out of 1000 SELECT m FROM nums__fuzz_16 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 418 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT m FROM nums__fuzz_28 ORDER BY n ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT m FROM nums__fuzz_28 ORDER BY n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 419 out of 1000 SELECT m FROM nums__fuzz_17 WHERE materialize(materialize(' ')) ORDER BY n ASC NULLS FIRST Error on processing query 'SELECT m FROM nums__fuzz_17 WHERE materialize(materialize(' ')) ORDER BY n ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: String. In query SELECT m FROM nums__fuzz_17 WHERE materialize(materialize(' ')) ORDER BY n ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 420 out of 1000 SELECT m FROM nums__fuzz_43 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 421 out of 1000 SELECT toLowCardinality(toNullable(1)), m FROM nums__fuzz_43 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 422 out of 1000 SELECT toLowCardinality(toNullable(1)), m FROM nums__fuzz_43 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 423 out of 1000 SELECT toLowCardinality(toNullable(1)), m FROM nums__fuzz_43 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 424 out of 1000 SELECT materialize(toLowCardinality(1)), toLowCardinality(toNullable(1)), m FROM nums__fuzz_43 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 425 out of 1000 SELECT materialize(toLowCardinality(1)), toNullable(1), m FROM nums__fuzz_46 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 426 out of 1000 SELECT materialize(toLowCardinality(1)), toNullable(1), m FROM nums__fuzz_16 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 427 out of 1000 SELECT materialize(toLowCardinality(1)), toNullable(1), m FROM nums__fuzz_13 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 428 out of 1000 SELECT materialize(toLowCardinality(1)), toNullable(1), m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 429 out of 1000 SELECT materialize(toLowCardinality(1)), toNullable(1), m FROM nums__fuzz_6 ORDER BY version_pair[toLowCardinality(1)] ASC NULLS LAST, n ASC NULLS LAST Error on processing query 'SELECT materialize(toLowCardinality(1)), toNullable(1), m FROM nums__fuzz_6 ORDER BY version_pair[toLowCardinality(1)] ASC NULLS LAST, n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT materialize(toLowCardinality(1)), toNullable(1), m FROM nums__fuzz_6 ORDER BY version_pair[toLowCardinality(1)] ASC NULLS LAST, n ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 430 out of 1000 SELECT materialize(toLowCardinality(1)), toNullable(1), m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 431 out of 1000 SELECT materialize(1), toNullable(1), m FROM nums__fuzz_6 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 432 out of 1000 SELECT materialize(1), toNullable(1), m FROM nums__fuzz_17 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 433 out of 1000 SELECT materialize(1), toNullable(1), m FROM nums__fuzz_17 ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 434 out of 1000 SELECT materialize(1), toNullable(1), m FROM nums__fuzz_16 ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 435 out of 1000 SELECT materialize(1), toNullable(1), m FROM nums__fuzz_47 ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 436 out of 1000 SELECT materialize(1), toNullable(1), m FROM nums__fuzz_47 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 437 out of 1000 EXPLAIN PIPELINE SELECT materialize(1), toNullable(1), m FROM nums__fuzz_22 ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 438 out of 1000 SELECT materialize(1), toNullable(1), m FROM nums__fuzz_3 WHERE materialize(toNullable(1)) ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 439 out of 1000 SELECT materialize(1), toNullable(1), m FROM nums__fuzz_6 WHERE materialize(toNullable(1)) ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 440 out of 1000 SELECT materialize(1), toNullable(1), m FROM nums__fuzz_15 WHERE materialize(toNullable(1)) ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 441 out of 1000 SELECT materialize(1), toNullable(1), m FROM nums__fuzz_15 WHERE materialize(toNullable(1)) ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 442 out of 1000 SELECT materialize(1), toNullable(1), m FROM nums__fuzz_15 WHERE materialize(1) ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 443 out of 1000 SELECT materialize(1), toNullable(1), m FROM nums__fuzz_15 WHERE materialize(1) ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 444 out of 1000 EXPLAIN SYNTAX SELECT materialize(1), toNullable(1), m FROM nums__fuzz_27 WHERE materialize(1) ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 445 out of 1000 EXPLAIN SYNTAX SELECT materialize(1), toNullable(1), m FROM nums__fuzz_27 WHERE materialize(1) ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 446 out of 1000 EXPLAIN SELECT materialize(1), toNullable(1), m FROM nums__fuzz_27 WHERE materialize(1) ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 447 out of 1000 EXPLAIN SELECT materialize(1), toNullable(1), m FROM nums__fuzz_27 WHERE materialize(1) ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 448 out of 1000 EXPLAIN QUERY TREE SELECT materialize(1), toNullable(1), m FROM nums__fuzz_27 WHERE materialize(1) ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 449 out of 1000 EXPLAIN QUERY TREE SELECT materialize(1), toNullable(1), m FROM nums__fuzz_27 WHERE materialize(1) ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 450 out of 1000 EXPLAIN PIPELINE SELECT materialize(1), toNullable(1), m FROM nums__fuzz_27 WHERE materialize(1) ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 451 out of 1000 EXPLAIN PIPELINE SELECT materialize(1), toNullable(1), m FROM nums__fuzz_27 WHERE materialize(1) ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 452 out of 1000 EXPLAIN SYNTAX SELECT materialize(1), toNullable(1), m FROM nums__fuzz_27 WHERE materialize(1) ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 453 out of 1000 EXPLAIN PIPELINE SELECT materialize(1), toNullable(1), m FROM nums__fuzz_27 WHERE materialize(1) ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 454 out of 1000 EXPLAIN PIPELINE SELECT materialize(1), toNullable(1), m FROM nums__fuzz_27 WHERE materialize(1) ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 455 out of 1000 EXPLAIN PIPELINE SELECT materialize(1), toNullable(1), m FROM nums__fuzz_27 WHERE materialize(1) ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 456 out of 1000 EXPLAIN AST SELECT materialize(1), toNullable(1), m FROM nums__fuzz_27 WHERE materialize(1) ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 457 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(1), toNullable(1), m FROM nums__fuzz_27 WHERE materialize(1) ORDER BY n ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(1), toNullable(1), m FROM nums__fuzz_27 WHERE materialize(1) ORDER BY n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(1), toNullable(1), m FROM nums__fuzz_27 WHERE materialize(1) ORDER BY n ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 458 out of 1000 EXPLAIN ESTIMATE SELECT materialize(1), toNullable(1), m FROM nums__fuzz_27 WHERE materialize(1) ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 459 out of 1000 SELECT materialize(1), toNullable(1), m FROM nums__fuzz_16 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 460 out of 1000 SELECT materialize(1), toNullable(1), m FROM nums__fuzz_16 ORDER BY n ASC NULLS LAST Got boring AST Fuzzing step 461 out of 1000 SELECT 1, toNullable(splitByChar(' ', getOSKernelVersion()), 1), m FROM nums__fuzz_13 ORDER BY n ASC NULLS FIRST Error on processing query 'SELECT 1, toNullable(splitByChar(' ', getOSKernelVersion()), 1), m FROM nums__fuzz_13 ORDER BY n ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT 1, toNullable(splitByChar(' ', getOSKernelVersion()), 1), m FROM nums__fuzz_13 ORDER BY n ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 462 out of 1000 SELECT toNullable(materialize(toNullable(toNullable(1)))), materialize(1), toNullable(1), m FROM nums__fuzz_16 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 463 out of 1000 SELECT toNullable(materialize(toNullable(toNullable(1)))), materialize(toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(1))))), 1), 1, m FROM nums__fuzz_13 ORDER BY n ASC NULLS LAST Error on processing query 'SELECT toNullable(materialize(toNullable(toNullable(1)))), materialize(toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(1))))), 1), 1, m FROM nums__fuzz_13 ORDER BY n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toNullable(materialize(toNullable(toNullable(1)))), materialize(toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(1))))), 1), 1, m FROM nums__fuzz_13 ORDER BY n ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 464 out of 1000 SELECT toNullable(materialize(materialize(toUInt256(1)), toNullable(toNullable(1)))), 1, toNullable(1), m FROM nums__fuzz_9 ORDER BY n ASC NULLS LAST Error on processing query 'SELECT toNullable(materialize(materialize(toUInt256(1)), toNullable(toNullable(1)))), 1, toNullable(1), m FROM nums__fuzz_9 ORDER BY n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toNullable(materialize(materialize(toUInt256(1)), toNullable(toNullable(1)))), 1, toNullable(1), m FROM nums__fuzz_9 ORDER BY n ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 465 out of 1000 SELECT toNullable(toNullable(toNullable(1))), materialize(materialize(1)), toNullable(materialize(1)), m FROM nums__fuzz_16 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 466 out of 1000 SELECT toNullable(toNullable(toNullable(1))), materialize(1), toNullable(1), m FROM nums__fuzz_16 ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 467 out of 1000 SELECT toNullable(toNullable(1)), materialize(1), toNullable(1), m FROM nums__fuzz_28 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 468 out of 1000 SELECT toNullable(toNullable(1)), materialize(toLowCardinality(toUInt256(1))), toNullable(1), m FROM nums__fuzz_9 WHERE nums__fuzz_10 GROUP BY materialize(toNullable(' ')), nums__fuzz_33 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC, n DESC NULLS FIRST Error on processing query 'SELECT toNullable(toNullable(1)), materialize(toLowCardinality(toUInt256(1))), toNullable(1), m FROM nums__fuzz_9 WHERE nums__fuzz_10 GROUP BY materialize(toNullable(' ')), nums__fuzz_33 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC, n DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_10' in scope SELECT toNullable(toNullable(1)), materialize(toLowCardinality(toUInt256(1))), toNullable(1), m FROM nums__fuzz_9 WHERE nums__fuzz_10 GROUP BY materialize(toNullable(' ')), nums__fuzz_33 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC, n DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 469 out of 1000 SELECT toNullable(1), materialize(1), toNullable(1), m FROM nums__fuzz_18 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 470 out of 1000 SELECT toNullable(1), materialize(1), toNullable(1), m FROM nums__fuzz_3 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 471 out of 1000 SELECT toNullable(1), materialize(1), 1, m FROM nums__fuzz_3 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 472 out of 1000 SELECT toNullable(1), materialize(toLowCardinality(toUInt256(1))), 1, m FROM nums__fuzz_3 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 473 out of 1000 SELECT toNullable(1), toLowCardinality(toUInt256(1)), 1, m FROM nums__fuzz_3 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 474 out of 1000 EXPLAIN sorting = true SELECT toNullable(1), toLowCardinality(toUInt256(1)), 1, m FROM nums__fuzz_9 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC, n DESC Error on processing query 'EXPLAIN sorting = true SELECT toNullable(1), toLowCardinality(toUInt256(1)), 1, m FROM nums__fuzz_9 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC, n DESC': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "sorting" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496cdff 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 475 out of 1000 SELECT toNullable(1), toLowCardinality(toUInt256(1)), 1, m FROM nums__fuzz_28 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 476 out of 1000 SELECT toNullable(1), toLowCardinality(toUInt256(1)), 1, m FROM nums__fuzz_28 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 477 out of 1000 SELECT toNullable(1), toLowCardinality(1), 1, m FROM nums__fuzz_15 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS FIRST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 478 out of 1000 SELECT toNullable(1), 1, 1, m FROM nums__fuzz_13 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 479 out of 1000 SELECT toNullable(toNullable(1)), 1, 1, m FROM nums__fuzz_13 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS FIRST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 480 out of 1000 SELECT nums__fuzz_18, toNullable(1), 1, 1, m FROM nums__fuzz_47 GROUP BY nums__fuzz_3, toLowCardinality(1), nums__fuzz_45 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC, n DESC NULLS LAST Error on processing query 'SELECT nums__fuzz_18, toNullable(1), 1, 1, m FROM nums__fuzz_47 GROUP BY nums__fuzz_3, toLowCardinality(1), nums__fuzz_45 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC, n DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_18' in scope SELECT nums__fuzz_18, toNullable(1), 1, 1, m FROM nums__fuzz_47 GROUP BY nums__fuzz_3, toLowCardinality(1), nums__fuzz_45 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC, n DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 481 out of 1000 SELECT toNullable(1), 1, 1, m FROM nums__fuzz_25 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 482 out of 1000 SELECT toNullable(1), 1, materialize(1), m FROM nums__fuzz_28 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 483 out of 1000 SELECT toNullable(1), 1, 1, m FROM nums__fuzz_27 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 484 out of 1000 SELECT toNullable(nums__fuzz_7, 1), 1, 1, m FROM nums__fuzz_47 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC NULLS LAST Error on processing query 'SELECT toNullable(nums__fuzz_7, 1), 1, 1, m FROM nums__fuzz_47 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_7' in scope SELECT toNullable(nums__fuzz_7, 1), 1, 1, m FROM nums__fuzz_47 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 485 out of 1000 SELECT toNullable(1), 1, 1, m FROM nums__fuzz_28 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 486 out of 1000 SELECT toNullable(1), 1, 1, m FROM nums__fuzz_16 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 487 out of 1000 SELECT toNullable(1), 1, 1, m FROM nums__fuzz_15 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 488 out of 1000 SELECT toNullable(1), 1, 1, m FROM nums__fuzz_17 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 489 out of 1000 SELECT toNullable(1), 1, 1, m FROM nums__fuzz_17 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n ASC NULLS LAST Got boring AST Fuzzing step 490 out of 1000 SELECT toNullable(1), 1, 1, m FROM nums__fuzz_3 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 491 out of 1000 SELECT toNullable(1), 1, 1, m FROM nums__fuzz_48 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 492 out of 1000 SELECT toNullable(1), 1, 1, m FROM nums__fuzz_48 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC NULLS FIRST Got boring AST Fuzzing step 493 out of 1000 SELECT toNullable(1), 1, 1, m FROM nums__fuzz_15 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS FIRST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 494 out of 1000 SELECT toNullable(1), 1, 1, m FROM nums__fuzz_13 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n ASC Query succeeded, using this AST as a start Fuzzing step 495 out of 1000 SELECT toNullable(1), 1, 1, m FROM nums__fuzz_13 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 496 out of 1000 SELECT toNullable(1), 1, 1, m FROM nums__fuzz_48 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 497 out of 1000 SELECT toNullable(1), 1, 1, m FROM nums__fuzz_18 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 498 out of 1000 SELECT toNullable(1), 1, 1, m FROM nums__fuzz_17 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 499 out of 1000 SELECT toNullable(toLowCardinality(1)), 1, 1, m FROM nums__fuzz_17 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 500 out of 1000 SELECT toNullable(toLowCardinality(1)), 1, 1, m FROM nums__fuzz_15 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 501 out of 1000 SELECT toNullable(toLowCardinality(1)), 1, m FROM nums__fuzz_15 GROUP BY nums__fuzz_22, toNullable(toNullable(toNullable(1))) ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n DESC NULLS FIRST Error on processing query 'SELECT toNullable(toLowCardinality(1)), 1, m FROM nums__fuzz_15 GROUP BY nums__fuzz_22, toNullable(toNullable(toNullable(1))) ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_22' in scope SELECT toNullable(toLowCardinality(1)), 1, m FROM nums__fuzz_15 GROUP BY nums__fuzz_22, toNullable(toNullable(toNullable(1))) ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 502 out of 1000 SELECT toNullable(1), 1, 1, m FROM nums__fuzz_25 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 503 out of 1000 SELECT toNullable(1), 1, 1, m FROM nums__fuzz_15 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 504 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_15 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 505 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_17 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 506 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_27 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 507 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_43 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 508 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_46 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 509 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_17 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 510 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_27 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 511 out of 1000 SELECT 1, 1, toUInt256(1), m FROM nums__fuzz_27 ORDER BY nums__fuzz_7 ASC, materialize(materialize(toFixedString(' ', 1))) DESC NULLS FIRST, n ASC NULLS LAST Error on processing query 'SELECT 1, 1, toUInt256(1), m FROM nums__fuzz_27 ORDER BY nums__fuzz_7 ASC, materialize(materialize(toFixedString(' ', 1))) DESC NULLS FIRST, n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_7' in scope SELECT 1, 1, toUInt256(1), m FROM nums__fuzz_27 ORDER BY nums__fuzz_7 ASC, materialize(materialize(toFixedString(' ', 1))) DESC NULLS FIRST, n ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 512 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_27 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n DESC Query succeeded, using this AST as a start Fuzzing step 513 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_13 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n DESC Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_12 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS FIRST, n DESC Query succeeded, using this AST as a start Fuzzing step 515 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_12 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS FIRST, n DESC Got boring AST Fuzzing step 516 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_12 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS FIRST, n DESC Got boring AST Fuzzing step 517 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_46 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC Query succeeded, using this AST as a start Fuzzing step 518 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_46 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC Got boring AST Fuzzing step 519 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_25 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC Query succeeded, using this AST as a start Fuzzing step 520 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_25 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC Got boring AST Fuzzing step 521 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_47 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS FIRST, n DESC Query succeeded, using this AST as a start Fuzzing step 522 out of 1000 SELECT 1, 1, toNullable(toUInt128(1)), m FROM nums__fuzz_28 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 523 out of 1000 SELECT 1, 1, toNullable(1), m FROM nums__fuzz_3 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 EXPLAIN ESTIMATE SELECT 1, 1, toNullable(toUInt128(1)), m FROM nums__fuzz_3 WHERE toNullable(toFixedString(' ', toLowCardinality(toUInt256(1)))) ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS FIRST, n ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT 1, 1, toNullable(toUInt128(1)), m FROM nums__fuzz_3 WHERE toNullable(toFixedString(' ', toLowCardinality(toUInt256(1)))) ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS FIRST, n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: LowCardinality(Nullable(FixedString(1))). In query SELECT 1, 1, toNullable(toUInt128(1)), m FROM nums__fuzz_3 WHERE toNullable(toFixedString(' ', toLowCardinality(toUInt256(1)))) ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS FIRST, n ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 525 out of 1000 SELECT 1, 1, toNullable(1), m FROM nums__fuzz_3 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC NULLS FIRST Got boring AST Fuzzing step 526 out of 1000 SELECT 1, 1, toNullable(1), m FROM nums__fuzz_3 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC NULLS FIRST Got boring AST Fuzzing step 527 out of 1000 SELECT 1, 1, toNullable(1), m FROM nums__fuzz_3 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC NULLS FIRST Got boring AST Fuzzing step 528 out of 1000 SELECT 1, 1, toNullable(1), m FROM nums__fuzz_3 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC NULLS FIRST Got boring AST Fuzzing step 529 out of 1000 SELECT 1, 1, toNullable(1), m FROM nums__fuzz_25 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS FIRST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 530 out of 1000 SELECT 1, 1, toNullable(materialize(1)), m FROM nums__fuzz_13 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS FIRST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 531 out of 1000 SELECT 1, 1, toNullable(materialize(1)), m FROM nums__fuzz_13 GROUP BY materialize(toLowCardinality(toUInt128(1))), n + 1, toFixedString(toLowCardinality(toNullable(' ')), 1, 1) ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS FIRST, n DESC NULLS FIRST Error on processing query 'SELECT 1, 1, toNullable(materialize(1)), m FROM nums__fuzz_13 GROUP BY materialize(toLowCardinality(toUInt128(1))), n + 1, toFixedString(toLowCardinality(toNullable(' ')), 1, 1) ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS FIRST, n DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 1, toNullable(materialize(1)), m FROM nums__fuzz_13 GROUP BY materialize(toLowCardinality(toUInt128(1))), n + 1, toFixedString(toLowCardinality(toNullable(' ')), 1, 1) ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS FIRST, n DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 532 out of 1000 SELECT 1, 1, toNullable(materialize(materialize(1))), m FROM nums__fuzz_13 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS FIRST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 533 out of 1000 SELECT 1, 1, toNullable(materialize(materialize(1))), m FROM nums__fuzz_13 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS FIRST, n DESC NULLS FIRST Got boring AST Fuzzing step 534 out of 1000 SELECT 1, 1, toNullable(materialize(nums__fuzz_8, materialize(1))), m FROM nums__fuzz_15 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS FIRST, n DESC NULLS FIRST Error on processing query 'SELECT 1, 1, toNullable(materialize(nums__fuzz_8, materialize(1))), m FROM nums__fuzz_15 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS FIRST, n DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_8' in scope SELECT 1, 1, toNullable(materialize(nums__fuzz_8, materialize(1))), m FROM nums__fuzz_15 ORDER BY materialize(materialize(toFixedString(' ', 1))) DESC NULLS FIRST, n DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 535 out of 1000 SELECT 1, 1, materialize(materialize(1)), m FROM nums__fuzz_13 ORDER BY materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 536 out of 1000 SELECT 1, 1, materialize(materialize(1)), m FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 537 out of 1000 SELECT 1, 1, materialize(materialize(1)), m FROM nums__fuzz_6 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC Query succeeded, using this AST as a start Fuzzing step 538 out of 1000 SELECT 1, 1, materialize(1), m FROM nums__fuzz_6 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS FIRST, n DESC Query succeeded, using this AST as a start Fuzzing step 539 out of 1000 SELECT 1, 1, materialize(1), m FROM nums__fuzz_22 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) ASC, n DESC Query succeeded, using this AST as a start Fuzzing step 540 out of 1000 SELECT 1, 1, materialize(1), m FROM nums__fuzz_18 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) ASC, n DESC Query succeeded, using this AST as a start Fuzzing step 541 out of 1000 SELECT 1, 1, materialize(1), m FROM nums__fuzz_18 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) ASC, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 542 out of 1000 SELECT 1, 1, materialize(toNullable(1)), m FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) ASC, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 543 out of 1000 SELECT 1, 1, materialize(toNullable(materialize(toUInt256(1)))), m FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) ASC, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 544 out of 1000 SELECT 1, 1, toNullable(materialize(toUInt256(1))), m FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) DESC, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 545 out of 1000 SELECT 1, 1, toNullable(materialize(toUInt256(1))), m FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) DESC, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 546 out of 1000 SELECT materialize(toLowCardinality(materialize(' '), 1)), 1, 1, toNullable(materialize(toUInt256(1))), m FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) ASC, n DESC NULLS FIRST Error on processing query 'SELECT materialize(toLowCardinality(materialize(' '), 1)), 1, 1, toNullable(materialize(toUInt256(1))), m FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) ASC, n DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT materialize(toLowCardinality(materialize(' '), 1)), 1, 1, toNullable(materialize(toUInt256(1))), m FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) ASC, n DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 547 out of 1000 SELECT 1, 1, toNullable(materialize(toUInt256(1))), m FROM nums__fuzz_13 GROUP BY version_pair[materialize(1)] ORDER BY materialize(toLowCardinality(toFixedString(' ', 1))) ASC, materialize(toNullable(' ')) DESC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) DESC, n DESC NULLS FIRST Error on processing query 'SELECT 1, 1, toNullable(materialize(toUInt256(1))), m FROM nums__fuzz_13 GROUP BY version_pair[materialize(1)] ORDER BY materialize(toLowCardinality(toFixedString(' ', 1))) ASC, materialize(toNullable(' ')) DESC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) DESC, n DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT 1, 1, toNullable(materialize(toUInt256(1))), m FROM nums__fuzz_13 GROUP BY version_pair[materialize(1)] ORDER BY materialize(toLowCardinality(toFixedString(' ', 1))) ASC, materialize(toNullable(' ')) DESC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) DESC, n DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 548 out of 1000 SELECT 1, 1, toNullable(materialize(toUInt256(1))), m FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) ASC, n DESC Query succeeded, using this AST as a start Fuzzing step 549 out of 1000 SELECT 1, 1, toNullable(toUInt256(1)), m FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, nums__fuzz_36 ASC, materialize(materialize(toFixedString(' ', 1))) ASC, n DESC Error on processing query 'SELECT 1, 1, toNullable(toUInt256(1)), m FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, nums__fuzz_36 ASC, materialize(materialize(toFixedString(' ', 1))) ASC, n DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_36' in scope SELECT 1, 1, toNullable(toUInt256(1)), m FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, nums__fuzz_36 ASC, materialize(materialize(toFixedString(' ', 1))) ASC, n DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 550 out of 1000 SELECT 1, 1, toNullable(materialize(toUInt256(1))), m FROM nums__fuzz_25 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC Query succeeded, using this AST as a start Fuzzing step 551 out of 1000 SELECT 1, 1, toNullable(materialize(toUInt256(1))), m FROM nums__fuzz_3 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC Query succeeded, using this AST as a start Fuzzing step 552 out of 1000 SELECT 1, 1, toNullable(toUInt256(1)), m FROM nums__fuzz_3 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n ASC Query succeeded, using this AST as a start Fuzzing step 553 out of 1000 SELECT 1, 1, toNullable(toUInt256(1)), m FROM nums__fuzz_6 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n ASC Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 SELECT 1, 1, toNullable(toUInt256(1)), m FROM nums__fuzz_6 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 555 out of 1000 SELECT 1, 1, toNullable(toUInt256(1)), m FROM nums__fuzz_6 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 556 out of 1000 SELECT 1, 1, toNullable(toUInt256(1)), m FROM nums__fuzz_6 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS FIRST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 557 out of 1000 SELECT 1, 1, toNullable(toUInt256(1)), m FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n ASC Query succeeded, using this AST as a start Fuzzing step 558 out of 1000 SELECT 1, 1, toNullable(toUInt256(1)), m FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n ASC Got boring AST Fuzzing step 559 out of 1000 SELECT 1, 1, toNullable(1), m FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n ASC Query succeeded, using this AST as a start Fuzzing step 560 out of 1000 SELECT 1, 1, toNullable(1), m FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 561 out of 1000 SELECT 1, 1, toNullable(1), m FROM nums__fuzz_47 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 562 out of 1000 SELECT 1, 1, toNullable(1), m FROM nums__fuzz_47 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 563 out of 1000 SELECT 1, 1, toNullable(1), m FROM nums__fuzz_47 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 564 out of 1000 SELECT 1, 1, toNullable(1), m FROM nums__fuzz_47 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 565 out of 1000 SELECT 1, 1, toNullable(1), m FROM nums__fuzz_3 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 566 out of 1000 SELECT 1, 1, toNullable(1), m FROM nums__fuzz_48 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 567 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS FIRST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 568 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS FIRST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 569 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_3 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS FIRST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 570 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_46 ORDER BY materialize(toNullable(' ')) DESC, materialize(materialize(toFixedString(' ', 1))) ASC NULLS FIRST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 571 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_6 ORDER BY materialize(toNullable(' ')) DESC, materialize(materialize(toFixedString(' ', 1))) ASC, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 572 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_6 ORDER BY materialize(toNullable(' ')) DESC, materialize(materialize(toFixedString(' ', 1))) ASC, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 573 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_22 ORDER BY materialize(toNullable(' ')) DESC, materialize(materialize(toFixedString(' ', 1))) ASC, n DESC Query succeeded, using this AST as a start Fuzzing step 574 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_6 ORDER BY materialize(toNullable(' ')) ASC, materialize(materialize(toFixedString(' ', 1))) DESC, n DESC Query succeeded, using this AST as a start Fuzzing step 575 out of 1000 SELECT toLowCardinality(1), 1, 1, m FROM nums__fuzz_13 WHERE toFixedString(' ', toLowCardinality(toUInt256(1))) ORDER BY materialize(toNullable(' ')) ASC, n ASC Error on processing query 'SELECT toLowCardinality(1), 1, 1, m FROM nums__fuzz_13 WHERE toFixedString(' ', toLowCardinality(toUInt256(1))) ORDER BY materialize(toNullable(' ')) ASC, n ASC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: LowCardinality(FixedString(1)). In query SELECT toLowCardinality(1), 1, 1, m FROM nums__fuzz_13 WHERE toFixedString(' ', toLowCardinality(toUInt256(1))) ORDER BY materialize(toNullable(' ')) ASC, n ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 576 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_12 ORDER BY materialize(toNullable(' ')) DESC, materialize(materialize(toFixedString(' ', 1))) DESC, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 577 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_12 ORDER BY materialize(toNullable(' ')) DESC, materialize(materialize(toFixedString(' ', 1))) DESC, n DESC NULLS FIRST Got boring AST Fuzzing step 578 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_12 ORDER BY materialize(toNullable(' ')) DESC, materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 579 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_12 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 580 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n DESC Query succeeded, using this AST as a start Fuzzing step 581 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 582 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) DESC NULLS LAST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 583 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_9 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) DESC, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 584 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, materialize(materialize(toFixedString(' ', 1))) ASC, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 585 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_9 ORDER BY materialize(toNullable(' ')) DESC, materialize(materialize(toFixedString(' ', 1))) ASC, n DESC Query succeeded, using this AST as a start Fuzzing step 586 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_3 ORDER BY materialize(toNullable(' ')) DESC, toLowCardinality(materialize(materialize(toNullable(1)))) ASC, materialize(materialize(toFixedString(' ', 1))) ASC, n DESC Query succeeded, using this AST as a start Fuzzing step 587 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_27 ORDER BY materialize(toNullable(' ')) DESC, toLowCardinality(materialize(materialize(toNullable(1)))) ASC, materialize(materialize(toFixedString(' ', 1))) ASC, n DESC Query succeeded, using this AST as a start Fuzzing step 588 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_27 ORDER BY materialize(toNullable(' ')) DESC, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, materialize(materialize(toFixedString(' ', 1))) ASC NULLS LAST, n DESC Query succeeded, using this AST as a start Fuzzing step 589 out of 1000 SELECT 1, toLowCardinality(1), 1, m FROM nums__fuzz_46 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC Query succeeded, using this AST as a start Fuzzing step 590 out of 1000 SELECT 1, toLowCardinality(1), 1, m FROM nums__fuzz_46 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, toNullable(toFixedString(' ', 1, 1)) ASC, n DESC Error on processing query 'SELECT 1, toLowCardinality(1), 1, m FROM nums__fuzz_46 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, toNullable(toFixedString(' ', 1, 1)) ASC, n DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, toLowCardinality(1), 1, m FROM nums__fuzz_46 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, toNullable(toFixedString(' ', 1, 1)) ASC, n DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 591 out of 1000 SELECT 1, toLowCardinality(1), 1, m FROM nums__fuzz_46 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC Query succeeded, using this AST as a start Fuzzing step 592 out of 1000 SELECT 1, toLowCardinality(1), 1, m FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 593 out of 1000 SELECT 1, toLowCardinality(toNullable(1)), 1, m FROM nums__fuzz_48 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n DESC Query succeeded, using this AST as a start Fuzzing step 594 out of 1000 SELECT 1, toLowCardinality(toNullable(1)), 1, m FROM nums__fuzz_9 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n DESC Query succeeded, using this AST as a start Fuzzing step 595 out of 1000 SELECT 1, toLowCardinality(toNullable(1)), 1, m FROM nums__fuzz_16 ORDER BY materialize(toNullable(' ')) DESC, toFixedString(' ', toUInt128(1)) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n ASC Query succeeded, using this AST as a start Fuzzing step 596 out of 1000 SELECT 1, toLowCardinality(toNullable(1)), 1, m FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC, toFixedString(' ', toUInt128(1)) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 597 out of 1000 SELECT 1, toLowCardinality(toNullable(1)), materialize(1), m FROM nums__fuzz_12 ORDER BY materialize(toNullable(' ')) DESC, toFixedString(' ', toUInt128(1)) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 598 out of 1000 SELECT 1, toLowCardinality(1), 1, m FROM nums__fuzz_3 ORDER BY materialize(toNullable(' ')) DESC, toFixedString(' ', toUInt128(1)) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 599 out of 1000 SELECT 1, 1, 1, m FROM nums__fuzz_3 ORDER BY materialize(toNullable(' ')) DESC, toFixedString(' ', toUInt128(1)) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 600 out of 1000 SELECT toUInt128(1), 1, 1, m FROM nums__fuzz_3 ORDER BY materialize(toNullable(' ')) DESC, toFixedString(' ', toUInt128(1)) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 601 out of 1000 SELECT toUInt128(1), 1, 1, m FROM nums__fuzz_18 GROUP BY m, nums__fuzz_8 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n ASC NULLS LAST Error on processing query 'SELECT toUInt128(1), 1, 1, m FROM nums__fuzz_18 GROUP BY m, nums__fuzz_8 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_8' in scope SELECT toUInt128(1), 1, 1, m FROM nums__fuzz_18 GROUP BY m, nums__fuzz_8 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 602 out of 1000 SELECT toUInt128(1), 1, 1, m FROM nums__fuzz_28 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 603 out of 1000 SELECT toUInt128(1), 1, 1, m FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 604 out of 1000 SELECT 1, 1, m FROM nums__fuzz_3 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 605 out of 1000 SELECT 1, 1, m FROM nums__fuzz_3 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC Query succeeded, using this AST as a start Fuzzing step 606 out of 1000 SELECT 1, 1, m FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC Query succeeded, using this AST as a start Fuzzing step 607 out of 1000 SELECT 1, 1, m FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC, n ASC Query succeeded, using this AST as a start Fuzzing step 608 out of 1000 SELECT 1, 1, m FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC, n ASC Got boring AST Fuzzing step 609 out of 1000 SELECT 1, 1, m FROM nums__fuzz_28 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC, n ASC Query succeeded, using this AST as a start Fuzzing step 610 out of 1000 SELECT 1, 1, m FROM nums__fuzz_9 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC, n ASC Query succeeded, using this AST as a start Fuzzing step 611 out of 1000 SELECT 1, 1, m FROM nums__fuzz_27 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC, n ASC Query succeeded, using this AST as a start Fuzzing step 612 out of 1000 SELECT 1, 1, m FROM nums__fuzz_27 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC, n ASC Query succeeded, using this AST as a start Fuzzing step 613 out of 1000 SELECT 1, 1, m FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 614 out of 1000 SELECT 1, 1, m FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 615 out of 1000 SELECT 1, 1, m FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 616 out of 1000 SELECT 1, 1, m FROM nums__fuzz_27 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toNullable(1) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 617 out of 1000 SELECT 1, 1, m FROM nums__fuzz_27 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 618 out of 1000 SELECT 1, 1, m FROM nums__fuzz_27 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 619 out of 1000 SELECT 1, 1, m FROM nums__fuzz_22 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 620 out of 1000 SELECT 1, 1, m FROM nums__fuzz_46 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 621 out of 1000 SELECT 1, 1, m FROM nums__fuzz_27 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 622 out of 1000 SELECT 1, 1, m FROM nums__fuzz_27 PREWHERE toNullable(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toNullable(1) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC, n ASC NULLS FIRST Error on processing query 'SELECT 1, 1, m FROM nums__fuzz_27 PREWHERE toNullable(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toNullable(1) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC, n ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Storage Log (table default.nums__fuzz_27 (4c1eee73-6c8f-4028-a897-506bc185b2c7)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:257: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000003360556e 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 8. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 11. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 16. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 17. ? @ 0x00007fa035818ac3 18. ? @ 0x00007fa0358aa850 Fuzzing step 623 out of 1000 SELECT 1, 1, m FROM nums__fuzz_27 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toNullable(1) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC, n ASC Query succeeded, using this AST as a start Fuzzing step 624 out of 1000 SELECT 1, 1 FROM nums__fuzz_16 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 625 out of 1000 SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC, n ASC Query succeeded, using this AST as a start Fuzzing step 626 out of 1000 EXPLAIN PIPELINE SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 627 out of 1000 EXPLAIN PIPELINE SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 628 out of 1000 EXPLAIN PIPELINE SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 629 out of 1000 EXPLAIN AST SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 630 out of 1000 EXPLAIN AST SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 631 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('1'): 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, to. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 632 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('1'): 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, to. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 633 out of 1000 EXPLAIN SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 634 out of 1000 EXPLAIN SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 635 out of 1000 EXPLAIN SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 636 out of 1000 EXPLAIN AST SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 637 out of 1000 EXPLAIN AST SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 638 out of 1000 EXPLAIN AST SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 639 out of 1000 EXPLAIN AST SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 640 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('1'): 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, to. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 641 out of 1000 EXPLAIN SYNTAX SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 642 out of 1000 EXPLAIN SYNTAX SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 643 out of 1000 EXPLAIN SYNTAX SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 644 out of 1000 EXPLAIN QUERY TREE SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 645 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('1'): 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, to. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 646 out of 1000 EXPLAIN SYNTAX SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 647 out of 1000 EXPLAIN SYNTAX SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 648 out of 1000 EXPLAIN SYNTAX SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 649 out of 1000 EXPLAIN QUERY TREE SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 650 out of 1000 EXPLAIN AST SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 651 out of 1000 EXPLAIN AST SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 652 out of 1000 EXPLAIN SYNTAX SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 653 out of 1000 EXPLAIN SYNTAX SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 654 out of 1000 EXPLAIN SYNTAX SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 655 out of 1000 EXPLAIN SYNTAX SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 656 out of 1000 EXPLAIN SYNTAX SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 657 out of 1000 EXPLAIN SYNTAX SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 658 out of 1000 EXPLAIN PIPELINE SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 659 out of 1000 EXPLAIN AST SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 660 out of 1000 EXPLAIN AST SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 661 out of 1000 EXPLAIN QUERY TREE SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 EXPLAIN QUERY TREE SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 663 out of 1000 EXPLAIN SYNTAX SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 664 out of 1000 EXPLAIN SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 665 out of 1000 EXPLAIN QUERY TREE SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 666 out of 1000 EXPLAIN QUERY TREE SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 667 out of 1000 EXPLAIN QUERY TREE SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 668 out of 1000 EXPLAIN QUERY TREE SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 669 out of 1000 EXPLAIN AST SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 670 out of 1000 EXPLAIN ESTIMATE SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 671 out of 1000 EXPLAIN ESTIMATE SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 672 out of 1000 EXPLAIN ESTIMATE SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 673 out of 1000 EXPLAIN ESTIMATE SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 674 out of 1000 SELECT 1, 1 FROM nums__fuzz_18 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 675 out of 1000 SELECT 1, 1 FROM nums__fuzz_28 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toNullable(1) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n DESC Query succeeded, using this AST as a start Fuzzing step 676 out of 1000 SELECT 1, toLowCardinality(1) FROM nums__fuzz_47 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toNullable(1) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n DESC Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 SELECT 1, toLowCardinality(1) FROM nums__fuzz_22 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 678 out of 1000 SELECT 1, toLowCardinality(1) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 679 out of 1000 SELECT 1, toLowCardinality(1) FROM nums__fuzz_46 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 680 out of 1000 EXPLAIN QUERY TREE SELECT 1, toLowCardinality(1) FROM nums__fuzz_12 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 681 out of 1000 EXPLAIN QUERY TREE SELECT 1, toLowCardinality(1) FROM nums__fuzz_12 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n DESC NULLS FIRST Got boring AST Fuzzing step 682 out of 1000 EXPLAIN SYNTAX SELECT 1, toLowCardinality(1) FROM nums__fuzz_12 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 683 out of 1000 SELECT 1, 1 FROM nums__fuzz_48 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 684 out of 1000 SELECT 1, 1 FROM nums__fuzz_48 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 685 out of 1000 SELECT 1, nums__fuzz_47, 1 FROM nums__fuzz_48 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n DESC NULLS FIRST Error on processing query 'SELECT 1, nums__fuzz_47, 1 FROM nums__fuzz_48 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_47' in scope SELECT 1, nums__fuzz_47, 1 FROM nums__fuzz_48 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 686 out of 1000 SELECT 1, 1 FROM nums__fuzz_48 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toNullable(1) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 SELECT 1, 1 FROM nums__fuzz_46 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 688 out of 1000 SELECT 1, 1 FROM nums__fuzz_46 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 689 out of 1000 SELECT 1, 1 FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 690 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true, compact = true SELECT 1, 1 FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true, compact = true SELECT 1, 1 FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n DESC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 691 out of 1000 SELECT 1, 1 FROM nums__fuzz_25 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 692 out of 1000 SELECT 1, 1 FROM nums__fuzz_25 PREWHERE nums__fuzz_5 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n DESC NULLS LAST Error on processing query 'SELECT 1, 1 FROM nums__fuzz_25 PREWHERE nums__fuzz_5 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_5' in scope SELECT 1, 1 FROM nums__fuzz_25 PREWHERE nums__fuzz_5 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 693 out of 1000 SELECT 1, 1 FROM nums__fuzz_25 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n DESC NULLS LAST Got boring AST Fuzzing step 694 out of 1000 SELECT 1, 1 FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 695 out of 1000 SELECT 1, 1 FROM nums__fuzz_6 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n DESC Query succeeded, using this AST as a start Fuzzing step 696 out of 1000 SELECT 1, 1 FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n DESC Query succeeded, using this AST as a start Fuzzing step 697 out of 1000 SELECT 1, 1 FROM nums__fuzz_25 ORDER BY materialize(toNullable(' ')) DESC, toNullable(1) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC, n DESC Query succeeded, using this AST as a start Fuzzing step 698 out of 1000 SELECT 1, 1 FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toNullable(1) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC, n DESC Query succeeded, using this AST as a start Fuzzing step 699 out of 1000 SELECT 1, 1 FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC, n DESC Query succeeded, using this AST as a start Fuzzing step 700 out of 1000 SELECT 1, 1 FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n DESC Query succeeded, using this AST as a start Fuzzing step 701 out of 1000 SELECT 1, 1 FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC Query succeeded, using this AST as a start Fuzzing step 702 out of 1000 SELECT 1, 1 FROM nums__fuzz_25 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC Query succeeded, using this AST as a start Fuzzing step 703 out of 1000 SELECT 1, 1 FROM nums__fuzz_25 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC Query succeeded, using this AST as a start Fuzzing step 704 out of 1000 EXPLAIN PIPELINE header = true SELECT 1, 1 FROM nums__fuzz_25 ORDER BY toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC Error on processing query 'EXPLAIN PIPELINE header = true SELECT 1, 1 FROM nums__fuzz_25 ORDER BY toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 705 out of 1000 SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC Query succeeded, using this AST as a start Fuzzing step 706 out of 1000 SELECT 1, 1 FROM nums__fuzz_27 ORDER BY materialize(toNullable(' ')) DESC, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 707 out of 1000 SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 708 out of 1000 SELECT 1, 1 FROM nums__fuzz_9 ORDER BY materialize(toNullable(' ')) ASC, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 709 out of 1000 SELECT 1, 1 FROM nums__fuzz_9 ORDER BY materialize(toNullable(' ')) ASC, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC NULLS FIRST Got boring AST Fuzzing step 710 out of 1000 SELECT 1, 1 FROM nums__fuzz_9 ORDER BY materialize(toNullable(' ')) ASC, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n DESC NULLS FIRST Got boring AST Fuzzing step 711 out of 1000 SELECT 1, 1 FROM nums__fuzz_6 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 712 out of 1000 SELECT 1, 1 FROM nums__fuzz_6 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 713 out of 1000 SELECT 1, 1 FROM nums__fuzz_6 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n ASC NULLS LAST Got boring AST Fuzzing step 714 out of 1000 SELECT 1, 1 FROM nums__fuzz_47 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n ASC Query succeeded, using this AST as a start Fuzzing step 715 out of 1000 SELECT 1, 1 FROM nums__fuzz_18 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n ASC Query succeeded, using this AST as a start Fuzzing step 716 out of 1000 SELECT toNullable(1), 1 FROM nums__fuzz_18 ORDER BY materialize(toNullable(' ')) ASC, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 717 out of 1000 SELECT toNullable(1), 1 FROM nums__fuzz_25 ORDER BY materialize(toNullable(' ')) DESC, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n ASC Query succeeded, using this AST as a start Fuzzing step 718 out of 1000 SELECT toNullable(1), materialize(1) FROM nums__fuzz_25 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n ASC Query succeeded, using this AST as a start Fuzzing step 719 out of 1000 SELECT toNullable(1), 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 720 out of 1000 SELECT toNullable(1), 1 FROM nums__fuzz_17 WHERE toNullable(toUInt256(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS LAST, n ASC NULLS LAST Error on processing query 'SELECT toNullable(1), 1 FROM nums__fuzz_17 WHERE toNullable(toUInt256(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS LAST, n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x0000000034e16cd8 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000034e00ca0 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0eea9 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 13. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 18. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 19. ? @ 0x00007fa035818ac3 20. ? @ 0x00007fa0358aa850 Fuzzing step 721 out of 1000 SELECT toNullable(nums__fuzz_21, 1), 1 FROM nums__fuzz_18 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n ASC Error on processing query 'SELECT toNullable(nums__fuzz_21, 1), 1 FROM nums__fuzz_18 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_21' in scope SELECT toNullable(nums__fuzz_21, 1), 1 FROM nums__fuzz_18 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 722 out of 1000 SELECT toNullable(nums__fuzz_29, 1), 1 FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n ASC Error on processing query 'SELECT toNullable(nums__fuzz_29, 1), 1 FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_29' in scope SELECT toNullable(nums__fuzz_29, 1), 1 FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 723 out of 1000 SELECT toNullable(1), 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 724 out of 1000 SELECT 1, 1 FROM nums__fuzz_6 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 725 out of 1000 SELECT 1, 1 FROM nums__fuzz_9 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toNullable(1) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 726 out of 1000 SELECT 1, 1 FROM nums__fuzz_28 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toNullable(1) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 727 out of 1000 SELECT 1, 1 FROM nums__fuzz_18 ORDER BY materialize(toNullable(' ')) DESC, toNullable(1) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 728 out of 1000 SELECT 1, 1 FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) ASC, toNullable(1) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 729 out of 1000 SELECT 1, 1 FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC, toNullable(1) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC Query succeeded, using this AST as a start Fuzzing step 730 out of 1000 SELECT 1, 1 FROM nums__fuzz_9 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 731 out of 1000 SELECT 1, 1 FROM nums__fuzz_3 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 732 out of 1000 SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 733 out of 1000 SELECT 1, 1 FROM nums__fuzz_25 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 734 out of 1000 SELECT 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) ASC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 735 out of 1000 SELECT 1, 1 FROM nums__fuzz_27 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toNullable(1) DESC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 736 out of 1000 SELECT 1, materialize(1) FROM nums__fuzz_27 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 737 out of 1000 SELECT ' ', 1, materialize(1) FROM nums__fuzz_12 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 738 out of 1000 SELECT ' ', 1, materialize(1) FROM nums__fuzz_47 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Query succeeded, using this AST as a start Fuzzing step 739 out of 1000 SELECT ' ', 1, materialize(1) FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Query succeeded, using this AST as a start Fuzzing step 740 out of 1000 SELECT ' ', 1, materialize(1) FROM nums__fuzz_6 WHERE version_pair ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Error on processing query 'SELECT ' ', 1, materialize(1) FROM nums__fuzz_6 WHERE version_pair ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'version_pair' in scope SELECT ' ', 1, materialize(1) FROM nums__fuzz_6 WHERE version_pair ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 741 out of 1000 SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Query succeeded, using this AST as a start Fuzzing step 742 out of 1000 EXPLAIN AST optimize = true SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Error on processing query 'EXPLAIN AST optimize = true SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "optimize" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495f93b 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 743 out of 1000 EXPLAIN PIPELINE SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Query succeeded, using this AST as a start Fuzzing step 744 out of 1000 EXPLAIN AST SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Query succeeded, using this AST as a start Fuzzing step 745 out of 1000 EXPLAIN SYNTAX SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Query succeeded, using this AST as a start Fuzzing step 746 out of 1000 EXPLAIN SYNTAX SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Got boring AST Fuzzing step 747 out of 1000 EXPLAIN SYNTAX SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Got boring AST Fuzzing step 748 out of 1000 EXPLAIN ESTIMATE SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Query succeeded, using this AST as a start Fuzzing step 749 out of 1000 EXPLAIN ESTIMATE SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Got boring AST Fuzzing step 750 out of 1000 EXPLAIN SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Query succeeded, using this AST as a start Fuzzing step 751 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Query succeeded, using this AST as a start Fuzzing step 752 out of 1000 EXPLAIN SYNTAX SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Query succeeded, using this AST as a start Fuzzing step 753 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Query succeeded, using this AST as a start Fuzzing step 754 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Got boring AST Fuzzing step 755 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Got boring AST Fuzzing step 756 out of 1000 EXPLAIN AST SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Query succeeded, using this AST as a start Fuzzing step 757 out of 1000 EXPLAIN AST SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Got boring AST Fuzzing step 758 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Query succeeded, using this AST as a start Fuzzing step 759 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Got boring AST Fuzzing step 760 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Got boring AST Fuzzing step 761 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Got boring AST Fuzzing step 762 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Got boring AST Fuzzing step 763 out of 1000 EXPLAIN SYNTAX SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Query succeeded, using this AST as a start Fuzzing step 764 out of 1000 EXPLAIN SELECT ' ', 1, materialize(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Query succeeded, using this AST as a start Fuzzing step 765 out of 1000 SELECT ' ', 1, materialize(1) FROM nums__fuzz_25 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 766 out of 1000 SELECT ' ', 1, materialize(1) FROM nums__fuzz_25 PREWHERE toUInt128(toLowCardinality(toLowCardinality(1))) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST Error on processing query 'SELECT ' ', 1, materialize(1) FROM nums__fuzz_25 PREWHERE toUInt128(toLowCardinality(toLowCardinality(1))) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Storage Log (table default.nums__fuzz_25 (6c72732b-b05d-42bd-9fab-e8de0b559e8b)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:257: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000003360556e 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 8. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 11. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 16. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 17. ? @ 0x00007fa035818ac3 18. ? @ 0x00007fa0358aa850 Fuzzing step 767 out of 1000 SELECT ' ', 1, materialize(1) FROM nums__fuzz_25 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 768 out of 1000 SELECT ' ', 1, materialize(1) FROM nums__fuzz_25 WHERE nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Error on processing query 'SELECT ' ', 1, materialize(1) FROM nums__fuzz_25 WHERE nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_13' in scope SELECT ' ', 1, materialize(1) FROM nums__fuzz_25 WHERE nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 769 out of 1000 SELECT ' ', 1, materialize(1) FROM nums__fuzz_18 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 770 out of 1000 SELECT ' ', 1, materialize(1) FROM nums__fuzz_46 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 771 out of 1000 SELECT ' ', 1, materialize(1) FROM nums__fuzz_46 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 772 out of 1000 SELECT ' ', nums__fuzz_10, 1, materialize(1) FROM nums__fuzz_46 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC Error on processing query 'SELECT ' ', nums__fuzz_10, 1, materialize(1) FROM nums__fuzz_46 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_10' in scope SELECT ' ', nums__fuzz_10, 1, materialize(1) FROM nums__fuzz_46 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 773 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_12 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 774 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_9 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 775 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 776 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST Got boring AST Fuzzing step 777 out of 1000 SELECT ' ', 1, toLowCardinality(1) FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 778 out of 1000 SELECT ' ', 1, toLowCardinality(1) FROM nums__fuzz_48 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 779 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_12 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 780 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_12 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 781 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC Query succeeded, using this AST as a start Fuzzing step 782 out of 1000 SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM nums__fuzz_18 WHERE materialize(toLowCardinality(materialize(' '), 1)) ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(1))))) ASC, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC Error on processing query 'SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM nums__fuzz_18 WHERE materialize(toLowCardinality(materialize(' '), 1)) ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(1))))) ASC, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM nums__fuzz_18 WHERE materialize(toLowCardinality(materialize(' '), 1)) ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(1))))) ASC, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 783 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_25 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC Query succeeded, using this AST as a start Fuzzing step 784 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_25 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC Query succeeded, using this AST as a start Fuzzing step 785 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_25 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC Got boring AST Fuzzing step 786 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_25 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC Query succeeded, using this AST as a start Fuzzing step 787 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_9 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 788 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_27 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 789 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_27 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 790 out of 1000 SELECT ' ', 1, toLowCardinality(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 791 out of 1000 SELECT ' ', 1, toLowCardinality(1) FROM nums__fuzz_28 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC Query succeeded, using this AST as a start Fuzzing step 792 out of 1000 SELECT ' ', 1, toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(toLowCardinality(1))))), 1) FROM nums__fuzz_28 WHERE materialize(1) ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC Error on processing query 'SELECT ' ', 1, toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(toLowCardinality(1))))), 1) FROM nums__fuzz_28 WHERE materialize(1) ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT ' ', 1, toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(toLowCardinality(1))))), 1) FROM nums__fuzz_28 WHERE materialize(1) ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 793 out of 1000 SELECT ' ', 1, toLowCardinality(1) FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 794 out of 1000 SELECT ' ', 1, toLowCardinality(materialize(toUInt256(1))) FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toNullable(1) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 795 out of 1000 SELECT ' ', 1, toLowCardinality(toUInt256(1)) FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toNullable(1) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 796 out of 1000 SELECT ' ', 1, toLowCardinality(toUInt256(1)) FROM nums__fuzz_22 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toNullable(1) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 797 out of 1000 SELECT ' ', 1, toUInt256(1) FROM nums__fuzz_3 WHERE toUInt128(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toNullable(1) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Error on processing query 'SELECT ' ', 1, toUInt256(1) FROM nums__fuzz_3 WHERE toUInt128(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toNullable(1) ASC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt128) of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x0000000034e16cd8 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000034e00ca0 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0eea9 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 13. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 18. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 19. ? @ 0x00007fa035818ac3 20. ? @ 0x00007fa0358aa850 Fuzzing step 798 out of 1000 SELECT ' ', 1, toLowCardinality(toUInt256(1)) FROM nums__fuzz_22 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toNullable(1) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Got boring AST Fuzzing step 799 out of 1000 SELECT ' ', 1, toLowCardinality(toUInt256(1)) FROM nums__fuzz_22 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) ASC NULLS FIRST, toNullable(1) ASC, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Query succeeded, using this AST as a start Fuzzing step 800 out of 1000 SELECT ' ', 1, toLowCardinality(toUInt256(1)) FROM nums__fuzz_9 ORDER BY materialize(toNullable(' ')) DESC, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Query succeeded, using this AST as a start Fuzzing step 801 out of 1000 SELECT ' ', 1, toLowCardinality(toUInt256(1)) FROM nums__fuzz_28 ORDER BY materialize(toNullable(' ')) DESC, toFixedString(' ', toUInt128(1)) DESC, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Query succeeded, using this AST as a start Fuzzing step 802 out of 1000 SELECT ' ', 1, toLowCardinality(toUInt256(1)) FROM nums__fuzz_47 PREWHERE toNullable(1) ORDER BY materialize(toNullable(' ')) DESC, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Error on processing query 'SELECT ' ', 1, toLowCardinality(toUInt256(1)) FROM nums__fuzz_47 PREWHERE toNullable(1) ORDER BY materialize(toNullable(' ')) DESC, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC': Received from localhost:9000. DB::Exception: Storage Log (table default.nums__fuzz_47 (71e38b81-e168-4487-8960-7e34624a5758)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:257: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000003360556e 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 8. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 11. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 16. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 17. ? @ 0x00007fa035818ac3 18. ? @ 0x00007fa0358aa850 Fuzzing step 803 out of 1000 SELECT ' ', 1, toUInt256(1) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC, toFixedString(' ', toUInt128(1)) DESC, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Query succeeded, using this AST as a start Fuzzing step 804 out of 1000 SELECT ' ', 1, toUInt256(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Query succeeded, using this AST as a start Fuzzing step 805 out of 1000 SELECT ' ', 1, toUInt256(1) FROM nums__fuzz_22 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 806 out of 1000 SELECT ' ', 1, toUInt256(1) FROM nums__fuzz_18 PREWHERE toNullable(toLowCardinality(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Error on processing query 'SELECT ' ', 1, toUInt256(1) FROM nums__fuzz_18 PREWHERE toNullable(toLowCardinality(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Storage Log (table default.nums__fuzz_18 (e36fe986-4aed-4a30-aa2a-ec41f66eae2b)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:257: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000003360556e 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 8. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 11. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 16. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 17. ? @ 0x00007fa035818ac3 18. ? @ 0x00007fa0358aa850 Fuzzing step 807 out of 1000 SELECT ' ', materialize(toUInt128(1)), toUInt256(1) FROM nums__fuzz_22 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 808 out of 1000 SELECT ' ', materialize(toUInt128(1)), toUInt256(1) FROM nums__fuzz_22 WHERE splitByChar(' ', getOSKernelVersion()) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Error on processing query 'SELECT ' ', materialize(toUInt128(1)), toUInt256(1) FROM nums__fuzz_22 WHERE splitByChar(' ', getOSKernelVersion()) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Array(String). In query SELECT ' ', materialize(toUInt128(1)), toUInt256(1) FROM nums__fuzz_22 WHERE splitByChar(' ', getOSKernelVersion()) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 809 out of 1000 SELECT ' ', materialize(1), toUInt256(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 810 out of 1000 SELECT ' ', materialize(1), toUInt256(1) FROM nums__fuzz_47 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 811 out of 1000 SELECT ' ', 1, toUInt256(1) FROM nums__fuzz_27 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 812 out of 1000 SELECT toNullable(' '), 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_3 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 813 out of 1000 SELECT toNullable(' '), 1, toLowCardinality(1) FROM nums__fuzz_18 PREWHERE toNullable(toNullable(toNullable(1))) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC Error on processing query 'SELECT toNullable(' '), 1, toLowCardinality(1) FROM nums__fuzz_18 PREWHERE toNullable(toNullable(toNullable(1))) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS FIRST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC': Received from localhost:9000. DB::Exception: Storage Log (table default.nums__fuzz_18 (e36fe986-4aed-4a30-aa2a-ec41f66eae2b)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:257: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000003360556e 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 8. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 11. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 16. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 17. ? @ 0x00007fa035818ac3 18. ? @ 0x00007fa0358aa850 Fuzzing step 814 out of 1000 SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_12 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 815 out of 1000 SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_28 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 816 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_28 WHERE materialize(toNullable(toFixedString(' ', 1))) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_28 WHERE materialize(toNullable(toFixedString(' ', 1))) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('' ''): ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_28 WHERE materialize(toNullable(toFixedString(' ', 1))) ORDER BY materialize(toN. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 817 out of 1000 SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_28 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 818 out of 1000 SELECT ' ', toLowCardinality(1), toUInt256(toLowCardinality(1)) FROM nums__fuzz_25 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 819 out of 1000 SELECT ' ', toLowCardinality(1), toUInt256(toLowCardinality(1)) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST, toLowCardinality(materialize(materialize(toNullable(1)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 820 out of 1000 EXPLAIN ESTIMATE SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 821 out of 1000 EXPLAIN ESTIMATE SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 822 out of 1000 EXPLAIN SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 823 out of 1000 EXPLAIN SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 824 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('' ''): ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', to. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 825 out of 1000 EXPLAIN ESTIMATE SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 826 out of 1000 SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 PREWHERE materialize(toUInt256(toNullable(1))) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Error on processing query 'SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 PREWHERE materialize(toUInt256(toNullable(1))) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Storage Log (table default.nums__fuzz_17 (97850bd1-8ff3-4212-9259-0cf992d49af6)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:257: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000003360556e 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 8. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 11. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 16. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 17. ? @ 0x00007fa035818ac3 18. ? @ 0x00007fa0358aa850 Fuzzing step 827 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 828 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('' ''): ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', to. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 829 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 830 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 831 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 832 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 833 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 834 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 835 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 836 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 837 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 838 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 839 out of 1000 EXPLAIN SYNTAX SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 840 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 841 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 842 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 843 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 844 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 845 out of 1000 EXPLAIN TABLE OVERRIDE SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 ('' ''): ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', to. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 846 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 847 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 848 out of 1000 EXPLAIN ESTIMATE SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 849 out of 1000 EXPLAIN SYNTAX SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 850 out of 1000 EXPLAIN SYNTAX SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 851 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 852 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 853 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 854 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 855 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 856 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 857 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 858 out of 1000 EXPLAIN TABLE OVERRIDE SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 ('' ''): ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', to. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 859 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('' ''): ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', to. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 860 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 861 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Got boring AST Fuzzing step 862 out of 1000 EXPLAIN PIPELINE SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 863 out of 1000 EXPLAIN SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 864 out of 1000 EXPLAIN AST SELECT ' ', 1, toUInt256(toLowCardinality(1)) FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 865 out of 1000 SELECT ' ', 1, toLowCardinality(1) FROM nums__fuzz_18 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST, toFixedString(' ', toUInt128(1)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 866 out of 1000 SELECT ' ', 1, toLowCardinality(1) FROM nums__fuzz_18 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 867 out of 1000 SELECT ' ', 1, toLowCardinality(1) FROM nums__fuzz_6 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 868 out of 1000 SELECT ' ', 1, toLowCardinality(1) FROM nums__fuzz_9 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 869 out of 1000 SELECT ' ', 1, toLowCardinality(1) FROM nums__fuzz_27 GROUP BY nums__fuzz_16, materialize(materialize(' ', 1)), materialize(toLowCardinality(toUInt256(1))) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Error on processing query 'SELECT ' ', 1, toLowCardinality(1) FROM nums__fuzz_27 GROUP BY nums__fuzz_16, materialize(materialize(' ', 1)), materialize(toLowCardinality(toUInt256(1))) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_16' in scope SELECT ' ', 1, toLowCardinality(1) FROM nums__fuzz_27 GROUP BY nums__fuzz_16, materialize(materialize(' ', 1)), materialize(toLowCardinality(toUInt256(1))) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 870 out of 1000 SELECT ' ', 1, toLowCardinality(1) FROM nums__fuzz_9 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Got boring AST Fuzzing step 871 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_9 ORDER BY materialize(toNullable(' ')) DESC Query succeeded, using this AST as a start Fuzzing step 872 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_47 ORDER BY materialize(toNullable(' ')) DESC Query succeeded, using this AST as a start Fuzzing step 873 out of 1000 SELECT materialize(' '), 1, 1 FROM nums__fuzz_47 ORDER BY materialize(toNullable(' ')) DESC Query succeeded, using this AST as a start Fuzzing step 874 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 875 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Got boring AST Fuzzing step 876 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Got boring AST Fuzzing step 877 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) DESC Query succeeded, using this AST as a start Fuzzing step 878 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_9 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 879 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 880 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_22 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 881 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_9 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 882 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, 1 FROM nums__fuzz_18 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, 1 FROM nums__fuzz_18 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('' ''): ' ', 1, 1 FROM nums__fuzz_18 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 883 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_9 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Got boring AST Fuzzing step 884 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_46 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 885 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 886 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Got boring AST Fuzzing step 887 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 888 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_16 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 889 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_16 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Got boring AST Fuzzing step 890 out of 1000 SELECT ' ', 1, toUInt128(1) FROM nums__fuzz_16 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 891 out of 1000 SELECT ' ', 1, toUInt128(toLowCardinality(1)) FROM nums__fuzz_16 ORDER BY materialize(toNullable(' ')) DESC Query succeeded, using this AST as a start Fuzzing step 892 out of 1000 SELECT ' ', 1, toUInt128(toLowCardinality(1)) FROM nums__fuzz_22 ORDER BY materialize(toNullable(' ')) DESC Query succeeded, using this AST as a start Fuzzing step 893 out of 1000 SELECT ' ', 1, toUInt128(1) FROM nums__fuzz_22 ORDER BY materialize(toNullable(' ')) DESC Query succeeded, using this AST as a start Fuzzing step 894 out of 1000 SELECT ' ', 1, toUInt128(1) FROM nums__fuzz_22 ORDER BY materialize(toNullable(' ')) DESC Got boring AST Fuzzing step 895 out of 1000 SELECT ' ', 1, toUInt128(1) FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 896 out of 1000 SELECT ' ', 1, toUInt128(1) FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Got boring AST Fuzzing step 897 out of 1000 SELECT ' ', 1, toUInt128(1) FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Got boring AST Fuzzing step 898 out of 1000 SELECT ' ', toUInt128(1), toUInt128(1) FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 899 out of 1000 SELECT ' ', 1, toUInt128(1) FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) DESC Query succeeded, using this AST as a start Fuzzing step 900 out of 1000 SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_18 ORDER BY materialize(toNullable(' ')) DESC Query succeeded, using this AST as a start Fuzzing step 901 out of 1000 SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_18 ORDER BY materialize(toNullable(' ')) DESC Got boring AST Fuzzing step 902 out of 1000 SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_28 ORDER BY materialize(toNullable(' ')) DESC Query succeeded, using this AST as a start Fuzzing step 903 out of 1000 SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_28 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 904 out of 1000 SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_12 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 905 out of 1000 SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_12 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Got boring AST Fuzzing step 906 out of 1000 SELECT toLowCardinality(version_pair[1], ' '), 1, 1 FROM nums__fuzz_12 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Error on processing query 'SELECT toLowCardinality(version_pair[1], ' '), 1, 1 FROM nums__fuzz_12 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT toLowCardinality(version_pair[1], ' '), 1, 1 FROM nums__fuzz_12 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 907 out of 1000 SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_46 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 908 out of 1000 EXPLAIN PIPELINE header = true SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_46 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE header = true SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_46 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 909 out of 1000 SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_17 WHERE splitByChar(' ', getOSKernelVersion()) ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST Error on processing query 'SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_17 WHERE splitByChar(' ', getOSKernelVersion()) ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Array(String). In query SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_17 WHERE splitByChar(' ', getOSKernelVersion()) ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 910 out of 1000 SELECT ' ', 1, toUInt128(1) FROM nums__fuzz_48 PREWHERE toFixedString(' ', toUInt256(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Error on processing query 'SELECT ' ', 1, toUInt128(1) FROM nums__fuzz_48 PREWHERE toFixedString(' ', toUInt256(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: FixedString(1). In query SELECT ' ', 1, toUInt128(1) FROM nums__fuzz_48 PREWHERE toFixedString(' ', toUInt256(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 911 out of 1000 SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_22 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 912 out of 1000 SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_12 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 913 out of 1000 SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_15 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 914 out of 1000 SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_15 WHERE toLowCardinality(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 915 out of 1000 SELECT toLowCardinality(' '), 1, toUInt128(nums__fuzz_12, 1) FROM nums__fuzz_48 WHERE toLowCardinality(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC Error on processing query 'SELECT toLowCardinality(' '), 1, toUInt128(nums__fuzz_12, 1) FROM nums__fuzz_48 WHERE toLowCardinality(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_12' in scope SELECT toLowCardinality(' '), 1, toUInt128(nums__fuzz_12, 1) FROM nums__fuzz_48 WHERE toLowCardinality(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 916 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_15 WHERE toLowCardinality(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 917 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_15 WHERE toLowCardinality(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Got boring AST Fuzzing step 918 out of 1000 EXPLAIN AST SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_15 WHERE toLowCardinality(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 919 out of 1000 EXPLAIN SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_15 WHERE toLowCardinality(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 920 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_15 WHERE toLowCardinality(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 921 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_15 WHERE toLowCardinality(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 922 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_15 WHERE toLowCardinality(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Got boring AST Fuzzing step 923 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_15 WHERE toLowCardinality(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Got boring AST Fuzzing step 924 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_15 WHERE toLowCardinality(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Got boring AST Fuzzing step 925 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_15 WHERE toLowCardinality(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Got boring AST Fuzzing step 926 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_15 WHERE toLowCardinality(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Got boring AST Fuzzing step 927 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_15 WHERE toLowCardinality(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 928 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_15 WHERE toLowCardinality(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 929 out of 1000 SELECT toLowCardinality(' '), 1, toUInt128(1) FROM nums__fuzz_6 WHERE toLowCardinality(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 930 out of 1000 SELECT toLowCardinality(' '), 1, 1 FROM nums__fuzz_25 WHERE toLowCardinality(toNullable(1)) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 931 out of 1000 SELECT toLowCardinality(' '), 1, 1 FROM nums__fuzz_18 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 932 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_9 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 933 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_13 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) DESC Query succeeded, using this AST as a start Fuzzing step 934 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_18 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) DESC Query succeeded, using this AST as a start Fuzzing step 935 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_18 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) DESC Got boring AST Fuzzing step 936 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_48 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Query succeeded, using this AST as a start Fuzzing step 937 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_12 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Query succeeded, using this AST as a start Fuzzing step 938 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_12 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Got boring AST Fuzzing step 939 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_6 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Query succeeded, using this AST as a start Fuzzing step 940 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_13 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Query succeeded, using this AST as a start Fuzzing step 941 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_13 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Got boring AST Fuzzing step 942 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_13 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Got boring AST Fuzzing step 943 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_13 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Got boring AST Fuzzing step 944 out of 1000 SELECT ' ', 1, 1 FROM nums__fuzz_6 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Query succeeded, using this AST as a start Fuzzing step 945 out of 1000 SELECT ' ', 1, toLowCardinality(1), 1 FROM nums__fuzz_16 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Query succeeded, using this AST as a start Fuzzing step 946 out of 1000 SELECT ' ', 1, toLowCardinality(1), 1 FROM nums__fuzz_16 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Got boring AST Fuzzing step 947 out of 1000 SELECT ' ', 1, toLowCardinality(1), 1 FROM nums__fuzz_9 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Query succeeded, using this AST as a start Fuzzing step 948 out of 1000 SELECT ' ', 1, toLowCardinality(1), 1 FROM nums__fuzz_6 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Query succeeded, using this AST as a start Fuzzing step 949 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT ' ', 1, toLowCardinality(1), 1 FROM nums__fuzz_9 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT ' ', 1, toLowCardinality(1), 1 FROM nums__fuzz_9 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 950 out of 1000 SELECT ' ', 1, 1, 1 FROM nums__fuzz_47 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Query succeeded, using this AST as a start Fuzzing step 951 out of 1000 SELECT ' ', 1, 1, toUInt256(1) FROM nums__fuzz_47 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Query succeeded, using this AST as a start Fuzzing step 952 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 1, 1, toUInt256(1) FROM nums__fuzz_47 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Query succeeded, using this AST as a start Fuzzing step 953 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 1, 1, toUInt256(1) FROM nums__fuzz_47 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Got boring AST Fuzzing step 954 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 1, 1, toUInt256(1) FROM nums__fuzz_22 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Query succeeded, using this AST as a start Fuzzing step 955 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 1, 1, toUInt256(1) FROM nums__fuzz_13 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Query succeeded, using this AST as a start Fuzzing step 956 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 1, 1, toUInt256(1) FROM nums__fuzz_46 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 SELECT toNullable(' ', 1), 1, 1, toUInt256(1) FROM nums__fuzz_22 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) DESC Error on processing query 'SELECT toNullable(' ', 1), 1, 1, toUInt256(1) FROM nums__fuzz_22 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toNullable(' ', 1), 1, 1, toUInt256(1) FROM nums__fuzz_22 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 958 out of 1000 SELECT toFixedString(' ', 1), 1, 1, toUInt256(1) FROM nums__fuzz_27 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Query succeeded, using this AST as a start Fuzzing step 959 out of 1000 SELECT toFixedString(' ', 1), 1, 1, toUInt256(1) FROM nums__fuzz_27 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Got boring AST Fuzzing step 960 out of 1000 SELECT toFixedString(' ', 1), 1, 1, 1 FROM nums__fuzz_16 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Query succeeded, using this AST as a start Fuzzing step 961 out of 1000 SELECT toFixedString(' ', 1), 1, 1, 1 FROM nums__fuzz_16 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC Got boring AST Fuzzing step 962 out of 1000 SELECT toFixedString(' ', 1), 1, 1, toUInt256(1) FROM nums__fuzz_43 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 963 out of 1000 SELECT toFixedString(' ', 1), 1, 1, materialize(toLowCardinality(1)), toUInt256(1) FROM nums__fuzz_43 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 964 out of 1000 SELECT toFixedString(' ', 1), 1, 1, materialize(toLowCardinality(1)), toUInt256(1) FROM nums__fuzz_13 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 965 out of 1000 SELECT toFixedString(' ', 1), toNullable(1), 1, materialize(toLowCardinality(1)), toUInt256(1) FROM nums__fuzz_47 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 966 out of 1000 SELECT toFixedString(' ', 1), toNullable(1), 1, materialize(toLowCardinality(1)), toUInt256(1) FROM nums__fuzz_6 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 967 out of 1000 SELECT toFixedString(' ', 1), toNullable(1), 1, toLowCardinality(1), toUInt256(1) FROM nums__fuzz_6 WHERE toLowCardinality(1) GROUP BY toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))), materialize(1), toFixedString(toLowCardinality(' '), 1), nums__fuzz_21 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Error on processing query 'SELECT toFixedString(' ', 1), toNullable(1), 1, toLowCardinality(1), toUInt256(1) FROM nums__fuzz_6 WHERE toLowCardinality(1) GROUP BY toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))), materialize(1), toFixedString(toLowCardinality(' '), 1), nums__fuzz_21 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_21' in scope SELECT toFixedString(' ', 1), toNullable(1), 1, toLowCardinality(1), toUInt256(1) FROM nums__fuzz_6 WHERE toLowCardinality(1) GROUP BY toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))), materialize(1), toFixedString(toLowCardinality(' '), 1), nums__fuzz_21 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 968 out of 1000 SELECT toFixedString(' ', 1), toNullable(1), 1, materialize(1), toUInt256(1) FROM nums__fuzz_43 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 969 out of 1000 SELECT toFixedString(' ', 1), 1, 1, materialize(1), toUInt256(1) FROM nums__fuzz_15 PREWHERE toLowCardinality(1) WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Error on processing query 'SELECT toFixedString(' ', 1), 1, 1, materialize(1), toUInt256(1) FROM nums__fuzz_15 PREWHERE toLowCardinality(1) WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Storage Log (table default.nums__fuzz_15 (f7f223bc-5f2c-4ce9-b0fb-8c739ba97c41)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:257: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000003360556e 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 8. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 11. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 16. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 17. ? @ 0x00007fa035818ac3 18. ? @ 0x00007fa0358aa850 Fuzzing step 970 out of 1000 SELECT toFixedString(' ', toLowCardinality(toNullable(1))), toNullable(1), 1, 1, toUInt256(1) FROM nums__fuzz_12 WHERE toLowCardinality(1) ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 971 out of 1000 SELECT toFixedString(' ', toLowCardinality(1)), toNullable(1), 1, 1, toUInt256(1) FROM nums__fuzz_12 WHERE toLowCardinality(1) ORDER BY nums__fuzz_26 ASC, materialize(toNullable(' ')) DESC NULLS LAST Error on processing query 'SELECT toFixedString(' ', toLowCardinality(1)), toNullable(1), 1, 1, toUInt256(1) FROM nums__fuzz_12 WHERE toLowCardinality(1) ORDER BY nums__fuzz_26 ASC, materialize(toNullable(' ')) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_26' in scope SELECT toFixedString(' ', toLowCardinality(1)), toNullable(1), 1, 1, toUInt256(1) FROM nums__fuzz_12 WHERE toLowCardinality(1) ORDER BY nums__fuzz_26 ASC, materialize(toNullable(' ')) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 972 out of 1000 SELECT ' ', toLowCardinality(toNullable(1)), toNullable(1), 1, 1, 1 FROM nums__fuzz_12 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 973 out of 1000 SELECT ' ', toLowCardinality(toNullable(1)), toNullable(1), 1, 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 974 out of 1000 SELECT ' ', toLowCardinality(toNullable(1)), toNullable(1), 1, 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 975 out of 1000 SELECT ' ', toLowCardinality(toNullable(1)), toNullable(1), 1, 1, 1 FROM nums__fuzz_48 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 976 out of 1000 SELECT ' ', toNullable(1), toNullable(1), 1, 1, 1 FROM nums__fuzz_48 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 977 out of 1000 SELECT ' ', toNullable(1), toNullable(1), 1, 1, 1 FROM nums__fuzz_48 ORDER BY materialize(toNullable(' ')) DESC NULLS FIRST Got boring AST Fuzzing step 978 out of 1000 SELECT ' ', toNullable(1), toNullable(1), 1, materialize(1), 1 FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 979 out of 1000 SELECT ' ', toNullable(1), toNullable(1), 1, materialize(1), 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 980 out of 1000 SELECT ' ', toNullable(1), toNullable(1), 1, materialize(1), 1 FROM nums__fuzz_9 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 981 out of 1000 SELECT ' ', 1, toNullable(1), 1, materialize(1), 1 FROM nums__fuzz_9 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 982 out of 1000 SELECT ' ', 1, toNullable(1), 1, materialize(1), 1 FROM nums__fuzz_12 PREWHERE materialize(toUInt256(1)) ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST Error on processing query 'SELECT ' ', 1, toNullable(1), 1, materialize(1), 1 FROM nums__fuzz_12 PREWHERE materialize(toUInt256(1)) ORDER BY materialize(toNullable(' ')) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Storage Log (table default.nums__fuzz_12 (9c6b9f67-618e-4e07-9494-174d92e46449)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:257: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000003360556e 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 8. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 11. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 16. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 17. ? @ 0x00007fa035818ac3 18. ? @ 0x00007fa0358aa850 Fuzzing step 983 out of 1000 SELECT ' ', 1, toNullable(1), 1, 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 984 out of 1000 SELECT ' ', 1, toNullable(toUInt128(1)), 1, 1, 1 FROM nums__fuzz_27 PREWHERE toFixedString(toFixedString(materialize(toNullable(' ')), toUInt128(1)), 1) ORDER BY materialize(toNullable(' ')) ASC NULLS LAST Error on processing query 'SELECT ' ', 1, toNullable(toUInt128(1)), 1, 1, 1 FROM nums__fuzz_27 PREWHERE toFixedString(toFixedString(materialize(toNullable(' ')), toUInt128(1)), 1) ORDER BY materialize(toNullable(' ')) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: Nullable(FixedString(1)). In query SELECT ' ', 1, toNullable(toUInt128(1)), 1, 1, 1 FROM nums__fuzz_27 PREWHERE toFixedString(toFixedString(materialize(toNullable(' ')), toUInt128(1)), 1) ORDER BY materialize(toNullable(' ')) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 985 out of 1000 SELECT ' ', 1, toNullable(1), 1, 1, 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST Got boring AST Fuzzing step 986 out of 1000 SELECT ' ', 1, toNullable(1), 1, 1, 1 FROM nums__fuzz_3 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 987 out of 1000 SELECT ' ', 1, toNullable(1), 1, 1, 1 FROM nums__fuzz_3 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST Got boring AST Fuzzing step 988 out of 1000 SELECT ' ', 1, toNullable(1), 1, 1, 1 FROM nums__fuzz_46 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 989 out of 1000 SELECT ' ', 1, toNullable(1), 1, 1, 1 FROM nums__fuzz_18 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 990 out of 1000 SELECT ' ', 1, toNullable(toUInt256(1)), 1, materialize(toNullable(1)), 1 FROM nums__fuzz_13 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 991 out of 1000 SELECT ' ', 1, toNullable(1), 1, materialize(toNullable(1)), 1 FROM nums__fuzz_17 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 992 out of 1000 SELECT ' ', 1, toNullable(1), 1, materialize(toNullable(1)), 1 FROM nums__fuzz_43 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 993 out of 1000 SELECT ' ', 1, 1, toLowCardinality(1), materialize(1), 1 FROM nums__fuzz_22 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 994 out of 1000 SELECT ' ', 1, 1, toLowCardinality(1), materialize(1), 1 FROM nums__fuzz_3 ORDER BY materialize(toNullable(' ')) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 995 out of 1000 SELECT ' ', 1, 1, toLowCardinality(1), 1, 1 FROM nums__fuzz_48 ORDER BY materialize(toNullable(' ')) ASC Query succeeded, using this AST as a start Fuzzing step 996 out of 1000 SELECT ' ', 1, 1, toLowCardinality(1), 1, 1 FROM nums__fuzz_48 ORDER BY materialize(toNullable(' ')) ASC Got boring AST Fuzzing step 997 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM nums__fuzz_25 ORDER BY materialize(toNullable(' ')) DESC Query succeeded, using this AST as a start Fuzzing step 998 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM nums__fuzz_25 ORDER BY materialize(toNullable(' ')) DESC Got boring AST Fuzzing step 999 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM nums__fuzz_25 WHERE toUInt256(1) ORDER BY materialize(toNullable(' ')) DESC Error on processing query 'SELECT ' ', 1, 1, 1, 1, 1 FROM nums__fuzz_25 WHERE toUInt256(1) ORDER BY materialize(toNullable(' ')) DESC': Received from localhost:9000. DB::Exception: Illegal type UInt256 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x0000000034e16cd8 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000034e00ca0 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0eea9 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 13. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 18. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 19. ? @ 0x00007fa035818ac3 20. ? @ 0x00007fa0358aa850 Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT n, m FROM nums_buf ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 2 out of 1000 SELECT n, m FROM nums_buf ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 SELECT n, m FROM nums_buf ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 4 out of 1000 SELECT n, m FROM nums_buf ORDER BY n DESC NULLS FIRST Got boring AST Fuzzing step 5 out of 1000 SELECT n, m FROM nums_buf ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 6 out of 1000 SELECT n, m FROM nums_buf ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 7 out of 1000 EXPLAIN ESTIMATE SELECT n, m FROM nums_buf ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 8 out of 1000 EXPLAIN SELECT n, m FROM nums_buf ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 9 out of 1000 EXPLAIN SELECT n, m FROM nums_buf ORDER BY n ASC Got boring AST Fuzzing step 10 out of 1000 EXPLAIN AST SELECT n, m FROM nums_buf ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 11 out of 1000 EXPLAIN SELECT n, m FROM nums_buf ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 12 out of 1000 SELECT m FROM nums_buf ORDER BY n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 13 out of 1000 SELECT m FROM nums_buf ORDER BY n ASC NULLS FIRST Got boring AST Fuzzing step 14 out of 1000 SELECT m FROM nums_buf ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 15 out of 1000 SELECT m FROM nums_buf ORDER BY n ASC Got boring AST Fuzzing step 16 out of 1000 SELECT m FROM nums_buf ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 17 out of 1000 SELECT m FROM nums_buf ORDER BY n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 18 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT m FROM nums_buf ORDER BY n ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT m FROM nums_buf ORDER BY n ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('m'): m FROM nums_buf ORDER BY n ASC NULLS FIRST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 19 out of 1000 SELECT m FROM nums_buf ORDER BY n DESC NULLS LAST Got boring AST Fuzzing step 20 out of 1000 SELECT m FROM nums_buf ORDER BY n DESC NULLS LAST Got boring AST Fuzzing step 21 out of 1000 SELECT m FROM nums_buf ORDER BY n DESC NULLS LAST Got boring AST Fuzzing step 22 out of 1000 SELECT m FROM nums_buf ORDER BY n DESC NULLS LAST Got boring AST Fuzzing step 23 out of 1000 SELECT m FROM nums_buf ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 24 out of 1000 SELECT m FROM nums_buf ORDER BY n DESC Got boring AST Fuzzing step 25 out of 1000 SELECT m FROM nums_buf ORDER BY n ASC Query succeeded, using this AST as a start Fuzzing step 26 out of 1000 SELECT m FROM nums_buf WHERE nums__fuzz_2 ORDER BY n ASC NULLS LAST Error on processing query 'SELECT m FROM nums_buf WHERE nums__fuzz_2 ORDER BY n ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_2' in scope SELECT m FROM nums_buf WHERE nums__fuzz_2 ORDER BY n ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 27 out of 1000 SELECT m FROM nums_buf ORDER BY n ASC Got boring AST Fuzzing step 28 out of 1000 SELECT m FROM nums_buf ORDER BY n ASC Got boring AST Fuzzing step 29 out of 1000 SELECT m FROM nums_buf ORDER BY n ASC Got boring AST Fuzzing step 30 out of 1000 SELECT m FROM nums_buf ORDER BY n ASC Got boring AST Fuzzing step 31 out of 1000 SELECT m FROM nums_buf ORDER BY n ASC Got boring AST Fuzzing step 32 out of 1000 SELECT m FROM nums_buf ORDER BY n ASC Got boring AST Fuzzing step 33 out of 1000 SELECT m FROM nums_buf ORDER BY n ASC Got boring AST Fuzzing step 34 out of 1000 SELECT m FROM nums_buf ORDER BY n ASC Got boring AST Fuzzing step 35 out of 1000 EXPLAIN AST graph = true SELECT m FROM nums_buf ORDER BY n ASC Error on processing query 'EXPLAIN AST graph = true SELECT m FROM nums_buf ORDER BY n ASC': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "graph" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495f93b 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 36 out of 1000 SELECT m FROM nums_buf ORDER BY n ASC Got boring AST Fuzzing step 37 out of 1000 SELECT m FROM nums_buf ORDER BY n ASC Got boring AST Fuzzing step 38 out of 1000 SELECT m FROM nums_buf ORDER BY n DESC Query succeeded, using this AST as a start Fuzzing step 39 out of 1000 SELECT m FROM nums_buf ORDER BY n DESC Got boring AST Fuzzing step 40 out of 1000 SELECT m FROM nums_buf ORDER BY n DESC Got boring AST Fuzzing step 41 out of 1000 SELECT m FROM nums_buf ORDER BY n DESC Got boring AST Fuzzing step 42 out of 1000 SELECT m FROM nums_buf WHERE materialize(1, toNullable(' ')) ORDER BY n DESC Error on processing query 'SELECT m FROM nums_buf WHERE materialize(1, toNullable(' ')) ORDER BY n DESC': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT m FROM nums_buf WHERE materialize(1, toNullable(' ')) ORDER BY n DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 43 out of 1000 SELECT m FROM nums_buf ORDER BY n DESC Got boring AST Fuzzing step 44 out of 1000 SELECT m FROM nums_buf ORDER BY n DESC Got boring AST Fuzzing step 45 out of 1000 SELECT m FROM nums_buf ORDER BY n DESC Got boring AST Fuzzing step 46 out of 1000 SELECT m FROM nums_buf PREWHERE materialize(toUInt256(toNullable(1))) WHERE toLowCardinality(materialize(1)) ORDER BY n DESC Error on processing query 'SELECT m FROM nums_buf PREWHERE materialize(toUInt256(toNullable(1))) WHERE toLowCardinality(materialize(1)) ORDER BY n DESC': Received from localhost:9000. DB::Exception: Storage Buffer (table default.nums_buf (e4e9cab6-d745-49f9-a4d2-9390368dbc2f)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:257: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000003360556e 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 8. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 11. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 16. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 17. ? @ 0x00007fa035818ac3 18. ? @ 0x00007fa0358aa850 Fuzzing step 47 out of 1000 SELECT m FROM nums_buf ORDER BY n DESC Got boring AST Fuzzing step 48 out of 1000 SELECT m FROM nums_buf ORDER BY n DESC Got boring AST Fuzzing step 49 out of 1000 SELECT m FROM nums_buf ORDER BY n DESC Got boring AST Fuzzing step 50 out of 1000 SELECT m FROM nums_buf WHERE version_pair[materialize(1)] ORDER BY n DESC NULLS LAST Error on processing query 'SELECT m FROM nums_buf WHERE version_pair[materialize(1)] ORDER BY n DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT m FROM nums_buf WHERE version_pair[materialize(1)] ORDER BY n DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 51 out of 1000 SELECT m FROM nums_buf ORDER BY n DESC Got boring AST Fuzzing step 52 out of 1000 SELECT m FROM nums_buf ORDER BY n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 53 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS FIRST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 54 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS FIRST, n ASC NULLS LAST Got boring AST Fuzzing step 55 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n DESC NULLS FIRST Got boring AST Fuzzing step 57 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n DESC Query succeeded, using this AST as a start Fuzzing step 58 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n DESC Got boring AST Fuzzing step 59 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n DESC Got boring AST Fuzzing step 60 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n DESC Got boring AST Fuzzing step 61 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n DESC Got boring AST Fuzzing step 62 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC, n DESC Query succeeded, using this AST as a start Fuzzing step 63 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC, n DESC Got boring AST Fuzzing step 64 out of 1000 SELECT m FROM nums_buf WHERE nums__fuzz_19 ORDER BY toLowCardinality(1) DESC NULLS LAST, n DESC Error on processing query 'SELECT m FROM nums_buf WHERE nums__fuzz_19 ORDER BY toLowCardinality(1) DESC NULLS LAST, n DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_19' in scope SELECT m FROM nums_buf WHERE nums__fuzz_19 ORDER BY toLowCardinality(1) DESC NULLS LAST, n DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 65 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC, n DESC NULLS FIRST Got boring AST Fuzzing step 67 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 68 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS LAST, n DESC NULLS FIRST Got boring AST Fuzzing step 69 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS LAST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 70 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS LAST, n DESC NULLS LAST Got boring AST Fuzzing step 71 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS LAST, n DESC NULLS LAST Got boring AST Fuzzing step 72 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS LAST, n DESC NULLS LAST Got boring AST Fuzzing step 73 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS LAST, n DESC NULLS LAST Got boring AST Fuzzing step 74 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS LAST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 75 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 76 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 77 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n ASC NULLS FIRST Got boring AST Fuzzing step 78 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 79 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS FIRST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 80 out of 1000 EXPLAIN QUERY TREE dump_ast = true SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS FIRST, n DESC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE dump_ast = true SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS FIRST, n DESC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "dump_ast" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 81 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS FIRST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 83 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS FIRST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS FIRST, n DESC Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS FIRST, n DESC Got boring AST Fuzzing step 86 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n ASC Query succeeded, using this AST as a start Fuzzing step 87 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 88 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n ASC NULLS LAST Got boring AST Fuzzing step 89 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 90 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS FIRST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 91 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 92 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS FIRST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 93 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS FIRST, n ASC NULLS LAST Got boring AST Fuzzing step 94 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 96 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS FIRST, n ASC Got boring AST Fuzzing step 97 out of 1000 SELECT m FROM nums_buf WHERE nums__fuzz_6 ORDER BY toLowCardinality(1) ASC NULLS FIRST Error on processing query 'SELECT m FROM nums_buf WHERE nums__fuzz_6 ORDER BY toLowCardinality(1) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_6' in scope SELECT m FROM nums_buf WHERE nums__fuzz_6 ORDER BY toLowCardinality(1) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 98 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS FIRST, n ASC Got boring AST Fuzzing step 99 out of 1000 SELECT m FROM nums_buf PREWHERE nums__fuzz_46 ORDER BY toLowCardinality(1) ASC NULLS FIRST, n DESC Error on processing query 'SELECT m FROM nums_buf PREWHERE nums__fuzz_46 ORDER BY toLowCardinality(1) ASC NULLS FIRST, n DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_46' in scope SELECT m FROM nums_buf PREWHERE nums__fuzz_46 ORDER BY toLowCardinality(1) ASC NULLS FIRST, n DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 100 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS FIRST, n ASC Got boring AST Fuzzing step 101 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS FIRST, n DESC Query succeeded, using this AST as a start Fuzzing step 102 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS FIRST, n DESC Got boring AST Fuzzing step 103 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n DESC NULLS FIRST Got boring AST Fuzzing step 105 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n DESC NULLS FIRST Got boring AST Fuzzing step 106 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS FIRST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 107 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n DESC Query succeeded, using this AST as a start Fuzzing step 108 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n DESC Got boring AST Fuzzing step 109 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS FIRST, n DESC Query succeeded, using this AST as a start Fuzzing step 110 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS FIRST, n DESC Got boring AST Fuzzing step 111 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC, n DESC Query succeeded, using this AST as a start Fuzzing step 112 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS FIRST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 113 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS FIRST, n DESC NULLS LAST Got boring AST Fuzzing step 114 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 115 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n DESC NULLS FIRST Got boring AST Fuzzing step 117 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC NULLS LAST, n DESC NULLS FIRST Got boring AST Fuzzing step 118 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 119 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC, n ASC NULLS LAST Got boring AST Fuzzing step 120 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) DESC, n ASC NULLS LAST Got boring AST Fuzzing step 121 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 122 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 123 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC, n DESC NULLS FIRST Got boring AST Fuzzing step 124 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC, n DESC NULLS FIRST Got boring AST Fuzzing step 125 out of 1000 SELECT m FROM nums_buf ORDER BY toLowCardinality(1) ASC NULLS FIRST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 126 out of 1000 SELECT m FROM nums_buf WHERE materialize(toNullable(toNullable(1))) ORDER BY toLowCardinality(1) ASC NULLS FIRST, n DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 127 out of 1000 SELECT m FROM nums_buf WHERE materialize(toNullable(toNullable(1))) ORDER BY toLowCardinality(1) ASC NULLS FIRST, n DESC NULLS FIRST Got boring AST Fuzzing step 128 out of 1000 SELECT m FROM nums_buf WHERE materialize(toNullable(1)) ORDER BY toLowCardinality(1) ASC NULLS FIRST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 129 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 130 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 131 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC, n ASC NULLS LAST Got boring AST Fuzzing step 132 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC, n ASC NULLS LAST Got boring AST Fuzzing step 133 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 134 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 135 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST, n ASC NULLS FIRST Got boring AST Fuzzing step 136 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 137 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 138 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 139 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 140 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 141 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 142 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 143 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 144 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 145 out of 1000 EXPLAIN SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 146 out of 1000 EXPLAIN SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 147 out of 1000 EXPLAIN AST SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 148 out of 1000 EXPLAIN AST SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 149 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 150 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 151 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 153 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 154 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 155 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 156 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 157 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('m'): m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 158 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 159 out of 1000 EXPLAIN TABLE OVERRIDE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('m'): m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 160 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 161 out of 1000 EXPLAIN AST SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 162 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 163 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 164 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 165 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 166 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 167 out of 1000 EXPLAIN TABLE OVERRIDE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('m'): m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 168 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 169 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 170 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 171 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 172 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 173 out of 1000 EXPLAIN TABLE OVERRIDE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('m'): m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 174 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('m'): m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 175 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 176 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 177 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 178 out of 1000 EXPLAIN TABLE OVERRIDE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('m'): m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 179 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 180 out of 1000 EXPLAIN AST SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 181 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 182 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 183 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 184 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 185 out of 1000 EXPLAIN SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 186 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('m'): m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 187 out of 1000 EXPLAIN SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 188 out of 1000 EXPLAIN SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 189 out of 1000 SELECT m FROM nums_buf PREWHERE materialize(toLowCardinality(1)) WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n DESC NULLS LAST Error on processing query 'SELECT m FROM nums_buf PREWHERE materialize(toLowCardinality(1)) WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n DESC NULLS LAST': Received from localhost:9000. DB::Exception: Storage Buffer (table default.nums_buf (e4e9cab6-d745-49f9-a4d2-9390368dbc2f)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:257: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000003360556e 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 8. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 11. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 16. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 17. ? @ 0x00007fa035818ac3 18. ? @ 0x00007fa0358aa850 Fuzzing step 190 out of 1000 EXPLAIN SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 191 out of 1000 EXPLAIN SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 192 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 193 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 194 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 195 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 196 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 197 out of 1000 EXPLAIN AST SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 198 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 199 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 200 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 201 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 202 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 203 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 204 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 205 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 206 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 207 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) ASC, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 208 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC, n DESC Query succeeded, using this AST as a start Fuzzing step 209 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC, n ASC Query succeeded, using this AST as a start Fuzzing step 210 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 211 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n ASC Got boring AST Fuzzing step 212 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 214 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 215 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 216 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 217 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 218 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 219 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n DESC NULLS LAST Got boring AST Fuzzing step 220 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n DESC NULLS LAST Got boring AST Fuzzing step 221 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n DESC NULLS LAST Got boring AST Fuzzing step 222 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n DESC NULLS LAST Got boring AST Fuzzing step 223 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n DESC NULLS LAST Got boring AST Fuzzing step 224 out of 1000 EXPLAIN TABLE OVERRIDE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n DESC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('m'): m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n DESC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 225 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n DESC NULLS LAST Got boring AST Fuzzing step 226 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n DESC NULLS LAST Got boring AST Fuzzing step 227 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 228 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 229 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) GROUP BY toFixedString(toLowCardinality(' '), 1), toLowCardinality(toFixedString(' ', toUInt256(1))) ORDER BY materialize(toNullable(toNullable(1))) DESC, n DESC NULLS FIRST Error on processing query 'SELECT m FROM nums_buf WHERE materialize(1) GROUP BY toFixedString(toLowCardinality(' '), 1), toLowCardinality(toFixedString(' ', toUInt256(1))) ORDER BY materialize(toNullable(toNullable(1))) DESC, n DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Column default.nums_buf.n is not under aggregate function and not in GROUP BY keys. In query SELECT m FROM nums_buf WHERE materialize(1) GROUP BY toFixedString(toLowCardinality(' '), 1), toLowCardinality(toFixedString(' ', toUInt256(1))) ORDER BY materialize(toNullable(toNullable(1))) DESC, n DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000335939dc 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 230 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) GROUP BY toNullable(toLowCardinality(toNullable(' '))) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n DESC NULLS LAST Error on processing query 'SELECT m FROM nums_buf WHERE materialize(1) GROUP BY toNullable(toLowCardinality(toNullable(' '))) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n DESC NULLS LAST': Received from localhost:9000. DB::Exception: Column default.nums_buf.n is not under aggregate function and not in GROUP BY keys. In query SELECT m FROM nums_buf WHERE materialize(1) GROUP BY toNullable(toLowCardinality(toNullable(' '))) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000335939dc 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 231 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 232 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC, n ASC NULLS FIRST Got boring AST Fuzzing step 233 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 234 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST, n ASC NULLS FIRST Got boring AST Fuzzing step 235 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST, n ASC NULLS FIRST Got boring AST Fuzzing step 236 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST, n ASC NULLS FIRST Got boring AST Fuzzing step 237 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST, n ASC NULLS FIRST Got boring AST Fuzzing step 238 out of 1000 SELECT m FROM nums_buf WHERE materialize(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST, n ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 239 out of 1000 SELECT m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST, n ASC Query succeeded, using this AST as a start Fuzzing step 240 out of 1000 SELECT m FROM nums_buf GROUP BY version_pair[1], toFixedString(toLowCardinality(' '), toLowCardinality(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST, n ASC NULLS FIRST Error on processing query 'SELECT m FROM nums_buf GROUP BY version_pair[1], toFixedString(toLowCardinality(' '), toLowCardinality(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST, n ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT m FROM nums_buf GROUP BY version_pair[1], toFixedString(toLowCardinality(' '), toLowCardinality(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST, n ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 241 out of 1000 EXPLAIN PIPELINE header = true SELECT m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST, n ASC Error on processing query 'EXPLAIN PIPELINE header = true SELECT m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST, n ASC': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 242 out of 1000 SELECT m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST, n ASC Got boring AST Fuzzing step 243 out of 1000 SELECT m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST, n ASC Got boring AST Fuzzing step 244 out of 1000 SELECT m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST, n ASC Got boring AST Fuzzing step 245 out of 1000 SELECT m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC, n ASC Query succeeded, using this AST as a start Fuzzing step 246 out of 1000 SELECT m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n ASC Query succeeded, using this AST as a start Fuzzing step 247 out of 1000 SELECT m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 248 out of 1000 SELECT m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST, n ASC NULLS FIRST Got boring AST Fuzzing step 249 out of 1000 SELECT m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 250 out of 1000 SELECT m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC, n ASC NULLS FIRST Got boring AST Fuzzing step 251 out of 1000 SELECT m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC, n ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 252 out of 1000 SELECT m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC, n ASC NULLS FIRST Got boring AST Fuzzing step 253 out of 1000 SELECT m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 254 out of 1000 SELECT m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Got boring AST Fuzzing step 255 out of 1000 SELECT m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC Query succeeded, using this AST as a start Fuzzing step 256 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 257 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST Got boring AST Fuzzing step 258 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 259 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 260 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST Got boring AST Fuzzing step 261 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST Got boring AST Fuzzing step 262 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST Got boring AST Fuzzing step 263 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST Got boring AST Fuzzing step 264 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST Got boring AST Fuzzing step 265 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 266 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Got boring AST Fuzzing step 267 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 268 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 269 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 270 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 271 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 272 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 273 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 274 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 275 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 276 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 277 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) GROUP BY materialize(materialize(toFixedString(' ', 1))), nums__fuzz_16, nums__fuzz_8 ORDER BY materialize(toNullable(toNullable(1))) DESC Error on processing query 'SELECT m FROM nums_buf WHERE toNullable(1) GROUP BY materialize(materialize(toFixedString(' ', 1))), nums__fuzz_16, nums__fuzz_8 ORDER BY materialize(toNullable(toNullable(1))) DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_16' in scope SELECT m FROM nums_buf WHERE toNullable(1) GROUP BY materialize(materialize(toFixedString(' ', 1))), nums__fuzz_16, nums__fuzz_8 ORDER BY materialize(toNullable(toNullable(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 278 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 279 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 280 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Got boring AST Fuzzing step 281 out of 1000 EXPLAIN SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 282 out of 1000 EXPLAIN SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Got boring AST Fuzzing step 283 out of 1000 SELECT m FROM nums_buf PREWHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Error on processing query 'SELECT m FROM nums_buf PREWHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Storage Buffer (table default.nums_buf (e4e9cab6-d745-49f9-a4d2-9390368dbc2f)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:257: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000003360556e 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 8. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 11. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 16. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 17. ? @ 0x00007fa035818ac3 18. ? @ 0x00007fa0358aa850 Fuzzing step 284 out of 1000 EXPLAIN SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Got boring AST Fuzzing step 285 out of 1000 EXPLAIN SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Got boring AST Fuzzing step 286 out of 1000 EXPLAIN SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Got boring AST Fuzzing step 287 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 288 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Got boring AST Fuzzing step 289 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 290 out of 1000 EXPLAIN AST SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 291 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 292 out of 1000 SELECT m FROM nums_buf WHERE toNullable(materialize(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 293 out of 1000 SELECT m FROM nums_buf WHERE toNullable(materialize(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Got boring AST Fuzzing step 294 out of 1000 SELECT m FROM nums_buf WHERE toNullable(materialize(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 295 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE toNullable(materialize(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 296 out of 1000 EXPLAIN SELECT m FROM nums_buf WHERE toNullable(materialize(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 297 out of 1000 EXPLAIN SELECT m FROM nums_buf WHERE toNullable(materialize(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC Got boring AST Fuzzing step 298 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums_buf WHERE toNullable(materialize(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 299 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE toNullable(materialize(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 300 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE toNullable(materialize(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC Got boring AST Fuzzing step 301 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE toNullable(materialize(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC Got boring AST Fuzzing step 302 out of 1000 EXPLAIN AST SELECT m FROM nums_buf WHERE toNullable(materialize(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 303 out of 1000 EXPLAIN QUERY TREE SELECT m FROM nums_buf WHERE toNullable(materialize(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 304 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE toNullable(materialize(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 305 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE toNullable(materialize(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC Got boring AST Fuzzing step 306 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 308 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 309 out of 1000 SELECT m FROM nums_buf WHERE toNullable(toNullable(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 310 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 311 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 312 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 313 out of 1000 EXPLAIN SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 314 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 315 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 316 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 317 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 318 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 319 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 320 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 321 out of 1000 EXPLAIN SYNTAX SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 322 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 323 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 324 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 325 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 326 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 327 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('m'): m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 328 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 329 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 330 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('m'): m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 331 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 332 out of 1000 EXPLAIN SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 333 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 334 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 335 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 336 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 337 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 338 out of 1000 EXPLAIN ESTIMATE SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 339 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 340 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 341 out of 1000 EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE toNullable(toUInt128(1)) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT m FROM nums_buf WHERE toNullable(toUInt128(1)) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt128) of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x0000000034e16cd8 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000034e00ca0 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0eea9 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 9. ./src/Planner/Planner.h:56: DB::InterpreterSelectQueryAnalyzer::extractQueryPlan() && @ 0x0000000034cf61b2 10. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495adcd 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 342 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 343 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 344 out of 1000 SELECT m FROM nums_buf WHERE toNullable(materialize(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 345 out of 1000 SELECT m FROM nums_buf WHERE toNullable(materialize(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 346 out of 1000 SELECT m FROM nums_buf WHERE toNullable(materialize(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 347 out of 1000 EXPLAIN PIPELINE compact = true SELECT m FROM nums_buf WHERE toNullable(materialize(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE compact = true SELECT m FROM nums_buf WHERE toNullable(materialize(1)) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 348 out of 1000 SELECT m FROM nums_buf WHERE toNullable(materialize(1)) GROUP BY materialize(toNullable(toNullable(1))), toUInt256(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Error on processing query 'SELECT m FROM nums_buf WHERE toNullable(materialize(1)) GROUP BY materialize(toNullable(toNullable(1))), toUInt256(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Column default.nums_buf.m is not under aggregate function and not in GROUP BY keys. In query SELECT m FROM nums_buf WHERE toNullable(materialize(1)) GROUP BY materialize(toNullable(toNullable(1))), toUInt256(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033593a48 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 349 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 350 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 351 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 352 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Got boring AST Fuzzing step 353 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 354 out of 1000 SELECT m FROM nums_buf WHERE toNullable(toNullable(toLowCardinality(1)), 1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Error on processing query 'SELECT m FROM nums_buf WHERE toNullable(toNullable(toLowCardinality(1)), 1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT m FROM nums_buf WHERE toNullable(toNullable(toLowCardinality(1)), 1) ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 355 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) ASC Query succeeded, using this AST as a start Fuzzing step 356 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) ASC Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) ASC': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 357 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 358 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) ASC Got boring AST Fuzzing step 359 out of 1000 SELECT m FROM nums_buf WHERE toNullable(1) ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 360 out of 1000 SELECT m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 361 out of 1000 SELECT materialize(1), m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 362 out of 1000 SELECT materialize(1), m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST Got boring AST Fuzzing step 363 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT materialize(1), m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT materialize(1), m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 364 out of 1000 SELECT materialize(1), m FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC Query succeeded, using this AST as a start Fuzzing step 365 out of 1000 SELECT materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 366 out of 1000 SELECT materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Got boring AST Fuzzing step 367 out of 1000 SELECT materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 368 out of 1000 SELECT materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 369 out of 1000 SELECT materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 370 out of 1000 SELECT materialize(1) FROM nums_buf PREWHERE m ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Error on processing query 'SELECT materialize(1) FROM nums_buf PREWHERE m ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Storage Buffer (table default.nums_buf (e4e9cab6-d745-49f9-a4d2-9390368dbc2f)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:220: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000003360a15d 5. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x0000000033602c20 6. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 7. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 8. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 9. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 12. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 17. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 18. ? @ 0x00007fa035818ac3 19. ? @ 0x00007fa0358aa850 Fuzzing step 371 out of 1000 SELECT materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 372 out of 1000 SELECT materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 373 out of 1000 SELECT materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 374 out of 1000 SELECT materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Got boring AST Fuzzing step 375 out of 1000 SELECT materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 377 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 378 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 379 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 380 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 381 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 382 out of 1000 SELECT 1 FROM nums_buf GROUP BY toNullable(1), nums__fuzz_6, version_pair[materialize(1)], nums__fuzz_9 ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Error on processing query 'SELECT 1 FROM nums_buf GROUP BY toNullable(1), nums__fuzz_6, version_pair[materialize(1)], nums__fuzz_9 ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_6' in scope SELECT 1 FROM nums_buf GROUP BY toNullable(1), nums__fuzz_6, version_pair[materialize(1)], nums__fuzz_9 ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 383 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 384 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Got boring AST Fuzzing step 385 out of 1000 SELECT 1 FROM nums_buf GROUP BY materialize(toNullable(1)), toUInt128(toLowCardinality(1)), nums__fuzz_35 ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Error on processing query 'SELECT 1 FROM nums_buf GROUP BY materialize(toNullable(1)), toUInt128(toLowCardinality(1)), nums__fuzz_35 ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_35' in scope SELECT 1 FROM nums_buf GROUP BY materialize(toNullable(1)), toUInt128(toLowCardinality(1)), nums__fuzz_35 ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 386 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Got boring AST Fuzzing step 387 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Got boring AST Fuzzing step 388 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC Query succeeded, using this AST as a start Fuzzing step 389 out of 1000 SELECT 1 FROM nums_buf PREWHERE nums ORDER BY materialize(toNullable(toNullable(1))) ASC Error on processing query 'SELECT 1 FROM nums_buf PREWHERE nums ORDER BY materialize(toNullable(toNullable(1))) ASC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums' in scope SELECT 1 FROM nums_buf PREWHERE nums ORDER BY materialize(toNullable(toNullable(1))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 390 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 391 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Got boring AST Fuzzing step 392 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC Query succeeded, using this AST as a start Fuzzing step 393 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 394 out of 1000 SELECT 1 FROM nums_buf GROUP BY nums__fuzz_41 ORDER BY materialize(toNullable(toNullable(1))) DESC Error on processing query 'SELECT 1 FROM nums_buf GROUP BY nums__fuzz_41 ORDER BY materialize(toNullable(toNullable(1))) DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_41' in scope SELECT 1 FROM nums_buf GROUP BY nums__fuzz_41 ORDER BY materialize(toNullable(toNullable(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 395 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Got boring AST Fuzzing step 396 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC Got boring AST Fuzzing step 398 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC Got boring AST Fuzzing step 399 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC Got boring AST Fuzzing step 400 out of 1000 SELECT toNullable(1), 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC Query succeeded, using this AST as a start Fuzzing step 401 out of 1000 SELECT toNullable(1), 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC Got boring AST Fuzzing step 402 out of 1000 SELECT toNullable(1), materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 403 out of 1000 SELECT toNullable(1), materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Got boring AST Fuzzing step 404 out of 1000 SELECT toNullable(1), materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 405 out of 1000 SELECT toNullable(1), materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 406 out of 1000 SELECT toFixedString(toLowCardinality(' '), 1), toNullable(1), materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 407 out of 1000 SELECT toFixedString(toLowCardinality(toLowCardinality(' ')), 1), toNullable(toNullable(1)), materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 408 out of 1000 SELECT toFixedString(toLowCardinality(toLowCardinality(toFixedString(' ', 1))), 1), toNullable(toNullable(1)), materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 409 out of 1000 SELECT toFixedString(toLowCardinality(toFixedString(' ', 1)), 1), toNullable(toNullable(1)), materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 410 out of 1000 SELECT toFixedString(toLowCardinality(toLowCardinality(toLowCardinality(1)), toFixedString(' ', 1)), 1), toNullable(toNullable(1)), materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Error on processing query 'SELECT toFixedString(toLowCardinality(toLowCardinality(toLowCardinality(1)), toFixedString(' ', 1)), 1), toNullable(toNullable(1)), materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toFixedString(toLowCardinality(toLowCardinality(toLowCardinality(1)), toFixedString(' ', 1)), 1), toNullable(toNullable(1)), materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 411 out of 1000 SELECT toFixedString(toLowCardinality(toFixedString(' ', 1)), 1), toNullable(1), 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 412 out of 1000 SELECT toFixedString(toLowCardinality(toFixedString(' ', 1)), 1), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 413 out of 1000 SELECT toFixedString(toLowCardinality(toFixedString(' ', 1)), 1), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Got boring AST Fuzzing step 414 out of 1000 SELECT toFixedString(toLowCardinality(toFixedString(' ', 1)), 1), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 415 out of 1000 SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 416 out of 1000 SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS FIRST Got boring AST Fuzzing step 417 out of 1000 SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 418 out of 1000 SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC NULLS LAST Got boring AST Fuzzing step 419 out of 1000 SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 420 out of 1000 SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM nums_buf ORDER BY nums__fuzz_27 ASC, materialize(toNullable(toNullable(1))) DESC Error on processing query 'SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM nums_buf ORDER BY nums__fuzz_27 ASC, materialize(toNullable(toNullable(1))) DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_27' in scope SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM nums_buf ORDER BY nums__fuzz_27 ASC, materialize(toNullable(toNullable(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 421 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 422 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Got boring AST Fuzzing step 423 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 424 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 425 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Got boring AST Fuzzing step 426 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 427 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 428 out of 1000 SELECT toFixedString(' ', 1), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Query succeeded, using this AST as a start Fuzzing step 429 out of 1000 SELECT toFixedString(' ', 1), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Got boring AST Fuzzing step 430 out of 1000 SELECT toFixedString(' ', 1), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) DESC Got boring AST Fuzzing step 431 out of 1000 SELECT toFixedString(' ', 1), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC Query succeeded, using this AST as a start Fuzzing step 432 out of 1000 SELECT toFixedString(' ', 1), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 433 out of 1000 SELECT toFixedString(' ', 1), 1, 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Got boring AST Fuzzing step 434 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 435 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Got boring AST Fuzzing step 436 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Got boring AST Fuzzing step 437 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Got boring AST Fuzzing step 438 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toNullable(1))) ASC NULLS LAST Got boring AST Fuzzing step 439 out of 1000 SELECT materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC, materialize(toNullable(toNullable(1))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 440 out of 1000 SELECT materialize(1) FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC, materialize(toNullable(toNullable(1))) ASC NULLS LAST Got boring AST Fuzzing step 441 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC, materialize(toNullable(toNullable(1))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 442 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC NULLS FIRST, materialize(toNullable(toNullable(1))) ASC Query succeeded, using this AST as a start Fuzzing step 443 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC NULLS FIRST, materialize(toNullable(toNullable(1))) ASC Got boring AST Fuzzing step 444 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC NULLS FIRST, materialize(toNullable(toNullable(1))) ASC Got boring AST Fuzzing step 445 out of 1000 SELECT 1 FROM nums_buf GROUP BY materialize(version_pair[1], ' ') ORDER BY materialize(toNullable(toUInt256(1))) ASC NULLS FIRST, materialize(toNullable(toNullable(1))) ASC NULLS LAST Error on processing query 'SELECT 1 FROM nums_buf GROUP BY materialize(version_pair[1], ' ') ORDER BY materialize(toNullable(toUInt256(1))) ASC NULLS FIRST, materialize(toNullable(toNullable(1))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT 1 FROM nums_buf GROUP BY materialize(version_pair[1], ' ') ORDER BY materialize(toNullable(toUInt256(1))) ASC NULLS FIRST, materialize(toNullable(toNullable(1))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 446 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC NULLS FIRST, materialize(toNullable(toNullable(1))) ASC Got boring AST Fuzzing step 447 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 448 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC Query succeeded, using this AST as a start Fuzzing step 449 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC Got boring AST Fuzzing step 450 out of 1000 SELECT 1 FROM nums_buf GROUP BY nums__fuzz_22, toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))) ORDER BY materialize(toNullable(toUInt256(1))) ASC Error on processing query 'SELECT 1 FROM nums_buf GROUP BY nums__fuzz_22, toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))) ORDER BY materialize(toNullable(toUInt256(1))) ASC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_22' in scope SELECT 1 FROM nums_buf GROUP BY nums__fuzz_22, toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))) ORDER BY materialize(toNullable(toUInt256(1))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 451 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 452 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC Query succeeded, using this AST as a start Fuzzing step 453 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC Got boring AST Fuzzing step 454 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC Got boring AST Fuzzing step 455 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC Got boring AST Fuzzing step 456 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC Got boring AST Fuzzing step 457 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC Got boring AST Fuzzing step 458 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC Got boring AST Fuzzing step 459 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC Got boring AST Fuzzing step 460 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC Got boring AST Fuzzing step 461 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC Got boring AST Fuzzing step 462 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC Got boring AST Fuzzing step 463 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC Got boring AST Fuzzing step 464 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC Got boring AST Fuzzing step 465 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 466 out of 1000 SELECT 1 FROM nums_buf ORDER BY nums__fuzz_13 ASC, materialize(toNullable(toUInt256(1))) ASC NULLS LAST Error on processing query 'SELECT 1 FROM nums_buf ORDER BY nums__fuzz_13 ASC, materialize(toNullable(toUInt256(1))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_13' in scope SELECT 1 FROM nums_buf ORDER BY nums__fuzz_13 ASC, materialize(toNullable(toUInt256(1))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 467 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC NULLS LAST Got boring AST Fuzzing step 468 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC NULLS LAST Got boring AST Fuzzing step 469 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) ASC NULLS LAST Got boring AST Fuzzing step 470 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 471 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS FIRST Got boring AST Fuzzing step 472 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) DESC Query succeeded, using this AST as a start Fuzzing step 473 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 474 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 475 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 476 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS LAST Got boring AST Fuzzing step 477 out of 1000 SELECT 1 FROM nums_buf ORDER BY materialize(toNullable(toUInt256(1))) DESC Query succeeded, using this AST as a start Fuzzing step 478 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Query succeeded, using this AST as a start Fuzzing step 479 out of 1000 SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS FIRST Error on processing query 'SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 480 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 481 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 482 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 483 out of 1000 SELECT 1 FROM nums_buf PREWHERE toFixedString(' ', toNullable(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'SELECT 1 FROM nums_buf PREWHERE toFixedString(' ', toNullable(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf PREWHERE toFixedString(' ', toNullable(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 484 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 485 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 486 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 487 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 488 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 489 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 490 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 491 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 492 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 493 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 494 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 495 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 496 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 497 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 498 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 499 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 500 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 501 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 502 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 503 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 504 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 505 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 506 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 507 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 508 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 509 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 510 out of 1000 SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: FixedString(1). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 511 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 512 out of 1000 SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 513 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 514 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 515 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 516 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 517 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 518 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 519 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 520 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 521 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 522 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 523 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 524 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 525 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 526 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 527 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 528 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 529 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 530 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 531 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 532 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 533 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 534 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 535 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 536 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 537 out of 1000 SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 538 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 539 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 540 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 541 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 542 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 543 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 544 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 545 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 546 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 547 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 548 out of 1000 SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 549 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 550 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 551 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 552 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 553 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 554 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 555 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 556 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 557 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 558 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 559 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 560 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 561 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 562 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 563 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 564 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 565 out of 1000 SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS LAST Error on processing query 'SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 566 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 567 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 568 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 569 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 570 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 571 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 572 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 573 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 574 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 575 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 576 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 577 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 578 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 579 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 580 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 581 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 582 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 583 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 584 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 585 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 586 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 587 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 588 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 589 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 590 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 591 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 592 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 593 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 594 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 595 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 596 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 597 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 598 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 599 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 600 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 601 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 602 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 603 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 604 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 605 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 606 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 607 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 608 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 609 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 610 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 611 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 612 out of 1000 SELECT 1 FROM nums_buf WHERE toFixedString(' ', toNullable(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'SELECT 1 FROM nums_buf WHERE toFixedString(' ', toNullable(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toNullable(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 613 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 614 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 615 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 616 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 617 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 618 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 619 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 620 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 621 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 622 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 623 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 624 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 625 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 626 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 627 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 628 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 629 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 630 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 631 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 632 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 633 out of 1000 SELECT 1 FROM nums_buf WHERE toFixedString(toNullable(' '), toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'SELECT 1 FROM nums_buf WHERE toFixedString(toNullable(' '), toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(toNullable(' '), toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 634 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 635 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 636 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 637 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 638 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 639 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 640 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 641 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 642 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 643 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 644 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 645 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 646 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 647 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 648 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 649 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 650 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 651 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 652 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 653 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 654 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 655 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 656 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 657 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 658 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 659 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 660 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 661 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 662 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 663 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 664 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 665 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 666 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 667 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 668 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 669 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 670 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 671 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 672 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 673 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 674 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 675 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 676 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 677 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 678 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 679 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 680 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 681 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 682 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 683 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 684 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 685 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 686 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 687 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 688 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 689 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 690 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 691 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 692 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 693 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 694 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 695 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 696 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 697 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 698 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 699 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 700 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 701 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 702 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 703 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 704 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 705 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 706 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 707 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 708 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 709 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 710 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 711 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 712 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 713 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 714 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 715 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 716 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 717 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 718 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 719 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 720 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 721 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 722 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 723 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 724 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 725 out of 1000 SELECT 1 FROM nums_buf WHERE toFixedString(' ', toNullable(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'SELECT 1 FROM nums_buf WHERE toFixedString(' ', toNullable(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toNullable(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 726 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 727 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 728 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 729 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 730 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 731 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 732 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 733 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 734 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 735 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 736 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 737 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 738 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 739 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 740 out of 1000 SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toLowCardinality(materialize(materialize(toNullable(nums__fuzz_18, 1)))), toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toLowCardinality(materialize(materialize(toNullable(nums__fuzz_18, 1)))), toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_18' in scope SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toLowCardinality(materialize(materialize(toNullable(nums__fuzz_18, 1)))), toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 741 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 742 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 743 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 744 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 745 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 746 out of 1000 SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS FIRST Error on processing query 'SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 747 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 748 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 749 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 750 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 751 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 752 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 753 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 754 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 755 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 756 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 757 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 758 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 759 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 760 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 761 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 762 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 763 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 764 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 765 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 766 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 767 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 768 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 769 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 770 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 771 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 772 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 773 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 774 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 775 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 776 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 777 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 778 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 779 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 780 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 781 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 782 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 783 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 784 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 785 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 786 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 787 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 788 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 789 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 790 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 791 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 792 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 793 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 794 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 795 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 796 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 797 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 798 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 799 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 800 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 801 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 802 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 803 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 804 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 805 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 806 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 807 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 808 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 809 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 810 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 811 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 812 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 813 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 814 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 815 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 816 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 817 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 818 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 819 out of 1000 SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 820 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 821 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 822 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 823 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 824 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 825 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 826 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 827 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 828 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 829 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 830 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 831 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 832 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 833 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 834 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 835 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 836 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 837 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 838 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 839 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 840 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 841 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 842 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 843 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 844 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 845 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 846 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 847 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 848 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 849 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 850 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 851 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 852 out of 1000 SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS FIRST Error on processing query 'SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: FixedString(1). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 853 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 854 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 855 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 856 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 857 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 858 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 859 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 860 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 861 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 862 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 863 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 864 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 865 out of 1000 SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 866 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 867 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 868 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 869 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 870 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 871 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 872 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 873 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 874 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 875 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 876 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 877 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 878 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 879 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 880 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 881 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 882 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 883 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 884 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 885 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 886 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 887 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 888 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 889 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 890 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 891 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 892 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 893 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 894 out of 1000 SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 895 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 896 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 897 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 898 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 899 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 900 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 901 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 902 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 903 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 904 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 905 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 906 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 907 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 908 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 909 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 910 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 911 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 912 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 913 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 914 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 915 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 916 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 917 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 918 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 919 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 920 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 921 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 922 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 923 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 924 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 925 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 926 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 927 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 928 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 929 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 930 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 931 out of 1000 SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 932 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 933 out of 1000 SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS FIRST Error on processing query 'SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: FixedString(1). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 934 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 935 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 936 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 937 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 938 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 939 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 940 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 941 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 942 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 943 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 944 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 945 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 946 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 947 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 948 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 949 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 950 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 951 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 952 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 953 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 954 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 955 out of 1000 SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: FixedString(1). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 956 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 957 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 958 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 959 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 960 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 961 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 962 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 963 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 964 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 965 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 966 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 967 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 968 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 969 out of 1000 SELECT toUInt256(1) FROM nums_buf WHERE toFixedString(' ', toNullable(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS FIRST Error on processing query 'SELECT toUInt256(1) FROM nums_buf WHERE toFixedString(' ', toNullable(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT toUInt256(1) FROM nums_buf WHERE toFixedString(' ', toNullable(1)) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 970 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 971 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 972 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 973 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 974 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 975 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 976 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 977 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 978 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 979 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 980 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 981 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 982 out of 1000 SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS FIRST Error on processing query 'SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 983 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 984 out of 1000 EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 985 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 986 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 987 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 988 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 989 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 990 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 991 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)): While processing SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1333: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a99ed7 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 992 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 993 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 994 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('1'): 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 995 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 996 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 997 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 998 out of 1000 EXPLAIN AST SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Got boring AST Fuzzing step 999 out of 1000 SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC Error on processing query 'SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(1)). In query SELECT 1 FROM nums_buf WHERE toFixedString(' ', toUInt256(toNullable(1))) ORDER BY materialize(toNullable(toUInt256(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 0 out of 1 Query succeeded, using this AST as a start Fuzzing step 0 out of 1 Query succeeded, using this AST as a start DROP TABLE IF EXISTS nums__fuzz_0 DROP TABLE IF EXISTS nums__fuzz_1 DROP TABLE IF EXISTS nums__fuzz_2 DROP TABLE IF EXISTS nums__fuzz_3 DROP TABLE IF EXISTS nums__fuzz_4 DROP TABLE IF EXISTS nums__fuzz_5 DROP TABLE IF EXISTS nums__fuzz_6 DROP TABLE IF EXISTS nums__fuzz_7 DROP TABLE IF EXISTS nums__fuzz_8 DROP TABLE IF EXISTS nums__fuzz_9 DROP TABLE IF EXISTS nums__fuzz_10 DROP TABLE IF EXISTS nums__fuzz_11 DROP TABLE IF EXISTS nums__fuzz_12 DROP TABLE IF EXISTS nums__fuzz_13 DROP TABLE IF EXISTS nums__fuzz_14 DROP TABLE IF EXISTS nums__fuzz_15 DROP TABLE IF EXISTS nums__fuzz_16 DROP TABLE IF EXISTS nums__fuzz_17 DROP TABLE IF EXISTS nums__fuzz_18 DROP TABLE IF EXISTS nums__fuzz_19 DROP TABLE IF EXISTS nums__fuzz_20 DROP TABLE IF EXISTS nums__fuzz_21 DROP TABLE IF EXISTS nums__fuzz_22 DROP TABLE IF EXISTS nums__fuzz_23 DROP TABLE IF EXISTS nums__fuzz_24 DROP TABLE IF EXISTS nums__fuzz_25 DROP TABLE IF EXISTS nums__fuzz_26 DROP TABLE IF EXISTS nums__fuzz_27 DROP TABLE IF EXISTS nums__fuzz_28 DROP TABLE IF EXISTS nums__fuzz_29 DROP TABLE IF EXISTS nums__fuzz_30 DROP TABLE IF EXISTS nums__fuzz_31 DROP TABLE IF EXISTS nums__fuzz_32 DROP TABLE IF EXISTS nums__fuzz_33 DROP TABLE IF EXISTS nums__fuzz_34 DROP TABLE IF EXISTS nums__fuzz_35 DROP TABLE IF EXISTS nums__fuzz_36 DROP TABLE IF EXISTS nums__fuzz_37 DROP TABLE IF EXISTS nums__fuzz_38 DROP TABLE IF EXISTS nums__fuzz_39 DROP TABLE IF EXISTS nums__fuzz_40 DROP TABLE IF EXISTS nums__fuzz_41 DROP TABLE IF EXISTS nums__fuzz_42 DROP TABLE IF EXISTS nums__fuzz_43 DROP TABLE IF EXISTS nums__fuzz_44 DROP TABLE IF EXISTS nums__fuzz_45 DROP TABLE IF EXISTS nums__fuzz_46 DROP TABLE IF EXISTS nums__fuzz_47 DROP TABLE IF EXISTS nums__fuzz_48 Fuzzing step 0 out of 1 Query succeeded, using this AST as a start Fuzzing step 0 out of 50 Query succeeded, using this AST as a start Fuzzing step 1 out of 50 CREATE TABLE t__fuzz_0 ( `s` Array(String) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Error on processing query 'CREATE TABLE t__fuzz_0 (`s` Array(String)) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c'])': Received from localhost:9000. DB::Exception: Array does not start with '[' character: while converting source column `arrayJoin(['a', 'b', 'c'])` to destination column s: while executing 'FUNCTION _CAST(arrayJoin(['a', 'b', 'c']) :: 0, Array(String) :: 1) -> _CAST(arrayJoin(['a', 'b', 'c']), Array(String)) Array(String) : 2'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/DataTypes/Serializations/SerializationArray.cpp:442: DB::SerializationArray::deserializeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&, bool) const @ 0x000000003266be2d 5. DB::SimpleTextSerialization::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x00000000086246a6 6. DB::(anonymous namespace)::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long, std::shared_ptr const&) @ 0x00000000086ec0f0 7. COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl const&, DB::DataTypeArray const&) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x0000000008ff47c0 8. DB::(anonymous namespace)::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000086d2b34 9. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffeaa 10. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601e5f 11. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 12. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:124: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool, bool) const @ 0x0000000033a24ade 13. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:0: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000003b82c484 14. ./contrib/llvm-project/libcxx/include/__utility/swap.h:35: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000020acdc84 15. ./build_docker/./src/Processors/ISimpleTransform.cpp:99: DB::ISimpleTransform::work() @ 0x000000003ae66ecb 16. ./contrib/llvm-project/libcxx/include/list:588: DB::ExecutionThreadContext::executeTask() @ 0x000000003aed722d 17. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:273: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000003aea6166 18. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:410: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000003aea4223 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000003aea3c88 20. ./build_docker/./src/Processors/Executors/CompletedPipelineExecutor.cpp:57: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000003aea17d9 21. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x00000000202d03fd 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x00000000202e2944 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 2 out of 50 CREATE TABLE t__fuzz_1 ( `s` LowCardinality(String) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 3 out of 50 CREATE TABLE t__fuzz_2 ( `s` Decimal(9, 8) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Error on processing query 'CREATE TABLE t__fuzz_2 (`s` Decimal(9, 8)) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c'])': Received from localhost:9000. DB::Exception: Cannot parse string 'a' as Decimal(9, 8): syntax error at begin of string: while converting source column `arrayJoin(['a', 'b', 'c'])` to destination column s: while executing 'FUNCTION _CAST(arrayJoin(['a', 'b', 'c']) :: 0, Decimal(9, 8) :: 1) -> _CAST(arrayJoin(['a', 'b', 'c']), Decimal(9, 8)) Decimal(9, 8) : 2'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::(anonymous namespace)::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x00000000086ed802 4. COW::immutable_ptr DB::(anonymous namespace)::ConvertImpl>, DB::(anonymous namespace)::FunctionCastName, (DB::FormatSettings::DateTimeOverflowBehavior)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::(anonymous namespace)::BehaviourOnErrorFromString, unsigned int) @ 0x0000000008c8662b 5. _ZN2DBL22callOnIndexAndDataTypeINS_15DataTypeDecimalINS_7DecimalIiEEEEZZNKS_12_GLOBAL__N_112FunctionCast20createDecimalWrapperIS4_Q17IsDataTypeDecimalIT_EEENSt3__18functionIFN3COWINS_7IColumnEE13immutable_ptrISC_EERNS9_6vectorINS_21ColumnWithTypeAndNameENS9_9allocatorISH_EEEERKNS9_10shared_ptrIKNS_9IDataTypeEEEPKNS_14ColumnNullableEmEEESR_PKS8_bENKUlSL_SR_SU_mE_clESL_SR_SU_mEUlRSX_E_JEEEbNS_9TypeIndexEOT0_DpOT1_ @ 0x0000000008c49dfd 6. _ZNSt3__110__function16__policy_invokerIFN3COWIN2DB7IColumnEE13immutable_ptrIS4_EERNS_6vectorINS3_21ColumnWithTypeAndNameENS_9allocatorIS9_EEEERKNS_10shared_ptrIKNS3_9IDataTypeEEEPKNS3_14ColumnNullableEmEE11__call_implINS0_20__default_alloc_funcIZNKS3_12_GLOBAL__N_112FunctionCast20createDecimalWrapperINS3_15DataTypeDecimalINS3_7DecimalIiEEEEQ17IsDataTypeDecimalIT_EEENS_8functionISN_EESJ_PKSY_bEUlSD_SJ_SM_mE_SN_EEEES7_PKNS0_16__policy_storageESD_SJ_SM_m @ 0x0000000008c3fefd 7. DB::(anonymous namespace)::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000086d2b34 8. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffeaa 9. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601e5f 10. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 11. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:124: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool, bool) const @ 0x0000000033a24ade 12. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:0: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000003b82c484 13. ./contrib/llvm-project/libcxx/include/__utility/swap.h:35: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000020acdc84 14. ./build_docker/./src/Processors/ISimpleTransform.cpp:99: DB::ISimpleTransform::work() @ 0x000000003ae66ecb 15. ./contrib/llvm-project/libcxx/include/list:588: DB::ExecutionThreadContext::executeTask() @ 0x000000003aed722d 16. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:273: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000003aea6166 17. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:410: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000003aea4223 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000003aea3c88 19. ./build_docker/./src/Processors/Executors/CompletedPipelineExecutor.cpp:57: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000003aea17d9 20. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x00000000202d03fd 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x00000000202e2944 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 4 out of 50 CREATE TABLE t__fuzz_3 ( `s` Array(String) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Error on processing query 'CREATE TABLE t__fuzz_3 (`s` Array(String)) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c'])': Received from localhost:9000. DB::Exception: Array does not start with '[' character: while converting source column `arrayJoin(['a', 'b', 'c'])` to destination column s: while executing 'FUNCTION _CAST(arrayJoin(['a', 'b', 'c']) :: 0, Array(String) :: 1) -> _CAST(arrayJoin(['a', 'b', 'c']), Array(String)) Array(String) : 2'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/DataTypes/Serializations/SerializationArray.cpp:442: DB::SerializationArray::deserializeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&, bool) const @ 0x000000003266be2d 5. DB::SimpleTextSerialization::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x00000000086246a6 6. DB::(anonymous namespace)::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long, std::shared_ptr const&) @ 0x00000000086ec0f0 7. COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl const&, DB::DataTypeArray const&) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x0000000008ff47c0 8. DB::(anonymous namespace)::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000086d2b34 9. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffeaa 10. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601e5f 11. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 12. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:124: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool, bool) const @ 0x0000000033a24ade 13. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:0: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000003b82c484 14. ./contrib/llvm-project/libcxx/include/__utility/swap.h:35: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000020acdc84 15. ./build_docker/./src/Processors/ISimpleTransform.cpp:99: DB::ISimpleTransform::work() @ 0x000000003ae66ecb 16. ./contrib/llvm-project/libcxx/include/list:588: DB::ExecutionThreadContext::executeTask() @ 0x000000003aed722d 17. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:273: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000003aea6166 18. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:410: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000003aea4223 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000003aea3c88 20. ./build_docker/./src/Processors/Executors/CompletedPipelineExecutor.cpp:57: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000003aea17d9 21. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x00000000202d03fd 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x00000000202e2944 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 5 out of 50 CREATE TABLE t__fuzz_4 ( `s` LowCardinality(String) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 6 out of 50 CREATE TABLE t__fuzz_5 ( `s` String ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 7 out of 50 CREATE TABLE t__fuzz_6 ( `s` String ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 8 out of 50 CREATE TABLE t__fuzz_7 ( `s` LowCardinality(String) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 9 out of 50 CREATE TABLE t__fuzz_8 ( `s` LowCardinality(String) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 10 out of 50 CREATE TABLE t__fuzz_9 ( `s` Decimal(18, 5) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Error on processing query 'CREATE TABLE t__fuzz_9 (`s` Decimal(18, 5)) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c'])': Received from localhost:9000. DB::Exception: Cannot parse string 'a' as Decimal(18, 5): syntax error at begin of string: while converting source column `arrayJoin(['a', 'b', 'c'])` to destination column s: while executing 'FUNCTION _CAST(arrayJoin(['a', 'b', 'c']) :: 0, Decimal(18, 5) :: 1) -> _CAST(arrayJoin(['a', 'b', 'c']), Decimal(18, 5)) Decimal(18, 5) : 2'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::(anonymous namespace)::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x00000000086ed802 4. COW::immutable_ptr DB::(anonymous namespace)::ConvertImpl>, DB::(anonymous namespace)::FunctionCastName, (DB::FormatSettings::DateTimeOverflowBehavior)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::(anonymous namespace)::BehaviourOnErrorFromString, unsigned int) @ 0x0000000008cccbef 5. _ZN2DBL22callOnIndexAndDataTypeINS_15DataTypeDecimalINS_7DecimalIlEEEEZZNKS_12_GLOBAL__N_112FunctionCast20createDecimalWrapperIS4_Q17IsDataTypeDecimalIT_EEENSt3__18functionIFN3COWINS_7IColumnEE13immutable_ptrISC_EERNS9_6vectorINS_21ColumnWithTypeAndNameENS9_9allocatorISH_EEEERKNS9_10shared_ptrIKNS_9IDataTypeEEEPKNS_14ColumnNullableEmEEESR_PKS8_bENKUlSL_SR_SU_mE_clESL_SR_SU_mEUlRSX_E_JEEEbNS_9TypeIndexEOT0_DpOT1_ @ 0x0000000008c90d63 6. _ZNSt3__110__function16__policy_invokerIFN3COWIN2DB7IColumnEE13immutable_ptrIS4_EERNS_6vectorINS3_21ColumnWithTypeAndNameENS_9allocatorIS9_EEEERKNS_10shared_ptrIKNS3_9IDataTypeEEEPKNS3_14ColumnNullableEmEE11__call_implINS0_20__default_alloc_funcIZNKS3_12_GLOBAL__N_112FunctionCast20createDecimalWrapperINS3_15DataTypeDecimalINS3_7DecimalIlEEEEQ17IsDataTypeDecimalIT_EEENS_8functionISN_EESJ_PKSY_bEUlSD_SJ_SM_mE_SN_EEEES7_PKNS0_16__policy_storageESD_SJ_SM_m @ 0x0000000008c86d7d 7. DB::(anonymous namespace)::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000086d2b34 8. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffeaa 9. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601e5f 10. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 11. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:124: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool, bool) const @ 0x0000000033a24ade 12. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:0: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000003b82c484 13. ./contrib/llvm-project/libcxx/include/__utility/swap.h:35: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000020acdc84 14. ./build_docker/./src/Processors/ISimpleTransform.cpp:99: DB::ISimpleTransform::work() @ 0x000000003ae66ecb 15. ./contrib/llvm-project/libcxx/include/list:588: DB::ExecutionThreadContext::executeTask() @ 0x000000003aed722d 16. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:273: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000003aea6166 17. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:410: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000003aea4223 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000003aea3c88 19. ./build_docker/./src/Processors/Executors/CompletedPipelineExecutor.cpp:57: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000003aea17d9 20. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x00000000202d03fd 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x00000000202e2944 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 11 out of 50 CREATE TABLE t__fuzz_10 ( `s` LowCardinality(String) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 12 out of 50 CREATE TABLE t__fuzz_11 ( `s` LowCardinality(String) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 13 out of 50 CREATE TABLE t__fuzz_12 ( `s` LowCardinality(String) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 14 out of 50 CREATE TABLE t__fuzz_13 ( `s` Decimal(76, 35) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Error on processing query 'CREATE TABLE t__fuzz_13 (`s` Decimal(76, 35)) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c'])': Received from localhost:9000. DB::Exception: Cannot parse string 'a' as Decimal(76, 35): syntax error at begin of string: while converting source column `arrayJoin(['a', 'b', 'c'])` to destination column s: while executing 'FUNCTION _CAST(arrayJoin(['a', 'b', 'c']) :: 0, Decimal(76, 35) :: 1) -> _CAST(arrayJoin(['a', 'b', 'c']), Decimal(76, 35)) Decimal(76, 35) : 2'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::(anonymous namespace)::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x00000000086ed802 4. COW::immutable_ptr DB::(anonymous namespace)::ConvertImpl>>, DB::(anonymous namespace)::FunctionCastName, (DB::FormatSettings::DateTimeOverflowBehavior)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::(anonymous namespace)::BehaviourOnErrorFromString, unsigned int) @ 0x0000000008d5a822 5. _ZN2DBL22callOnIndexAndDataTypeINS_15DataTypeDecimalINS_7DecimalIN4wide7integerILm256EiEEEEEEZZNKS_12_GLOBAL__N_112FunctionCast20createDecimalWrapperIS7_Q17IsDataTypeDecimalIT_EEENSt3__18functionIFN3COWINS_7IColumnEE13immutable_ptrISF_EERNSC_6vectorINS_21ColumnWithTypeAndNameENSC_9allocatorISK_EEEERKNSC_10shared_ptrIKNS_9IDataTypeEEEPKNS_14ColumnNullableEmEEESU_PKSB_bENKUlSO_SU_SX_mE_clESO_SU_SX_mEUlRS10_E_JEEEbNS_9TypeIndexEOT0_DpOT1_ @ 0x0000000008d1f01c 6. _ZNSt3__110__function16__policy_invokerIFN3COWIN2DB7IColumnEE13immutable_ptrIS4_EERNS_6vectorINS3_21ColumnWithTypeAndNameENS_9allocatorIS9_EEEERKNS_10shared_ptrIKNS3_9IDataTypeEEEPKNS3_14ColumnNullableEmEE11__call_implINS0_20__default_alloc_funcIZNKS3_12_GLOBAL__N_112FunctionCast20createDecimalWrapperINS3_15DataTypeDecimalINS3_7DecimalIN4wide7integerILm256EiEEEEEEQ17IsDataTypeDecimalIT_EEENS_8functionISN_EESJ_PKS11_bEUlSD_SJ_SM_mE_SN_EEEES7_PKNS0_16__policy_storageESD_SJ_SM_m @ 0x0000000008d14f5d 7. DB::(anonymous namespace)::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000086d2b34 8. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffeaa 9. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601e5f 10. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 11. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:124: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool, bool) const @ 0x0000000033a24ade 12. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:0: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000003b82c484 13. ./contrib/llvm-project/libcxx/include/__utility/swap.h:35: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000020acdc84 14. ./build_docker/./src/Processors/ISimpleTransform.cpp:99: DB::ISimpleTransform::work() @ 0x000000003ae66ecb 15. ./contrib/llvm-project/libcxx/include/list:588: DB::ExecutionThreadContext::executeTask() @ 0x000000003aed722d 16. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:273: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000003aea6166 17. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:410: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000003aea4223 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000003aea3c88 19. ./build_docker/./src/Processors/Executors/CompletedPipelineExecutor.cpp:57: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000003aea17d9 20. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x00000000202d03fd 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x00000000202e2944 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 15 out of 50 CREATE TABLE t__fuzz_14 ( `s` LowCardinality(String) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 16 out of 50 CREATE TABLE t__fuzz_15 ( `s` LowCardinality(String) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 17 out of 50 CREATE TABLE t__fuzz_16 ( `s` LowCardinality(String) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 18 out of 50 CREATE TABLE t__fuzz_17 ( `s` Array(String) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Error on processing query 'CREATE TABLE t__fuzz_17 (`s` Array(String)) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c'])': Received from localhost:9000. DB::Exception: Array does not start with '[' character: while converting source column `arrayJoin(['a', 'b', 'c'])` to destination column s: while executing 'FUNCTION _CAST(arrayJoin(['a', 'b', 'c']) :: 0, Array(String) :: 1) -> _CAST(arrayJoin(['a', 'b', 'c']), Array(String)) Array(String) : 2'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/DataTypes/Serializations/SerializationArray.cpp:442: DB::SerializationArray::deserializeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&, bool) const @ 0x000000003266be2d 5. DB::SimpleTextSerialization::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x00000000086246a6 6. DB::(anonymous namespace)::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long, std::shared_ptr const&) @ 0x00000000086ec0f0 7. COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl const&, DB::DataTypeArray const&) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x0000000008ff47c0 8. DB::(anonymous namespace)::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000086d2b34 9. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffeaa 10. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601e5f 11. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 12. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:124: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool, bool) const @ 0x0000000033a24ade 13. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:0: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000003b82c484 14. ./contrib/llvm-project/libcxx/include/__utility/swap.h:35: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000020acdc84 15. ./build_docker/./src/Processors/ISimpleTransform.cpp:99: DB::ISimpleTransform::work() @ 0x000000003ae66ecb 16. ./contrib/llvm-project/libcxx/include/list:588: DB::ExecutionThreadContext::executeTask() @ 0x000000003aed722d 17. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:273: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000003aea6166 18. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:410: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000003aea4223 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000003aea3c88 20. ./build_docker/./src/Processors/Executors/CompletedPipelineExecutor.cpp:57: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000003aea17d9 21. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x00000000202d03fd 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x00000000202e2944 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 19 out of 50 CREATE TABLE t__fuzz_18 ( `s` LowCardinality(String) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 20 out of 50 CREATE TABLE t__fuzz_19 ( `s` String ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 21 out of 50 CREATE TABLE t__fuzz_20 ( `s` UUID ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Error on processing query 'CREATE TABLE t__fuzz_20 (`s` UUID) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c'])': Received from localhost:9000. DB::Exception: Cannot parse uuid a: Cannot parse UUID from String: while converting source column `arrayJoin(['a', 'b', 'c'])` to destination column s: while executing 'FUNCTION _CAST(arrayJoin(['a', 'b', 'c']) :: 0, UUID :: 1) -> _CAST(arrayJoin(['a', 'b', 'c']), UUID) UUID : 2'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, char (&) [36]) @ 0x000000000962e4aa 4. void DB::readUUIDTextImpl(StrongTypedef, DB::UUIDTag>&, DB::ReadBuffer&) @ 0x000000000962e1a1 5. bool DB::callOnIndexAndDataType>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, DB::(anonymous namespace)::BehaviourOnErrorFromString)&, DB::(anonymous namespace)::BehaviourOnErrorFromString>(DB::TypeIndex, DB::(anonymous namespace)::FunctionConvert>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, DB::(anonymous namespace)::BehaviourOnErrorFromString)&, DB::(anonymous namespace)::BehaviourOnErrorFromString&&) @ 0x0000000008f51f8f 6. DB::(anonymous namespace)::FunctionConvert>>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000008f3aaff 7. DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d57db 8. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffeaa 9. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 10. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 11. DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000083d403f 12. COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000876e509 13. DB::(anonymous namespace)::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000086d2b34 14. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffeaa 15. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601e5f 16. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 17. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:124: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool, bool) const @ 0x0000000033a24ade 18. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:0: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000003b82c484 19. ./contrib/llvm-project/libcxx/include/__utility/swap.h:35: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000020acdc84 20. ./build_docker/./src/Processors/ISimpleTransform.cpp:99: DB::ISimpleTransform::work() @ 0x000000003ae66ecb 21. ./contrib/llvm-project/libcxx/include/list:588: DB::ExecutionThreadContext::executeTask() @ 0x000000003aed722d 22. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:273: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000003aea6166 23. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:410: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000003aea4223 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000003aea3c88 25. ./build_docker/./src/Processors/Executors/CompletedPipelineExecutor.cpp:57: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000003aea17d9 26. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x00000000202d03fd 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x00000000202e2944 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 22 out of 50 CREATE TABLE t__fuzz_21 ( `s` String ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 23 out of 50 CREATE TABLE t__fuzz_22 ( `s` String ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 24 out of 50 CREATE TABLE t__fuzz_23 ( `s` String ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 25 out of 50 CREATE TABLE t__fuzz_24 ( `s` String ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 26 out of 50 CREATE TABLE t__fuzz_25 ( `s` String ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 27 out of 50 CREATE TABLE t__fuzz_26 ( `s` String ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 28 out of 50 CREATE TABLE t__fuzz_27 ( `s` String ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 29 out of 50 CREATE TABLE t__fuzz_28 ( `s` String ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 30 out of 50 CREATE TABLE t__fuzz_29 ( `s` String ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 31 out of 50 CREATE TABLE t__fuzz_30 ( `s` String ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 32 out of 50 CREATE TABLE t__fuzz_31 ( `s` LowCardinality(String) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 33 out of 50 CREATE TABLE t__fuzz_32 ( `s` UInt16 ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Error on processing query 'CREATE TABLE t__fuzz_32 (`s` UInt16) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c'])': Received from localhost:9000. DB::Exception: Cannot parse string 'a' as UInt16: syntax error at begin of string. Note: there are toUInt16OrZero and toUInt16OrNull functions, which returns zero/NULL instead of throwing exception.: while converting source column `arrayJoin(['a', 'b', 'c'])` to destination column s: while executing 'FUNCTION _CAST(arrayJoin(['a', 'b', 'c']) :: 0, UInt16 :: 1) -> _CAST(arrayJoin(['a', 'b', 'c']), UInt16) UInt16 : 2'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::(anonymous namespace)::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x00000000086ed802 4. bool DB::callOnIndexAndDataType, DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt16, DB::(anonymous namespace)::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, DB::(anonymous namespace)::BehaviourOnErrorFromString)&, DB::(anonymous namespace)::BehaviourOnErrorFromString>(DB::TypeIndex, DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt16, DB::(anonymous namespace)::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, DB::(anonymous namespace)::BehaviourOnErrorFromString)&, DB::(anonymous namespace)::BehaviourOnErrorFromString&&) @ 0x00000000087fd830 5. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt16, DB::(anonymous namespace)::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000087d97df 6. DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d57db 7. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffeaa 8. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 9. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 10. DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000083d403f 11. COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000876e509 12. DB::(anonymous namespace)::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000086d2b34 13. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffeaa 14. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601e5f 15. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 16. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:124: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool, bool) const @ 0x0000000033a24ade 17. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:0: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000003b82c484 18. ./contrib/llvm-project/libcxx/include/__utility/swap.h:35: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000020acdc84 19. ./build_docker/./src/Processors/ISimpleTransform.cpp:99: DB::ISimpleTransform::work() @ 0x000000003ae66ecb 20. ./contrib/llvm-project/libcxx/include/list:588: DB::ExecutionThreadContext::executeTask() @ 0x000000003aed722d 21. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:273: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000003aea6166 22. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:410: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000003aea4223 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000003aea3c88 24. ./build_docker/./src/Processors/Executors/CompletedPipelineExecutor.cpp:57: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000003aea17d9 25. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x00000000202d03fd 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x00000000202e2944 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 34 out of 50 CREATE TABLE t__fuzz_33 ( `s` Int16 ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Error on processing query 'CREATE TABLE t__fuzz_33 (`s` Int16) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c'])': Received from localhost:9000. DB::Exception: Cannot parse string 'a' as Int16: syntax error at begin of string. Note: there are toInt16OrZero and toInt16OrNull functions, which returns zero/NULL instead of throwing exception.: while converting source column `arrayJoin(['a', 'b', 'c'])` to destination column s: while executing 'FUNCTION _CAST(arrayJoin(['a', 'b', 'c']) :: 0, Int16 :: 1) -> _CAST(arrayJoin(['a', 'b', 'c']), Int16) Int16 : 2'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::(anonymous namespace)::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x00000000086ed802 4. bool DB::callOnIndexAndDataType, DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToInt16, DB::(anonymous namespace)::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, DB::(anonymous namespace)::BehaviourOnErrorFromString)&, DB::(anonymous namespace)::BehaviourOnErrorFromString>(DB::TypeIndex, DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToInt16, DB::(anonymous namespace)::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, DB::(anonymous namespace)::BehaviourOnErrorFromString)&, DB::(anonymous namespace)::BehaviourOnErrorFromString&&) @ 0x0000000008a07204 5. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToInt16, DB::(anonymous namespace)::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000089e511f 6. DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d57db 7. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffeaa 8. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 9. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 10. DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000083d403f 11. COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000876e509 12. DB::(anonymous namespace)::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000086d2b34 13. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffeaa 14. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601e5f 15. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 16. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:124: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool, bool) const @ 0x0000000033a24ade 17. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:0: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000003b82c484 18. ./contrib/llvm-project/libcxx/include/__utility/swap.h:35: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000020acdc84 19. ./build_docker/./src/Processors/ISimpleTransform.cpp:99: DB::ISimpleTransform::work() @ 0x000000003ae66ecb 20. ./contrib/llvm-project/libcxx/include/list:588: DB::ExecutionThreadContext::executeTask() @ 0x000000003aed722d 21. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:273: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000003aea6166 22. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:410: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000003aea4223 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000003aea3c88 24. ./build_docker/./src/Processors/Executors/CompletedPipelineExecutor.cpp:57: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000003aea17d9 25. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x00000000202d03fd 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x00000000202e2944 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 35 out of 50 CREATE TABLE t__fuzz_34 ( `s` Decimal(18, 17) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Error on processing query 'CREATE TABLE t__fuzz_34 (`s` Decimal(18, 17)) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c'])': Received from localhost:9000. DB::Exception: Cannot parse string 'a' as Decimal(18, 17): syntax error at begin of string: while converting source column `arrayJoin(['a', 'b', 'c'])` to destination column s: while executing 'FUNCTION _CAST(arrayJoin(['a', 'b', 'c']) :: 0, Decimal(18, 17) :: 1) -> _CAST(arrayJoin(['a', 'b', 'c']), Decimal(18, 17)) Decimal(18, 17) : 2'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::(anonymous namespace)::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x00000000086ed802 4. COW::immutable_ptr DB::(anonymous namespace)::ConvertImpl>, DB::(anonymous namespace)::FunctionCastName, (DB::FormatSettings::DateTimeOverflowBehavior)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::(anonymous namespace)::BehaviourOnErrorFromString, unsigned int) @ 0x0000000008cccbef 5. _ZN2DBL22callOnIndexAndDataTypeINS_15DataTypeDecimalINS_7DecimalIlEEEEZZNKS_12_GLOBAL__N_112FunctionCast20createDecimalWrapperIS4_Q17IsDataTypeDecimalIT_EEENSt3__18functionIFN3COWINS_7IColumnEE13immutable_ptrISC_EERNS9_6vectorINS_21ColumnWithTypeAndNameENS9_9allocatorISH_EEEERKNS9_10shared_ptrIKNS_9IDataTypeEEEPKNS_14ColumnNullableEmEEESR_PKS8_bENKUlSL_SR_SU_mE_clESL_SR_SU_mEUlRSX_E_JEEEbNS_9TypeIndexEOT0_DpOT1_ @ 0x0000000008c90d63 6. _ZNSt3__110__function16__policy_invokerIFN3COWIN2DB7IColumnEE13immutable_ptrIS4_EERNS_6vectorINS3_21ColumnWithTypeAndNameENS_9allocatorIS9_EEEERKNS_10shared_ptrIKNS3_9IDataTypeEEEPKNS3_14ColumnNullableEmEE11__call_implINS0_20__default_alloc_funcIZNKS3_12_GLOBAL__N_112FunctionCast20createDecimalWrapperINS3_15DataTypeDecimalINS3_7DecimalIlEEEEQ17IsDataTypeDecimalIT_EEENS_8functionISN_EESJ_PKSY_bEUlSD_SJ_SM_mE_SN_EEEES7_PKNS0_16__policy_storageESD_SJ_SM_m @ 0x0000000008c86d7d 7. DB::(anonymous namespace)::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000086d2b34 8. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffeaa 9. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601e5f 10. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 11. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:124: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool, bool) const @ 0x0000000033a24ade 12. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:0: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000003b82c484 13. ./contrib/llvm-project/libcxx/include/__utility/swap.h:35: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000020acdc84 14. ./build_docker/./src/Processors/ISimpleTransform.cpp:99: DB::ISimpleTransform::work() @ 0x000000003ae66ecb 15. ./contrib/llvm-project/libcxx/include/list:588: DB::ExecutionThreadContext::executeTask() @ 0x000000003aed722d 16. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:273: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000003aea6166 17. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:410: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000003aea4223 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000003aea3c88 19. ./build_docker/./src/Processors/Executors/CompletedPipelineExecutor.cpp:57: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000003aea17d9 20. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x00000000202d03fd 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x00000000202e2944 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 36 out of 50 CREATE TABLE t__fuzz_35 ( `s` String ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 37 out of 50 CREATE TABLE t__fuzz_36 ( `s` Nullable(String) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 38 out of 50 CREATE TABLE t__fuzz_37 ( `s` Nullable(String) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 39 out of 50 CREATE TABLE t__fuzz_38 ( `s` LowCardinality(String) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 40 out of 50 CREATE TABLE t__fuzz_39 ( `s` UInt8 ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Error on processing query 'CREATE TABLE t__fuzz_39 (`s` UInt8) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c'])': Received from localhost:9000. DB::Exception: Cannot parse string 'a' as UInt8: syntax error at begin of string. Note: there are toUInt8OrZero and toUInt8OrNull functions, which returns zero/NULL instead of throwing exception.: while converting source column `arrayJoin(['a', 'b', 'c'])` to destination column s: while executing 'FUNCTION _CAST(arrayJoin(['a', 'b', 'c']) :: 0, UInt8 :: 1) -> _CAST(arrayJoin(['a', 'b', 'c']), UInt8) UInt8 : 2'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::(anonymous namespace)::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x00000000086ed802 4. bool DB::callOnIndexAndDataType, DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, DB::(anonymous namespace)::BehaviourOnErrorFromString)&, DB::(anonymous namespace)::BehaviourOnErrorFromString>(DB::TypeIndex, DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, DB::(anonymous namespace)::BehaviourOnErrorFromString)&, DB::(anonymous namespace)::BehaviourOnErrorFromString&&) @ 0x0000000008799888 5. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000876f0ff 6. DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d57db 7. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffeaa 8. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 9. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 10. DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000083d403f 11. COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000876e509 12. DB::(anonymous namespace)::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000086d2b34 13. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffeaa 14. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601e5f 15. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 16. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:124: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool, bool) const @ 0x0000000033a24ade 17. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:0: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000003b82c484 18. ./contrib/llvm-project/libcxx/include/__utility/swap.h:35: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000020acdc84 19. ./build_docker/./src/Processors/ISimpleTransform.cpp:99: DB::ISimpleTransform::work() @ 0x000000003ae66ecb 20. ./contrib/llvm-project/libcxx/include/list:588: DB::ExecutionThreadContext::executeTask() @ 0x000000003aed722d 21. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:273: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000003aea6166 22. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:410: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000003aea4223 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000003aea3c88 24. ./build_docker/./src/Processors/Executors/CompletedPipelineExecutor.cpp:57: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000003aea17d9 25. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x00000000202d03fd 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x00000000202e2944 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 41 out of 50 CREATE TABLE t__fuzz_40 ( `s` LowCardinality(Nullable(String)) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 42 out of 50 CREATE TABLE t__fuzz_41 ( `s` LowCardinality(Nullable(String)) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 43 out of 50 CREATE TABLE t__fuzz_42 ( `s` LowCardinality(Nullable(String)) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 44 out of 50 CREATE TABLE t__fuzz_43 ( `s` LowCardinality(Nullable(String)) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 45 out of 50 CREATE TABLE t__fuzz_44 ( `s` LowCardinality(Nullable(String)) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 46 out of 50 CREATE TABLE t__fuzz_45 ( `s` Date32 ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Error on processing query 'CREATE TABLE t__fuzz_45 (`s` Date32) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c'])': Received from localhost:9000. DB::Exception: Cannot parse date: value is too short: Cannot parse Date32 from String: while converting source column `arrayJoin(['a', 'b', 'c'])` to destination column s: while executing 'FUNCTION _CAST(arrayJoin(['a', 'b', 'c']) :: 0, Date32 :: 1) -> _CAST(arrayJoin(['a', 'b', 'c']), Date32) Date32 : 2'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/IO/ReadHelpers.cpp:1363: void DB::readDateTextFallback(LocalDate&, DB::ReadBuffer&, char const*) @ 0x00000000201d3287 5. void DB::readDateTextImpl(LocalDate&, DB::ReadBuffer&, char const*) @ 0x000000000961e173 6. bool DB::callOnIndexAndDataType::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, DB::(anonymous namespace)::BehaviourOnErrorFromString)&, DB::(anonymous namespace)::BehaviourOnErrorFromString>(DB::TypeIndex, DB::(anonymous namespace)::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, DB::(anonymous namespace)::BehaviourOnErrorFromString)&, DB::(anonymous namespace)::BehaviourOnErrorFromString&&) @ 0x0000000008dbc9a9 7. DB::(anonymous namespace)::FunctionConvert::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000008dad75f 8. DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d57db 9. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffeaa 10. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 11. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 12. DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000083d403f 13. COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000876e509 14. DB::(anonymous namespace)::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000086d2b34 15. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffeaa 16. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601e5f 17. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 18. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:124: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool, bool) const @ 0x0000000033a24ade 19. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:0: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000003b82c484 20. ./contrib/llvm-project/libcxx/include/__utility/swap.h:35: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000020acdc84 21. ./build_docker/./src/Processors/ISimpleTransform.cpp:99: DB::ISimpleTransform::work() @ 0x000000003ae66ecb 22. ./contrib/llvm-project/libcxx/include/list:588: DB::ExecutionThreadContext::executeTask() @ 0x000000003aed722d 23. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:273: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000003aea6166 24. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:410: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000003aea4223 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000003aea3c88 26. ./build_docker/./src/Processors/Executors/CompletedPipelineExecutor.cpp:57: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000003aea17d9 27. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x00000000202d03fd 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x00000000202e2944 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 47 out of 50 CREATE TABLE t__fuzz_46 ( `s` LowCardinality(Nullable(String)) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 48 out of 50 CREATE TABLE t__fuzz_47 ( `s` LowCardinality(Nullable(String)) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 49 out of 50 CREATE TABLE t__fuzz_48 ( `s` LowCardinality(Nullable(String)) ) ENGINE = Memory AS SELECT arrayJoin(['a', 'b', 'c']) Query succeeded, using this AST as a start Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 2 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 3 out of 1000 EXPLAIN AST graph = true SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'EXPLAIN AST graph = true SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "graph" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495f93b 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 4 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 5 out of 1000 SELECT round((sum(multiIf(in(s, toLowCardinality(toUInt256(1)), ('a', 'b')), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(in(s, toLowCardinality(toUInt256(1)), ('a', 'b')), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function 'in' expects 2 arguments. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2859: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b788a 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 6 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 7 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 8 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Invalid number of arguments for function multiIf: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::(anonymous namespace)::FunctionMultiIf::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001852617b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 26. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 9 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 10 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 11 out of 1000 SELECT round(toLowCardinality(materialize(1)), (sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round(toLowCardinality(materialize(1)), (sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'N' to function 'round'. Expected: The number of decimal places to round to, got: Float64: In scope SELECT round(toLowCardinality(materialize(1)), (sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ff035 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x000000000aa095da 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 12 out of 1000 SELECT round((sum(multiIf(in(('a', 'b')), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(in(('a', 'b')), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function 'in' expects 2 arguments. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2859: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b788a 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 13 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 14 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) WHERE toFixedString(toLowCardinality(' '), toLowCardinality(1)) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) WHERE toFixedString(toLowCardinality(' '), toLowCardinality(1))': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: LowCardinality(FixedString(1)). In query SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) WHERE toFixedString(toLowCardinality(' '), toLowCardinality(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 15 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 16 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 17 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count() RESPECT NULLS) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count() RESPECT NULLS) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function count does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x00000000306e43d6 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x00000000306df2f4 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc10d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 18 out of 1000 SELECT round((sum(multiIf(s IN toLowCardinality(('a', 'b')), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN toLowCardinality(('a', 'b')), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: DataTypeLowCardinality is supported only for numbers, strings, Date or DateTime, but got Tuple(String, String): In scope SELECT round((sum(multiIf(s IN toLowCardinality(('a', 'b')), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/DataTypes/DataTypeLowCardinality.cpp:38: DB::DataTypeLowCardinality::DataTypeLowCardinality(std::shared_ptr) @ 0x00000000323c9e66 5. std::shared_ptr std::allocate_shared[abi:v15007], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x000000001c64fee6 6. DB::(anonymous namespace)::FunctionToLowCardinality::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001c64fce4 7. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 8. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 9. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 10. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 11. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 31. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 Fuzzing step 19 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 20 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 21 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) PREWHERE t__fuzz_12 GROUP BY t__fuzz_35, nums__fuzz_35, arrayJoin(['a', 'b', 'c']), nums__fuzz_18 Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) PREWHERE t__fuzz_12 GROUP BY t__fuzz_35, nums__fuzz_35, arrayJoin(['a', 'b', 'c']), nums__fuzz_18': Received from localhost:9000. DB::Exception: Function sum does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x00000000306e43d6 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x00000000306df2f4 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc10d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 22 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 23 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) WHERE version_pair[materialize(1)] Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) WHERE version_pair[materialize(1)]': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) WHERE version_pair[materialize(1)]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 24 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 25 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 26 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 27 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 28 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 29 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 30 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 31 out of 1000 EXPLAIN PIPELINE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 32 out of 1000 EXPLAIN PIPELINE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 33 out of 1000 EXPLAIN AST SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 34 out of 1000 EXPLAIN AST SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 35 out of 1000 EXPLAIN AST SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 36 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 37 out of 1000 EXPLAIN QUERY TREE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 38 out of 1000 EXPLAIN QUERY TREE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 39 out of 1000 EXPLAIN QUERY TREE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 40 out of 1000 EXPLAIN QUERY TREE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 41 out of 1000 EXPLAIN QUERY TREE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 42 out of 1000 EXPLAIN QUERY TREE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 43 out of 1000 EXPLAIN QUERY TREE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 44 out of 1000 EXPLAIN QUERY TREE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 45 out of 1000 EXPLAIN ESTIMATE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 46 out of 1000 EXPLAIN ESTIMATE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 47 out of 1000 EXPLAIN ESTIMATE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 48 out of 1000 EXPLAIN ESTIMATE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 49 out of 1000 EXPLAIN ESTIMATE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 50 out of 1000 EXPLAIN ESTIMATE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 51 out of 1000 EXPLAIN ESTIMATE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 52 out of 1000 EXPLAIN SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 53 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 54 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 55 out of 1000 EXPLAIN SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 56 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 57 out of 1000 EXPLAIN QUERY TREE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 58 out of 1000 EXPLAIN QUERY TREE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 59 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 60 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 61 out of 1000 SELECT round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) PREWHERE toFixedString(toNullable(' '), toUInt256(1)) Error on processing query 'SELECT round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) PREWHERE toFixedString(toNullable(' '), toUInt256(1))': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: Nullable(FixedString(1)). In query SELECT round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) PREWHERE toFixedString(toNullable(' '), toUInt256(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 62 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 63 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 64 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 65 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 66 out of 1000 SELECT round(divide(sum(multiIf(s IN ('a', 'b'), materialize(toNullable(1)), 0)) IGNORE NULLS) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round(divide(sum(multiIf(s IN ('a', 'b'), materialize(toNullable(1)), 0)) IGNORE NULLS) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT round(divide(sum(multiIf(s IN ('a', 'b'), materialize(toNullable(1)), 0)) IGNORE NULLS) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 67 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 68 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 69 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 70 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) PREWHERE nums__fuzz_45 Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) PREWHERE nums__fuzz_45': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_45' in scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) PREWHERE nums__fuzz_45. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 71 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 72 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster(toLowCardinality(toUInt256(1)), 'test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster(toLowCardinality(toUInt256(1)), 'test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Argument 'cluster_name' must be a literal with type String, got UInt256. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, std::basic_string_view>>(int, FormatStringHelperImpl::type, std::type_identity>>::type, std::type_identity>>::type>, String const&, std::basic_string_view>&&, std::basic_string_view>&&) @ 0x0000000038d43597 4. ./build_docker/./src/Storages/checkAndGetLiteralArgument.cpp:39: String DB::checkAndGetLiteralArgument(DB::ASTLiteral const&, String const&) @ 0x0000000038d4184d 5. ./build_docker/./src/Storages/checkAndGetLiteralArgument.cpp:31: String DB::checkAndGetLiteralArgument(std::shared_ptr const&, String const&) @ 0x0000000038d40cf9 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3fd0 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 73 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 74 out of 1000 EXPLAIN `header, description` = true, actions = true, json = true SELECT toLowCardinality(toLowCardinality(1)), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'EXPLAIN `header, description` = true, actions = true, json = true SELECT toLowCardinality(toLowCardinality(1)), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown setting "header, description" for EXPLAIN PLAN query. Supported settings: sorting, optimize, indexes, json, actions, description, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000034980e77 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496d3ee 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 75 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * materialize(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 76 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * materialize(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 77 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * materialize(100)) AS r FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 78 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * materialize(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 79 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 80 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * materialize(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 81 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * materialize(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 82 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * materialize(100)) AS r FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 83 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * materialize(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 86 out of 1000 EXPLAIN SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * materialize(100)) AS r FROM cluster(currentDatabase(), t) Error on processing query 'EXPLAIN SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * materialize(100)) AS r FROM cluster(currentDatabase(), t)': Received from localhost:9000. DB::Exception: Table name was not found in function arguments. Table function 'cluster' requires from 0 to 4 parameters: [, , ] [, sharding_key]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&&) @ 0x000000002fde484a 4. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:179: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fddd80f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 87 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 88 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 89 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 90 out of 1000 SELECT round((sum(multiIf(nums__fuzz_39, s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(nums__fuzz_39, s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_39' in scope SELECT round((sum(multiIf(nums__fuzz_39, s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 91 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(toUInt128(1))), 0)) IGNORE NULLS / count()) * materialize(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 92 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), 0)) IGNORE NULLS / count()) * materialize(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), 0)) IGNORE NULLS / count()) * materialize(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), 0)) IGNORE NULLS / count()) * materialize(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 93 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(t__fuzz_25, 100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(t__fuzz_25, 100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_25' in scope SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(t__fuzz_25, 100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 94 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), toLowCardinality(toUInt128(1)), 0)) IGNORE NULLS / count()) * materialize(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), toLowCardinality(toUInt128(1)), 0)) IGNORE NULLS / count()) * materialize(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Cannot find column `sumIf(_CAST(_CAST('1'_LowCardinality(UInt128), 'LowCardinality(UInt128)'_String), 'UInt128'_String), in(__table1.s, __set_String_17134870102965116783_8223522690271391738))` in source stream, there are only columns: [sumIf(_CAST('1'_UInt128, 'UInt128'_String), in(__table1.s, __set_String_17134870102965116783_8223522690271391738)), count()]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000aa0996d 4. ./build_docker/./src/Interpreters/ActionsDAG.cpp:1505: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332738a8 5. ./build_docker/./src/Processors/QueryPlan/ConvertingActions.cpp:0: DB::addConvertingActions(DB::QueryPlan&, DB::Block const&, bool) @ 0x000000003bdfeeae 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::createLocalPlan(std::shared_ptr const&, DB::Block const&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long, bool) @ 0x000000003bdfd78b 7. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:161: DB::ClusterProxy::SelectStreamFactory::createForShardImpl(DB::Cluster::ShardInfo const&, std::shared_ptr const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>, bool)::$_0::operator()() const @ 0x0000000036f92d9c 8. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:234: DB::ClusterProxy::SelectStreamFactory::createForShardImpl(DB::Cluster::ShardInfo const&, std::shared_ptr const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>, bool) @ 0x0000000036f8e5fe 9. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:0: DB::ClusterProxy::SelectStreamFactory::createForShard(DB::Cluster::ShardInfo const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>) @ 0x0000000036f93901 10. ./build_docker/./src/Interpreters/ClusterProxy/executeQuery.cpp:0: DB::ClusterProxy::executeQuery(DB::QueryPlan&, DB::Block const&, DB::QueryProcessingStage::Enum, DB::StorageID const&, std::shared_ptr const&, DB::ClusterProxy::SelectStreamFactory&, std::shared_ptr, std::shared_ptr, DB::SelectQueryInfo const&, std::shared_ptr const&, String const&, DB::DistributedSettings const&, std::function (unsigned long)>, bool) @ 0x0000000036f59aff 11. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000038285416 12. ./src/Processors/QueryPlan/QueryPlan.h:53: DB::(anonymous namespace)::buildQueryPlanForTableExpression(std::shared_ptr, DB::SelectQueryInfo const&, DB::SelectQueryOptions const&, std::shared_ptr&, bool, bool) @ 0x0000000034d80c82 13. ./build_docker/./src/Planner/PlannerJoinTree.cpp:1777: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x0000000034d67094 14. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0b8de 15. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 16. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 95 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 96 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 SELECT round((sum(multiIf(in(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(in(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function 'in' expects 2 arguments. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2859: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b788a 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 98 out of 1000 SELECT round((sum(multiIf(in(nums__fuzz_39, s, ('a', 'b')), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(in(nums__fuzz_39, s, ('a', 'b')), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 'nums__fuzz_39' in scope SELECT round((sum(multiIf(in(nums__fuzz_39, s, ('a', 'b')), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 99 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 100 out of 1000 SELECT round((sum(multiIf(materialize(toLowCardinality(t__fuzz_25, 1)), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(materialize(toLowCardinality(t__fuzz_25, 1)), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_25' in scope SELECT round((sum(multiIf(materialize(toLowCardinality(t__fuzz_25, 1)), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 101 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 102 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 103 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 104 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 105 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 106 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 107 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 108 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 109 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 110 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 111 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 112 out of 1000 SELECT round(divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round(divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT round(divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 113 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 114 out of 1000 SELECT round(materialize(toLowCardinality(toFixedString(' '))), (sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round(materialize(toLowCardinality(toFixedString(' '))), (sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT round(materialize(toLowCardinality(toFixedString(' '))), (sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 115 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 SELECT round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function 'in' is supported only if second argument is constant or table expression. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/Planner/CollectSets.cpp:106: DB::(anonymous namespace)::CollectSetsVisitor::visitImpl(std::shared_ptr const&) @ 0x0000000033615758 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:66: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x0000000033611391 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 9. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 10. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 11. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 12. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 13. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 14. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 15. ./build_docker/./src/Planner/CollectSets.cpp:128: DB::collectSets(std::shared_ptr const&, DB::PlannerContext&) @ 0x000000003361122b 16. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d061a5 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 18. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::Planner(std::shared_ptr const&, DB::SelectQueryOptions&) @ 0x0000000034cf91d2 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:163: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceba7b 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 117 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 118 out of 1000 SELECT round(version_pair[materialize(1)], (sum(multiIf(s IN toLowCardinality(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round(version_pair[materialize(1)], (sum(multiIf(s IN toLowCardinality(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT round(version_pair[materialize(1)], (sum(multiIf(s IN toLowCardinality(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 119 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(toNullable(0)))) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 120 out of 1000 SELECT round(divide(count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round(divide(count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT round(divide(count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 121 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(toNullable(0)))) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 122 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, toNullable(0))) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 123 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, toNullable(0))) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 124 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 125 out of 1000 EXPLAIN PIPELINE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 126 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 127 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 128 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 129 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 130 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 131 out of 1000 EXPLAIN PIPELINE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 132 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 133 out of 1000 EXPLAIN AST SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 134 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 135 out of 1000 SELECT round((sum(multiIf(in(s, materialize(toFixedString(' ', 1)), ('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(in(s, materialize(toFixedString(' ', 1)), ('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function 'in' expects 2 arguments. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2859: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b788a 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 136 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 137 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 138 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 139 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 140 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 141 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 142 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 143 out of 1000 EXPLAIN PIPELINE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 144 out of 1000 EXPLAIN SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 145 out of 1000 EXPLAIN ESTIMATE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 146 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 147 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 148 out of 1000 SELECT round((sum(multiIf(in(s, toLowCardinality(1), ('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(in(s, toLowCardinality(1), ('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function 'in' expects 2 arguments. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2859: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b788a 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 149 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 150 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 151 out of 1000 EXPLAIN AST SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 153 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Invalid number of arguments for function multiIf: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::(anonymous namespace)::FunctionMultiIf::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001852617b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 26. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 154 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 155 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 156 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 157 out of 1000 SELECT round((sum(multiIf(version_pair, s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(version_pair, s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT round((sum(multiIf(version_pair, s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 158 out of 1000 SELECT round(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, divide(materialize(' ', 1), sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS, count()) * 100, count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, divide(materialize(' ', 1), sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS, count()) * 100, count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT round(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, divide(materialize(' ', 1), sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS, count()) * 100, count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 159 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', toNullable(toLowCardinality(1)), currentDatabase(t__fuzz_8), t) GROUP BY t__fuzz_8 Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', toNullable(toLowCardinality(1)), currentDatabase(t__fuzz_8), t) GROUP BY t__fuzz_8': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 160 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 161 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 162 out of 1000 EXPLAIN `header, description` = true SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'EXPLAIN `header, description` = true SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown setting "header, description" for EXPLAIN PLAN query. Supported settings: sorting, optimize, indexes, json, actions, description, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000034980e77 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496d3ee 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 163 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() RESPECT NULLS) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() RESPECT NULLS) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function count does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x00000000306e43d6 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x00000000306df2f4 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc10d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 164 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 165 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 166 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 167 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), toLowCardinality(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), toLowCardinality(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Cannot find column `sumIf(_CAST(_CAST(1_LowCardinality(UInt8), 'LowCardinality(UInt8)'_String), 'UInt8'_String), in(__table1.s, __set_String_17134870102965116783_8223522690271391738))` in source stream, there are only columns: [sumIf(_CAST(1_UInt8, 'UInt8'_String), in(__table1.s, __set_String_17134870102965116783_8223522690271391738)), count()]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000aa0996d 4. ./build_docker/./src/Interpreters/ActionsDAG.cpp:1505: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332738a8 5. ./build_docker/./src/Processors/QueryPlan/ConvertingActions.cpp:0: DB::addConvertingActions(DB::QueryPlan&, DB::Block const&, bool) @ 0x000000003bdfeeae 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::createLocalPlan(std::shared_ptr const&, DB::Block const&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long, bool) @ 0x000000003bdfd78b 7. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:161: DB::ClusterProxy::SelectStreamFactory::createForShardImpl(DB::Cluster::ShardInfo const&, std::shared_ptr const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>, bool)::$_0::operator()() const @ 0x0000000036f92d9c 8. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:234: DB::ClusterProxy::SelectStreamFactory::createForShardImpl(DB::Cluster::ShardInfo const&, std::shared_ptr const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>, bool) @ 0x0000000036f8e5fe 9. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:0: DB::ClusterProxy::SelectStreamFactory::createForShard(DB::Cluster::ShardInfo const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>) @ 0x0000000036f93901 10. ./build_docker/./src/Interpreters/ClusterProxy/executeQuery.cpp:0: DB::ClusterProxy::executeQuery(DB::QueryPlan&, DB::Block const&, DB::QueryProcessingStage::Enum, DB::StorageID const&, std::shared_ptr const&, DB::ClusterProxy::SelectStreamFactory&, std::shared_ptr, std::shared_ptr, DB::SelectQueryInfo const&, std::shared_ptr const&, String const&, DB::DistributedSettings const&, std::function (unsigned long)>, bool) @ 0x0000000036f59aff 11. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000038285416 12. ./src/Processors/QueryPlan/QueryPlan.h:53: DB::(anonymous namespace)::buildQueryPlanForTableExpression(std::shared_ptr, DB::SelectQueryInfo const&, DB::SelectQueryOptions const&, std::shared_ptr&, bool, bool) @ 0x0000000034d80c82 13. ./build_docker/./src/Planner/PlannerJoinTree.cpp:1777: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x0000000034d67094 14. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0b8de 15. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 16. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 168 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 169 out of 1000 SELECT round((sum(multiIf(1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS), t) Error on processing query 'SELECT round((sum(multiIf(1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS), t)': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(in(s, ('a', 'b')), 1, 0)) IGNORE NULLS is found in wrong place in query: While processing sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bc5 7. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 8. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:348: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a9a7 9. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 10. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 11. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 12. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 13. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825ead 14. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 170 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 171 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() RESPECT NULLS) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() RESPECT NULLS) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function count does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x00000000306e43d6 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x00000000306df2f4 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc10d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 172 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), toLowCardinality(1), 0)) IGNORE NULLS / count(toLowCardinality('test_cluster_two_shards'))) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), toLowCardinality(1), 0)) IGNORE NULLS / count(toLowCardinality('test_cluster_two_shards'))) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Cannot find column `sumIf(_CAST(_CAST(1_LowCardinality(UInt8), 'LowCardinality(UInt8)'_String), 'UInt8'_String), in(__table1.s, __set_String_17134870102965116783_8223522690271391738))` in source stream, there are only columns: [sumIf(_CAST(1_UInt8, 'UInt8'_String), in(__table1.s, __set_String_17134870102965116783_8223522690271391738)), count()]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000aa0996d 4. ./build_docker/./src/Interpreters/ActionsDAG.cpp:1505: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332738a8 5. ./build_docker/./src/Processors/QueryPlan/ConvertingActions.cpp:0: DB::addConvertingActions(DB::QueryPlan&, DB::Block const&, bool) @ 0x000000003bdfeeae 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::createLocalPlan(std::shared_ptr const&, DB::Block const&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long, bool) @ 0x000000003bdfd78b 7. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:161: DB::ClusterProxy::SelectStreamFactory::createForShardImpl(DB::Cluster::ShardInfo const&, std::shared_ptr const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>, bool)::$_0::operator()() const @ 0x0000000036f92d9c 8. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:234: DB::ClusterProxy::SelectStreamFactory::createForShardImpl(DB::Cluster::ShardInfo const&, std::shared_ptr const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>, bool) @ 0x0000000036f8e5fe 9. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:0: DB::ClusterProxy::SelectStreamFactory::createForShard(DB::Cluster::ShardInfo const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>) @ 0x0000000036f93901 10. ./build_docker/./src/Interpreters/ClusterProxy/executeQuery.cpp:0: DB::ClusterProxy::executeQuery(DB::QueryPlan&, DB::Block const&, DB::QueryProcessingStage::Enum, DB::StorageID const&, std::shared_ptr const&, DB::ClusterProxy::SelectStreamFactory&, std::shared_ptr, std::shared_ptr, DB::SelectQueryInfo const&, std::shared_ptr const&, String const&, DB::DistributedSettings const&, std::function (unsigned long)>, bool) @ 0x0000000036f59aff 11. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000038285416 12. ./src/Processors/QueryPlan/QueryPlan.h:53: DB::(anonymous namespace)::buildQueryPlanForTableExpression(std::shared_ptr, DB::SelectQueryInfo const&, DB::SelectQueryOptions const&, std::shared_ptr&, bool, bool) @ 0x0000000034d80c82 13. ./build_docker/./src/Planner/PlannerJoinTree.cpp:1777: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x0000000034d67094 14. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0b8de 15. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 16. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 173 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 174 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), nums__fuzz_6, t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), nums__fuzz_6, t)': Received from localhost:9000. DB::Exception: Table default.nums__fuzz_6 does not exist. Maybe you meant default.t__fuzz_6?. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&, String&&) @ 0x000000000861dc7f 4. ./build_docker/./src/Databases/IDatabase.cpp:39: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x0000000032b146ec 5. ./build_docker/./src/Interpreters/DatabaseCatalog.cpp:433: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000003399fc33 6. ./build_docker/./src/Interpreters/DatabaseCatalog.cpp:957: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x00000000339b4ac1 7. ./build_docker/./src/Storages/getStructureOfRemoteTable.cpp:54: DB::getStructureOfRemoteTableInShard(DB::Cluster const&, DB::Cluster::ShardInfo const&, DB::StorageID const&, std::shared_ptr, std::shared_ptr const&) @ 0x0000000038d4557f 8. ./contrib/boost/boost/multi_index_container.hpp:677: DB::getStructureOfRemoteTable(DB::Cluster const&, DB::StorageID const&, std::shared_ptr, std::shared_ptr const&) @ 0x0000000038d50473 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:596: DB::TableFunctionRemote::getActualTableStructure(std::shared_ptr, bool) const @ 0x000000002fde1389 10. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fddf87a 11. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 12. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 175 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 176 out of 1000 SELECT round(divide(sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS, t__fuzz_4, count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round(divide(sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS, t__fuzz_4, count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_4' in scope SELECT round(divide(sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS, t__fuzz_4, count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 177 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 178 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 179 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toUInt256(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toUInt256(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Illegal types Float64 and UInt256 of arguments of function multiply: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toUInt256(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000861f137 4. DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000018c9d407 5. DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001861c059 6. DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000a7caea3 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 180 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 181 out of 1000 SELECT round(divide(count()), (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Error on processing query 'SELECT round(divide(count()), (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT round(divide(count()), (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 182 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 183 out of 1000 EXPLAIN PIPELINE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 184 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 185 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 186 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 187 out of 1000 EXPLAIN SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 EXPLAIN SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 189 out of 1000 EXPLAIN QUERY TREE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 190 out of 1000 EXPLAIN QUERY TREE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 191 out of 1000 EXPLAIN ESTIMATE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 192 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentData. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 193 out of 1000 EXPLAIN ESTIMATE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 194 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentData. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 195 out of 1000 EXPLAIN PIPELINE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 196 out of 1000 EXPLAIN SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 197 out of 1000 EXPLAIN SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 198 out of 1000 EXPLAIN SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 199 out of 1000 EXPLAIN SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 200 out of 1000 EXPLAIN AST SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 201 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 202 out of 1000 SELECT round((sum(toLowCardinality(toFixedString(' ', 1)), multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(toLowCardinality(toFixedString(' ', 1)), multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Aggregate function sum requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./src/AggregateFunctions/FactoryHelpers.h:27: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSum(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000002d9e0f95 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:717: ? @ 0x000000002a2b4ea3 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:211: DB::AggregateFunctionFactory::getImpl(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x00000000306e2801 7. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:124: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dcf59 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 203 out of 1000 SELECT round((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', t) Error on processing query 'SELECT round((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', t)': Received from localhost:9000. DB::Exception: Table name was not found in function arguments. Table function 'cluster' requires from 0 to 4 parameters: [, , ] [, sharding_key]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&&) @ 0x000000002fde484a 4. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:179: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fddd80f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 204 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1)) IGNORE NULLS / count()) * toLowCardinality(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1)) IGNORE NULLS / count()) * toLowCardinality(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Invalid number of arguments for function multiIf: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1)) IGNORE NULLS / count()) * toLowCardinality(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::(anonymous namespace)::FunctionMultiIf::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001852617b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 26. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 205 out of 1000 SELECT round(divide(count() IGNORE NULLS) * toLowCardinality(toNullable(round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) RESPECT NULLS / count()) * 100), 100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round(divide(count() IGNORE NULLS) * toLowCardinality(toNullable(round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) RESPECT NULLS / count()) * 100), 100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT round(divide(count() IGNORE NULLS) * toLowCardinality(toNullable(round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) RESPECT NULLS / count()) * 100), 100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 206 out of 1000 SELECT round(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, t__fuzz_23, count(nums__fuzz_25)) * toNullable(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, t__fuzz_23, count(nums__fuzz_25)) * toNullable(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_23' in scope SELECT round(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, t__fuzz_23, count(nums__fuzz_25)) * toNullable(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 207 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 208 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 209 out of 1000 EXPLAIN PIPELINE header = true SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'EXPLAIN PIPELINE header = true SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 210 out of 1000 EXPLAIN PIPELINE SELECT round(multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(), sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toLowCardinality(toNullable(100)))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'EXPLAIN PIPELINE SELECT round(multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(), sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toLowCardinality(toNullable(100)))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT round(multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(), sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toLowCardinality(toNullable(100)))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 211 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 212 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 213 out of 1000 EXPLAIN PIPELINE compact = true SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 214 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 215 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toNullable(100))) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 216 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 217 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 218 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 219 out of 1000 SELECT round((sum(t__fuzz_43, multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(t__fuzz_43, multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_43' in scope SELECT round((sum(t__fuzz_43, multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 220 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 221 out of 1000 SELECT round(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0)), (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0)), (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'N' to function 'round'. Expected: The number of decimal places to round to, got: Float64: In scope SELECT round(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0)), (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception> const&, String, std::basic_string_view> const&, String>(int, FormatStringHelperImpl::type, std::type_identity> const&>::type, std::type_identity::type, std::type_identity> const&>::type, std::type_identity::type>, String&&, std::basic_string_view> const&, String&&, std::basic_string_view> const&, String&&) @ 0x00000000084076a7 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x00000000084008e1 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ff035 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x000000000aa095da 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 222 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(nums__fuzz_10, 100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(nums__fuzz_10, 100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_10' in scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(nums__fuzz_10, 100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 223 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 224 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 225 out of 1000 SELECT nums__fuzz_12, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT nums__fuzz_12, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_12' in scope SELECT nums__fuzz_12, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 226 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 227 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) WHERE nums__fuzz_25 Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) WHERE nums__fuzz_25': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_25' in scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) WHERE nums__fuzz_25. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 228 out of 1000 SELECT round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function 'in' is supported only if second argument is constant or table expression. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/Planner/CollectSets.cpp:106: DB::(anonymous namespace)::CollectSetsVisitor::visitImpl(std::shared_ptr const&) @ 0x0000000033615758 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:66: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x0000000033611391 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 9. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 10. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 11. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 12. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 13. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 14. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 15. ./build_docker/./src/Planner/CollectSets.cpp:128: DB::collectSets(std::shared_ptr const&, DB::PlannerContext&) @ 0x000000003361122b 16. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d061a5 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 18. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::Planner(std::shared_ptr const&, DB::SelectQueryOptions&) @ 0x0000000034cf91d2 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:163: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceba7b 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 229 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 230 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 231 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 232 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 233 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 234 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 235 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 236 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', (sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100, currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', (sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(in(s, ('a', 'b')), materialize(1), toLowCardinality(0))) IGNORE NULLS is found in wrong place in query: While processing sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bc5 7. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 8. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 9. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 10. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:348: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a9a7 11. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 12. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 13. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 14. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 15. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825ead 16. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 237 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, t__fuzz_24, toUInt128(0))) IGNORE NULLS / count()) * 100) AS r FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, t__fuzz_24, toUInt128(0))) IGNORE NULLS / count()) * 100) AS r FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_24' in scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, t__fuzz_24, toUInt128(0))) IGNORE NULLS / count()) * 100) AS r FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 238 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 239 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 240 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) Got boring AST Fuzzing step 241 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) GROUP BY 1 Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster('test_cluster_two_shards', currentDatabase(), t) GROUP BY 1': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS is found in GROUP BY in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x000000000df2a32d 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:43: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335a0c05 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335a09c1 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335a09c1 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335a09c1 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335a09c1 9. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335a09c1 10. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335a09c1 11. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335a09c1 12. ./build_docker/./src/Analyzer/AggregationUtils.cpp:70: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x00000000335a14c7 13. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000003359187f 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 242 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 243 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Got boring AST Fuzzing step 244 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Got boring AST Fuzzing step 245 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(toNullable(toUInt256(100)))) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(toNullable(toUInt256(100)))) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Illegal types Float64 and UInt256 of arguments of function multiply: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(toNullable(toUInt256(100)))) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000861f137 4. DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000018c9d407 5. DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001861c059 6. DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000a7caea3 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 246 out of 1000 SELECT round(multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS, toNullable(' ', 1), 100)) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Error on processing query 'SELECT round(multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS, toNullable(' ', 1), 100)) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT round(multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS, toNullable(' ', 1), 100)) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 247 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Got boring AST Fuzzing step 248 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function sum does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x00000000306e43d6 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x00000000306df2f4 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc10d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 249 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Got boring AST Fuzzing step 250 out of 1000 SELECT materialize(toLowCardinality(1)), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 251 out of 1000 SELECT materialize(toLowCardinality(1)), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Got boring AST Fuzzing step 252 out of 1000 EXPLAIN SYNTAX SELECT materialize(1), round(multiply(sum(multiIf(s IN toNullable(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS)) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Error on processing query 'EXPLAIN SYNTAX SELECT materialize(1), round(multiply(sum(multiIf(s IN toNullable(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS)) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Nested type Tuple(String, String) cannot be inside Nullable type: While processing toNullable(('a', 'b')): While processing if(s IN toNullable(('a', 'b')), 1, 0): While processing SELECT materialize(1), round(multiply(sum(if(s IN toNullable(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS)) AS r FROM cluster('test_cluster_two_shards', 'default', 't'). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/DataTypes/DataTypeNullable.cpp:30: DB::DataTypeNullable::DataTypeNullable(std::shared_ptr const&) @ 0x000000003244ee8d 5. ./contrib/llvm-project/libcxx/include/__memory/allocation_guard.h:66: std::shared_ptr std::allocate_shared[abi:v15007], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x000000002fda8783 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:0: DB::makeNullable(std::shared_ptr const&) @ 0x0000000032451783 7. DB::(anonymous namespace)::FunctionToNullable::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001c67b35a 8. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 9. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 10. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 11. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 12. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 13. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 15. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 18. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 19. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1823: DB::ExpressionAnalyzer::getConstActionsDAG(std::vector> const&) @ 0x0000000033aaae45 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x000000003582280b 22. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x0000000033b03453 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1492: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x0000000033b35268 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1d35e 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 27. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 28. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 29. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 31. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1411: DB::SelectQueryExpressionAnalyzer::appendAggregateFunctionsArguments(DB::ExpressionActionsChain&, bool) @ 0x0000000033a9ca22 Fuzzing step 253 out of 1000 SELECT materialize(toLowCardinality(1)), round(multiply(sum(multiIf(s IN toNullable(('a', 'b')), 1, 0)) / count() IGNORE NULLS)) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Error on processing query 'SELECT materialize(toLowCardinality(1)), round(multiply(sum(multiIf(s IN toNullable(('a', 'b')), 1, 0)) / count() IGNORE NULLS)) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Nested type Tuple(String, String) cannot be inside Nullable type: In scope SELECT materialize(toLowCardinality(1)), round(multiply(sum(multiIf(s IN toNullable(('a', 'b')), 1, 0)) / count() IGNORE NULLS)) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/DataTypes/DataTypeNullable.cpp:30: DB::DataTypeNullable::DataTypeNullable(std::shared_ptr const&) @ 0x000000003244ee8d 5. ./contrib/llvm-project/libcxx/include/__memory/allocation_guard.h:66: std::shared_ptr std::allocate_shared[abi:v15007], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x000000002fda8783 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:0: DB::makeNullable(std::shared_ptr const&) @ 0x0000000032451783 7. DB::(anonymous namespace)::FunctionToNullable::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001c67b35a 8. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 9. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 10. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 11. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 12. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 29. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 Fuzzing step 254 out of 1000 SELECT toLowCardinality(1), round(t__fuzz_43, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Error on processing query 'SELECT toLowCardinality(1), round(t__fuzz_43, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_43' in scope SELECT toLowCardinality(1), round(t__fuzz_43, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 255 out of 1000 SELECT materialize(toLowCardinality((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * 100, 1)), round(materialize(materialize(' ')), divide(materialize(toNullable(1)), sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Error on processing query 'SELECT materialize(toLowCardinality((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * 100, 1)), round(materialize(materialize(' ')), divide(materialize(toNullable(1)), sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT materialize(toLowCardinality((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * 100, 1)), round(materialize(materialize(' ')), divide(materialize(toNullable(1)), sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 256 out of 1000 SELECT materialize(toLowCardinality(1)), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Got boring AST Fuzzing step 257 out of 1000 SELECT materialize(toLowCardinality(1)), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Got boring AST Fuzzing step 258 out of 1000 SELECT materialize(toLowCardinality(1)), round((sum(multiIf(in(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Error on processing query 'SELECT materialize(toLowCardinality(1)), round((sum(multiIf(in(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function 'in' expects 2 arguments. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2859: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b788a 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 259 out of 1000 SELECT materialize(toLowCardinality(1)), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Got boring AST Fuzzing step 260 out of 1000 SELECT materialize(toLowCardinality(1)), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Error on processing query 'SELECT materialize(toLowCardinality(1)), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function sum does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x00000000306e43d6 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x00000000306df2f4 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc10d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 261 out of 1000 SELECT materialize(toLowCardinality(1)), round((sum(multiIf(1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Error on processing query 'SELECT materialize(toLowCardinality(1)), round((sum(multiIf(1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Invalid number of arguments for function multiIf: In scope SELECT materialize(toLowCardinality(1)), round((sum(multiIf(1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::(anonymous namespace)::FunctionMultiIf::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001852617b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 26. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 262 out of 1000 SELECT materialize(toLowCardinality(1)), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) PREWHERE materialize(toFixedString(1)) Error on processing query 'SELECT materialize(toLowCardinality(1)), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) PREWHERE materialize(toFixedString(1))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT materialize(toLowCardinality(1)), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) PREWHERE materialize(toFixedString(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 263 out of 1000 SELECT materialize(toLowCardinality(1)), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Got boring AST Fuzzing step 264 out of 1000 SELECT materialize(toLowCardinality(1)), round(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Error on processing query 'SELECT materialize(toLowCardinality(1)), round(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT materialize(toLowCardinality(1)), round(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 265 out of 1000 SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster('test_cluster_two_shards', 23, currentDatabase(), t) Error on processing query 'SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster('test_cluster_two_shards', 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 266 out of 1000 SELECT materialize(toLowCardinality(1)), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) Got boring AST Fuzzing step 267 out of 1000 SELECT materialize(toLowCardinality(1)), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster('test_cluster_two_shards', 23, currentDatabase()) Error on processing query 'SELECT materialize(toLowCardinality(1)), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster('test_cluster_two_shards', 23, currentDatabase())': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 268 out of 1000 SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 269 out of 1000 SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), currentDatabase(), t) PREWHERE toFixedString(toLowCardinality(' '), 1) Error on processing query 'SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), currentDatabase(), t) PREWHERE toFixedString(toLowCardinality(' '), 1)': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: LowCardinality(FixedString(1)). In query SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), currentDatabase(), t) PREWHERE toFixedString(toLowCardinality(' '), 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 270 out of 1000 SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23, 23), currentDatabase(), t) Error on processing query 'SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 271 out of 1000 SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 272 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)), currentDatabase(), t) PREWHERE materialize(toNullable(toNullable(1))) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)), currentDatabase(), t) PREWHERE materialize(toNullable(toNullable(1)))': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 273 out of 1000 SELECT 1, round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 274 out of 1000 SELECT 1, round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(materialize(toLowCardinality(toFixedString(materialize(' '), toNullable(1)))), 100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toLowCardinality(23)), currentDatabase(), t) Error on processing query 'SELECT 1, round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(materialize(toLowCardinality(toFixedString(materialize(' '), toNullable(1)))), 100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toLowCardinality(23)), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 1, round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(materialize(toLowCardinality(toFixedString(materialize(' '), toNullable(1)))), 100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toLowCardinality(23)), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 275 out of 1000 SELECT 1, round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23), currentDatabase((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(materialize(toLowCardinality(toFixedString(' ', toNullable(1)))), 100)), t) Error on processing query 'SELECT 1, round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23), currentDatabase((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(materialize(toLowCardinality(toFixedString(' ', toNullable(1)))), 100)), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 276 out of 1000 SELECT 1, round((sum(multiIf(in(('a', 'b')), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) PREWHERE nums__fuzz_15 Error on processing query 'SELECT 1, round((sum(multiIf(in(('a', 'b')), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) PREWHERE nums__fuzz_15': Received from localhost:9000. DB::Exception: Function 'in' expects 2 arguments. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2859: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b788a 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 277 out of 1000 SELECT 1, round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Got boring AST Fuzzing step 278 out of 1000 SELECT 1, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(100)) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23), currentDatabase(), t) Error on processing query 'SELECT 1, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(100)) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 279 out of 1000 SELECT 1, round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Got boring AST Fuzzing step 280 out of 1000 SELECT 1, round((sum(multiIf(s IN ('a', 'b'), materialize(toNullable(1)), toLowCardinality(0))) / count() RESPECT NULLS) * toLowCardinality(100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Error on processing query 'SELECT 1, round((sum(multiIf(s IN ('a', 'b'), materialize(toNullable(1)), toLowCardinality(0))) / count() RESPECT NULLS) * toLowCardinality(100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function count does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x00000000306e43d6 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x00000000306df2f4 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc10d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 281 out of 1000 SELECT 1, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS, 23)), currentDatabase(), t) Error on processing query 'SELECT 1, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS, 23)), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(in(s, ('a', 'b')), materialize(1), toLowCardinality(0))) IGNORE NULLS is found in wrong place in query: While processing sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bc5 7. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 8. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 9. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 10. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:348: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a9a7 11. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 12. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 13. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 14. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 15. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 16. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 282 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 283 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(toFixedString(toLowCardinality(toFixedString(' ', 1)), 1), 100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(toFixedString(toLowCardinality(toFixedString(' ', 1)), 1), 100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(toFixedString(toLowCardinality(toFixedString(' ', 1)), 1), 100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 284 out of 1000 SELECT round((sum(multiIf(s IN toNullable(('a', 'b')), toLowCardinality(toUInt256(1)), toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) GROUP BY ' ', toUInt256(1), version_pair[materialize(1)], nums, toFixedString(' ', toLowCardinality(1)) Error on processing query 'SELECT round((sum(multiIf(s IN toNullable(('a', 'b')), toLowCardinality(toUInt256(1)), toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) GROUP BY ' ', toUInt256(1), version_pair[materialize(1)], nums, toFixedString(' ', toLowCardinality(1))': Received from localhost:9000. DB::Exception: Nested type Tuple(String, String) cannot be inside Nullable type: In scope SELECT round((sum(multiIf(s IN toNullable(('a', 'b')), toLowCardinality(toUInt256(1)), toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) GROUP BY ' ', toUInt256(1), version_pair[materialize(1)], nums, toFixedString(' ', toLowCardinality(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/DataTypes/DataTypeNullable.cpp:30: DB::DataTypeNullable::DataTypeNullable(std::shared_ptr const&) @ 0x000000003244ee8d 5. ./contrib/llvm-project/libcxx/include/__memory/allocation_guard.h:66: std::shared_ptr std::allocate_shared[abi:v15007], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x000000002fda8783 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:0: DB::makeNullable(std::shared_ptr const&) @ 0x0000000032451783 7. DB::(anonymous namespace)::FunctionToNullable::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001c67b35a 8. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 9. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 10. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 11. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 12. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 29. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 Fuzzing step 285 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count() IGNORE NULLS) * toLowCardinality(100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count() IGNORE NULLS) * toLowCardinality(100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function sum does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x00000000306e43d6 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x00000000306df2f4 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc10d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 286 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 287 out of 1000 EXPLAIN PIPELINE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(toLowCardinality(100)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(23)), currentDatabase(), t) Error on processing query 'EXPLAIN PIPELINE SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(toLowCardinality(100)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(23)), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(toLowCardinality(100)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(23)), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 288 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 289 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Got boring AST Fuzzing step 290 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * materialize(100)) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * materialize(100)) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 291 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 292 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 293 out of 1000 SELECT round(divide(nums__fuzz_19, sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT round(divide(nums__fuzz_19, sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round(divide(nums__fuzz_19, sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 294 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 295 out of 1000 EXPLAIN PIPELINE SELECT round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) RESPECT NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23), currentDatabase(), t) Error on processing query 'EXPLAIN PIPELINE SELECT round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) RESPECT NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function sum does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x00000000306e43d6 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x00000000306df2f4 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc10d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 27. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 28. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 296 out of 1000 SELECT round(multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() RESPECT NULLS)) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23), currentDatabase(), t) Error on processing query 'SELECT round(multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() RESPECT NULLS)) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function count does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x00000000306e43d6 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x00000000306df2f4 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc10d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 297 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23, currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 298 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 299 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23, 23), 23), currentDatabase(), t) PREWHERE cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23, 23), 23), currentDatabase(), t) PREWHERE cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23, 23), 23), currentDatabase(), t) PREWHERE cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 300 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 301 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), toLowCardinality(toUInt128(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), toLowCardinality(toUInt128(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Cannot find column `sumIf(_CAST(_CAST('1'_LowCardinality(UInt128), 'LowCardinality(UInt128)'_String), 'UInt128'_String), in(__table1.s, __set_String_17134870102965116783_8223522690271391738))` in source stream, there are only columns: [sumIf(_CAST('1'_UInt128, 'UInt128'_String), in(__table1.s, __set_String_17134870102965116783_8223522690271391738)), count()]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000aa0996d 4. ./build_docker/./src/Interpreters/ActionsDAG.cpp:1505: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332738a8 5. ./build_docker/./src/Processors/QueryPlan/ConvertingActions.cpp:0: DB::addConvertingActions(DB::QueryPlan&, DB::Block const&, bool) @ 0x000000003bdfeeae 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::createLocalPlan(std::shared_ptr const&, DB::Block const&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long, bool) @ 0x000000003bdfd78b 7. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:161: DB::ClusterProxy::SelectStreamFactory::createForShardImpl(DB::Cluster::ShardInfo const&, std::shared_ptr const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>, bool)::$_0::operator()() const @ 0x0000000036f92d9c 8. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:234: DB::ClusterProxy::SelectStreamFactory::createForShardImpl(DB::Cluster::ShardInfo const&, std::shared_ptr const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>, bool) @ 0x0000000036f8e5fe 9. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:0: DB::ClusterProxy::SelectStreamFactory::createForShard(DB::Cluster::ShardInfo const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>) @ 0x0000000036f93901 10. ./build_docker/./src/Interpreters/ClusterProxy/executeQuery.cpp:0: DB::ClusterProxy::executeQuery(DB::QueryPlan&, DB::Block const&, DB::QueryProcessingStage::Enum, DB::StorageID const&, std::shared_ptr const&, DB::ClusterProxy::SelectStreamFactory&, std::shared_ptr, std::shared_ptr, DB::SelectQueryInfo const&, std::shared_ptr const&, String const&, DB::DistributedSettings const&, std::function (unsigned long)>, bool) @ 0x0000000036f59aff 11. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000038285416 12. ./src/Processors/QueryPlan/QueryPlan.h:53: DB::(anonymous namespace)::buildQueryPlanForTableExpression(std::shared_ptr, DB::SelectQueryInfo const&, DB::SelectQueryOptions const&, std::shared_ptr&, bool, bool) @ 0x0000000034d80c82 13. ./build_docker/./src/Planner/PlannerJoinTree.cpp:1777: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x0000000034d67094 14. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0b8de 15. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 16. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 302 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 303 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, materialize(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), toLowCardinality(23)), 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, materialize(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), toLowCardinality(23)), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, materialize(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), toLowCardinality(23)), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 304 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23)), 23), currentDatabase()) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23)), 23), currentDatabase())': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23)), 23), currentDatabase()). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 305 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 306 out of 1000 EXPLAIN AST graph = true SELECT round(multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() RESPECT NULLS)) AS r FROM cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23, 23), 23), currentDatabase(), t) Error on processing query 'EXPLAIN AST graph = true SELECT round(multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() RESPECT NULLS)) AS r FROM cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23, 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "graph" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495f93b 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 307 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 308 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 309 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() RESPECT NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() RESPECT NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function count does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x00000000306e43d6 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x00000000306df2f4 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc10d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 310 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 311 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(1))))), 23)), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(1))))), 23)), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(1))))), 23)), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 312 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toUInt256(100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) PREWHERE toFixedString(' ', toNullable(1)) GROUP BY toLowCardinality(materialize(1)), version_pair[toLowCardinality(1)] Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toUInt256(100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) PREWHERE toFixedString(' ', toNullable(1)) GROUP BY toLowCardinality(materialize(1)), version_pair[toLowCardinality(1)]': Received from localhost:9000. DB::Exception: Illegal types Float64 and UInt256 of arguments of function multiply: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toUInt256(100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) PREWHERE toFixedString(' ', toNullable(1)) GROUP BY toLowCardinality(materialize(1)), version_pair[toLowCardinality(1)]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000861f137 4. DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000018c9d407 5. DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001861c059 6. DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000a7caea3 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 313 out of 1000 SELECT round(divide(count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Error on processing query 'SELECT round(divide(count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT round(divide(count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 314 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 315 out of 1000 SELECT round(multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS)) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t) Error on processing query 'SELECT round(multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS)) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 316 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 317 out of 1000 SELECT round(multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS, nums, 100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Error on processing query 'SELECT round(multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS, nums, 100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums' in scope SELECT round(multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS, nums, 100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 318 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 319 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 320 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), materialize(23)), 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), materialize(23)), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), materialize(23)), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 321 out of 1000 SELECT round((sum(multiIf(in(s, toNullable(toFixedString(' ', toLowCardinality(toUInt256(1)))), ('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(in(s, toNullable(toFixedString(' ', toLowCardinality(toUInt256(1)))), ('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function 'in' expects 2 arguments. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2859: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b788a 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 322 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 323 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toNullable(' '), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toNullable(' '), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Requested cluster ' ' not found. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/Interpreters/Context.cpp:3961: DB::Context::getCluster(String const&) const @ 0x0000000033788761 5. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd9095 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 324 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 325 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 326 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 327 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 328 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), materialize(toLowCardinality(toUInt128(23)))), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), materialize(toLowCardinality(toUInt128(23)))), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), materialize(toLowCardinality(toUInt128(23)))), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 329 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toUInt256(100)) AS r FROM cluster(toFixedString(toFixedString(23), 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toUInt256(100)) AS r FROM cluster(toFixedString(toFixedString(23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toUInt256(100)) AS r FROM cluster(toFixedString(toFixedString(23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 330 out of 1000 SELECT round(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Error on processing query 'SELECT round(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT round(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 331 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toFixedString(toLowCardinality(23), 'test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toFixedString(toLowCardinality(23), 'test_cluster_two_shards', 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(in(s, ('a', 'b')), 1, toLowCardinality(0))) IGNORE NULLS is found in wrong place in query: While processing sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bc5 7. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 8. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 9. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 10. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:348: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a9a7 11. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 12. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 13. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 14. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 15. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 16. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 332 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) PREWHERE round(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, toNullable(toNullable(materialize(1))), count()) * 100) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) PREWHERE round(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, toNullable(toNullable(materialize(1))), count()) * 100)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) PREWHERE round(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, toNullable(toNullable(materialize(1))), count()) * 100). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 333 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * materialize(toNullable(100))) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * materialize(toNullable(100))) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * materialize(toNullable(100))) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 334 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 335 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 336 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 337 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(currentDatabase(), t)': Received from localhost:9000. DB::Exception: Table name was not found in function arguments. Table function 'cluster' requires from 0 to 4 parameters: [, , ] [, sharding_key]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&&) @ 0x000000002fde484a 4. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:179: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fddd80f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 338 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, round((sum(multiIf(s IN ('a', 'b'), toNullable(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100), 0)) RESPECT NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, round((sum(multiIf(s IN ('a', 'b'), toNullable(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100), 0)) RESPECT NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Invalid number of arguments for function multiIf: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, round((sum(multiIf(s IN ('a', 'b'), toNullable(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100), 0)) RESPECT NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::(anonymous namespace)::FunctionMultiIf::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001852617b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 26. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 339 out of 1000 EXPLAIN PIPELINE header = true SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t) Error on processing query 'EXPLAIN PIPELINE header = true SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 340 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 341 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 342 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 343 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), materialize(23)), currentDatabase(), t) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), materialize(23)), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 344 out of 1000 SELECT round(multiply(round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * 100), sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS, 100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Error on processing query 'SELECT round(multiply(round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * 100), sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS, 100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT round(multiply(round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * 100), sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS, 100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 345 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 346 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 347 out of 1000 SELECT round((sum(multiIf(s IN toLowCardinality(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100, 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN toLowCardinality(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(in(s, ('a', 'b')), 1, 0)) IGNORE NULLS is found in wrong place in query: While processing sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bc5 7. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 8. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 9. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 10. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 11. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 12. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:348: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a9a7 13. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 14. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 15. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 16. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 17. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 18. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 348 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t) GROUP BY 1, toLowCardinality(1), toUInt128(toNullable(1)) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t) GROUP BY 1, toLowCardinality(1), toUInt128(toNullable(1))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t) GROUP BY 1, toLowCardinality(1), toUInt128(toNullable(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 349 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 350 out of 1000 SELECT round((sum(multiIf(in(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(in(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(in(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 351 out of 1000 SELECT round((sum(multiIf(materialize(toLowCardinality(1)), s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(materialize(toLowCardinality(1)), s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 352 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), toNullable(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), multiIf(s IN ('a', 'b'), 1, t__fuzz_43, 0), 23), 23), currentDatabase(), t) Error on processing query 'EXPLAIN SYNTAX SELECT round((sum(multiIf(s IN ('a', 'b'), toNullable(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), multiIf(s IN ('a', 'b'), 1, t__fuzz_43, 0), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Missing columns: 't__fuzz_43' 's' while processing query: 'toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), multiIf(s IN ('a', 'b'), 1, t__fuzz_43, 0), 23), 23)', required columns: 's' 't__fuzz_43' 's' 't__fuzz_43': While processing SELECT round((sum(multiIf(s IN ('a', 'b'), toNullable(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), multiIf(s IN ('a', 'b'), 1, t__fuzz_43, 0), 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 8. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 9. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000003070c298 11. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x0000000033745c28 12. ./build_docker/./src/Interpreters/JoinedTables.cpp:0: DB::JoinedTables::getLeftTableStorage() @ 0x0000000034ee2c6c 13. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034befcd8 14. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 15. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 17. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 18. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 19. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 20. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 353 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 354 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) PREWHERE nums__fuzz_19 Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) PREWHERE nums__fuzz_19': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_19' in scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) PREWHERE nums__fuzz_19. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 355 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), round(divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()) * 100), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), round(divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()) * 100), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(in(s, ('a', 'b')), 1, toLowCardinality(0))) IGNORE NULLS is found in wrong place in query: While processing sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bc5 7. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 8. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 9. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 10. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 11. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 12. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:348: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a9a7 13. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 14. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 15. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 16. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 17. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825ead 18. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 356 out of 1000 SELECT round(multiply(cluster('test_cluster_two_shards', currentDatabase(), t), sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS, 100)) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t) Error on processing query 'SELECT round(multiply(cluster('test_cluster_two_shards', currentDatabase(), t), sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS, 100)) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round(multiply(cluster('test_cluster_two_shards', currentDatabase(), t), sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS, 100)) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 357 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 358 out of 1000 SELECT round(multiply(sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS, nums__fuzz_41, 100)) AS r FROM cluster(toNullable(materialize(1)), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Error on processing query 'SELECT round(multiply(sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS, nums__fuzz_41, 100)) AS r FROM cluster(toNullable(materialize(1)), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): toNullable(materialize(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 8. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 359 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 360 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(23), currentDatabase(), t) PREWHERE multiIf(s IN ('a', 'b'), 1, 0) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(23), currentDatabase(), t) PREWHERE multiIf(s IN ('a', 'b'), 1, 0)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(23), currentDatabase(), t) PREWHERE multiIf(s IN ('a', 'b'), 1, 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 361 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 362 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Invalid number of arguments for function multiIf: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::(anonymous namespace)::FunctionMultiIf::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001852617b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 26. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 363 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 364 out of 1000 EXPLAIN SYNTAX SELECT round((sum(multiIf(in(toLowCardinality(materialize(1)), s, ('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Error on processing query 'EXPLAIN SYNTAX SELECT round((sum(multiIf(in(toLowCardinality(materialize(1)), s, ('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Wrong number of arguments passed to function in. Expected: 2, passed: 3: While processing SELECT round((sum(multiIf(in(toLowCardinality(materialize(1)), s, ('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000a7e012a 4. ./src/Interpreters/misc.h:45: DB::ApplyWithSubqueryVisitor::visit(DB::ASTFunction&, DB::ApplyWithSubqueryVisitor::Data const&) @ 0x00000000336185f5 5. ./build_docker/./src/Interpreters/ApplyWithSubqueryVisitor.cpp:33: DB::ApplyWithSubqueryVisitor::visit(std::shared_ptr&, DB::ApplyWithSubqueryVisitor::Data const&) @ 0x0000000033616477 6. ./build_docker/./src/Interpreters/ApplyWithSubqueryVisitor.cpp:26: DB::ApplyWithSubqueryVisitor::visit(std::shared_ptr&, DB::ApplyWithSubqueryVisitor::Data const&) @ 0x00000000336162ba 7. ./build_docker/./src/Interpreters/ApplyWithSubqueryVisitor.cpp:26: DB::ApplyWithSubqueryVisitor::visit(std::shared_ptr&, DB::ApplyWithSubqueryVisitor::Data const&) @ 0x00000000336162ba 8. ./build_docker/./src/Interpreters/ApplyWithSubqueryVisitor.cpp:26: DB::ApplyWithSubqueryVisitor::visit(std::shared_ptr&, DB::ApplyWithSubqueryVisitor::Data const&) @ 0x00000000336162ba 9. ./build_docker/./src/Interpreters/ApplyWithSubqueryVisitor.cpp:26: DB::ApplyWithSubqueryVisitor::visit(std::shared_ptr&, DB::ApplyWithSubqueryVisitor::Data const&) @ 0x00000000336162ba 10. ./build_docker/./src/Interpreters/ApplyWithSubqueryVisitor.cpp:26: DB::ApplyWithSubqueryVisitor::visit(std::shared_ptr&, DB::ApplyWithSubqueryVisitor::Data const&) @ 0x00000000336162ba 11. ./build_docker/./src/Interpreters/ApplyWithSubqueryVisitor.cpp:26: DB::ApplyWithSubqueryVisitor::visit(std::shared_ptr&, DB::ApplyWithSubqueryVisitor::Data const&) @ 0x00000000336162ba 12. ./build_docker/./src/Interpreters/ApplyWithSubqueryVisitor.cpp:26: DB::ApplyWithSubqueryVisitor::visit(std::shared_ptr&, DB::ApplyWithSubqueryVisitor::Data const&) @ 0x00000000336162ba 13. ./build_docker/./src/Interpreters/ApplyWithSubqueryVisitor.cpp:26: DB::ApplyWithSubqueryVisitor::visit(std::shared_ptr&, DB::ApplyWithSubqueryVisitor::Data const&) @ 0x00000000336162ba 14. ./build_docker/./src/Interpreters/ApplyWithSubqueryVisitor.cpp:26: DB::ApplyWithSubqueryVisitor::visit(std::shared_ptr&, DB::ApplyWithSubqueryVisitor::Data const&) @ 0x00000000336162ba 15. ./build_docker/./src/Interpreters/ApplyWithSubqueryVisitor.cpp:26: DB::ApplyWithSubqueryVisitor::visit(std::shared_ptr&, DB::ApplyWithSubqueryVisitor::Data const&) @ 0x00000000336162ba 16. ./build_docker/./src/Interpreters/ApplyWithSubqueryVisitor.cpp:26: DB::ApplyWithSubqueryVisitor::visit(std::shared_ptr&, DB::ApplyWithSubqueryVisitor::Data const&) @ 0x00000000336162ba 17. ./build_docker/./src/Interpreters/ApplyWithSubqueryVisitor.cpp:52: DB::ApplyWithSubqueryVisitor::visit(DB::ASTSelectQuery&, DB::ApplyWithSubqueryVisitor::Data const&) @ 0x0000000033617397 18. ./build_docker/./src/Interpreters/ApplyWithSubqueryVisitor.cpp:0: DB::ApplyWithSubqueryVisitor::visit(std::shared_ptr&, DB::ApplyWithSubqueryVisitor::Data const&) @ 0x00000000336161a0 19. ./src/Interpreters/ApplyWithSubqueryVisitor.h:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034becd9f 20. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 22. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 23. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 24. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 25. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 27. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 28. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 365 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 366 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(n + 1) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(n + 1) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(n + 1) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 367 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 368 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(toFixedString(' ', 1, 1)), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(toFixedString(' ', 1, 1)), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(toFixedString(' ', 1, 1)), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 369 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 370 out of 1000 SELECT round((sum(toLowCardinality(toFixedString(' ', toLowCardinality(1))), multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t) Error on processing query 'SELECT round((sum(toLowCardinality(toFixedString(' ', toLowCardinality(1))), multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 371 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) GROUP BY nums__fuzz_43, Memory Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) GROUP BY nums__fuzz_43, Memory': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_43' in scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) GROUP BY nums__fuzz_43, Memory. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 372 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), t)': Received from localhost:9000. DB::Exception: Table name was not found in function arguments. Table function 'cluster' requires from 0 to 4 parameters: [, , ] [, sharding_key]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&&) @ 0x000000002fde484a 4. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:179: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fddd80f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 373 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 374 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 'test_cluster_two_shards', 23), 23), currentDatabase(), t) Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 'test_cluster_two_shards', 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 'test_cluster_two_shards', 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 375 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 SELECT nums__fuzz_35, round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT nums__fuzz_35, round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT nums__fuzz_35, round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 377 out of 1000 SELECT toNullable(1), round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 378 out of 1000 SELECT toNullable(1), round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(' ', 1), toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Error on processing query 'SELECT toNullable(1), round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(' ', 1), toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toNullable(1), round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(' ', 1), toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 379 out of 1000 SELECT 1, round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t) Error on processing query 'SELECT 1, round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 380 out of 1000 SELECT toNullable(1), round((sum(multiIf(s IN toLowCardinality(('a', 'b')), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() RESPECT NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t) Error on processing query 'SELECT toNullable(1), round((sum(multiIf(s IN toLowCardinality(('a', 'b')), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() RESPECT NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 381 out of 1000 SELECT toNullable(1), round((sum(divide(count()), multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100), toLowCardinality(23)), 23), currentDatabase(), t) Error on processing query 'SELECT toNullable(1), round((sum(divide(count()), multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100), toLowCardinality(23)), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(in(s, ('a', 'b')), 1, 0)) IGNORE NULLS is found in wrong place in query: While processing sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bc5 7. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 8. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 9. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 10. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 11. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 12. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 13. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 14. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 15. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 16. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:348: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a9a7 17. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 18. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 19. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 20. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 21. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 22. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 382 out of 1000 SELECT toNullable(toUInt256(1)), round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 383 out of 1000 SELECT toUInt256(1), round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 384 out of 1000 SELECT toUInt256(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 385 out of 1000 SELECT 1, round((sum(multiIf(s IN ('a', 'b'), toNullable(materialize(toNullable(toNullable(1)))), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Error on processing query 'SELECT 1, round((sum(multiIf(s IN ('a', 'b'), toNullable(materialize(toNullable(toNullable(1)))), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Invalid number of arguments for function multiIf: In scope SELECT 1, round((sum(multiIf(s IN ('a', 'b'), toNullable(materialize(toNullable(toNullable(1)))), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::(anonymous namespace)::FunctionMultiIf::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001852617b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 26. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 386 out of 1000 SELECT toUInt256(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), sum(multiIf(nums__fuzz_46, s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(), 23), currentDatabase(), t) WHERE t__fuzz_6 Error on processing query 'SELECT toUInt256(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), sum(multiIf(nums__fuzz_46, s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(), 23), currentDatabase(), t) WHERE t__fuzz_6': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(nums__fuzz_46, in(s, ('a', 'b')), 1, 0)) IGNORE NULLS is found in wrong place in query: While processing sum(multiIf(nums__fuzz_46, s IN ('a', 'b'), 1, 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bc5 7. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 8. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 9. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 10. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:348: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a9a7 11. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 12. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 13. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 14. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 15. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 16. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 387 out of 1000 SELECT toUInt256(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t) Error on processing query 'SELECT toUInt256(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 388 out of 1000 SELECT 1, round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 389 out of 1000 SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 390 out of 1000 SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 391 out of 1000 SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, materialize(toUInt128(23))), currentDatabase(), t) Error on processing query 'SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, materialize(toUInt128(23))), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, materialize(toUInt128(23))), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 392 out of 1000 SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 393 out of 1000 SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 394 out of 1000 SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 395 out of 1000 SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 396 out of 1000 SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', materialize(23)), 23), 23), currentDatabase(), t) Error on processing query 'SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', materialize(23)), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', materialize(23)), 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 397 out of 1000 SELECT toUInt128(round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * materialize(100)), 1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t) Error on processing query 'SELECT toUInt128(round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * materialize(100)), 1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 398 out of 1000 EXPLAIN AST SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 399 out of 1000 EXPLAIN QUERY TREE SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 400 out of 1000 SELECT toUInt128(materialize(1)), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 401 out of 1000 SELECT toUInt128(materialize(1)), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT toUInt128(materialize(1)), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt128(materialize(1)), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 402 out of 1000 SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t) Error on processing query 'SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 403 out of 1000 SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(currentDatabase(), t) Error on processing query 'SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(currentDatabase(), t)': Received from localhost:9000. DB::Exception: Table name was not found in function arguments. Table function 'cluster' requires from 0 to 4 parameters: [, , ] [, sharding_key]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&&) @ 0x000000002fde484a 4. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:179: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fddd80f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 404 out of 1000 SELECT toUInt128(toLowCardinality(0), materialize(1)), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Error on processing query 'SELECT toUInt128(toLowCardinality(0), materialize(1)), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt128'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt128(toLowCardinality(0), materialize(1)), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000890dd2e 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000088e5f75 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 405 out of 1000 SELECT toUInt128(materialize(1)), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT toUInt128(materialize(1)), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt128(materialize(1)), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 406 out of 1000 SELECT toUInt128(materialize(1)), round(divide(sum(multiIf(s IN toLowCardinality(toNullable(('a', 'b'))), 1, 0)) IGNORE NULLS, divide(count()) * 100, count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t) PREWHERE toFixedString(toLowCardinality(' '), toLowCardinality(1)) Error on processing query 'SELECT toUInt128(materialize(1)), round(divide(sum(multiIf(s IN toLowCardinality(toNullable(('a', 'b'))), 1, 0)) IGNORE NULLS, divide(count()) * 100, count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t) PREWHERE toFixedString(toLowCardinality(' '), toLowCardinality(1))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt128(materialize(1)), round(divide(sum(multiIf(s IN toLowCardinality(toNullable(('a', 'b'))), 1, 0)) IGNORE NULLS, divide(count()) * 100, count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t) PREWHERE toFixedString(toLowCardinality(' '), toLowCardinality(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 407 out of 1000 SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(toNullable(' '), 1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), currentDatabase(), t) Error on processing query 'SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(toNullable(' '), 1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(toNullable(' '), 1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 408 out of 1000 SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt128(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 409 out of 1000 SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 410 out of 1000 SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 411 out of 1000 SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', materialize(toLowCardinality(23))), 23), 23), currentDatabase(), t) Error on processing query 'SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', materialize(toLowCardinality(23))), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', materialize(toLowCardinality(23))), 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 412 out of 1000 SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count(toFixedString(' ', toUInt256(1)))) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t) Error on processing query 'SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count(toFixedString(' ', toUInt256(1)))) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 413 out of 1000 SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 414 out of 1000 SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), currentDatabase(), t) WHERE toFixedString(' ', toLowCardinality(toUInt256(materialize(1)))) Error on processing query 'SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), currentDatabase(), t) WHERE toFixedString(' ', toLowCardinality(toUInt256(materialize(1))))': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), currentDatabase(), t) WHERE toFixedString(' ', toLowCardinality(toUInt256(materialize(1)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 415 out of 1000 SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(23), currentDatabase(), t) Error on processing query 'SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 416 out of 1000 SELECT materialize(1), round((sum(multiIf(s IN toNullable(('a', 'b')), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t) Error on processing query 'SELECT materialize(1), round((sum(multiIf(s IN toNullable(('a', 'b')), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 417 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(1), round(round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100), (sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(1), round(round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100), (sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('materialize'): materialize(1), round(round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100), (sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IG. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 418 out of 1000 SELECT materialize(1), round((sum(multiIf(toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Error on processing query 'SELECT materialize(1), round((sum(multiIf(toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Invalid number of arguments for function multiIf: In scope SELECT materialize(1), round((sum(multiIf(toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::(anonymous namespace)::FunctionMultiIf::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001852617b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 26. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 419 out of 1000 SELECT materialize(sum(multiIf(s IN ('a', 'b'), 1, 0)) / count(), 1), round((sum(multiIf(s IN ('a', 'b'), 1)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Error on processing query 'SELECT materialize(sum(multiIf(s IN ('a', 'b'), 1, 0)) / count(), 1), round((sum(multiIf(s IN ('a', 'b'), 1)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT materialize(sum(multiIf(s IN ('a', 'b'), 1, 0)) / count(), 1), round((sum(multiIf(s IN ('a', 'b'), 1)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 420 out of 1000 SELECT materialize(1), round(multiply(sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count(), toFixedString(' ', toLowCardinality(1)), 100)) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT materialize(1), round(multiply(sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count(), toFixedString(' ', toLowCardinality(1)), 100)) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT materialize(1), round(multiply(sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count(), toFixedString(' ', toLowCardinality(1)), 100)) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 421 out of 1000 SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 422 out of 1000 SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT materialize(1), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 423 out of 1000 SELECT 1, round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 424 out of 1000 SELECT 1, round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 425 out of 1000 SELECT 1, round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23), nums__fuzz_41, 23), currentDatabase(toLowCardinality(materialize(toLowCardinality(1)))), t) Error on processing query 'SELECT 1, round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23), nums__fuzz_41, 23), currentDatabase(toLowCardinality(materialize(toLowCardinality(1)))), t)': Received from localhost:9000. DB::Exception: Number of arguments for function currentDatabase doesn't match: passed 1, should be 0: In scope SELECT 1, round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23), nums__fuzz_41, 23), currentDatabase(toLowCardinality(materialize(toLowCardinality(1)))), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 426 out of 1000 SELECT 1, round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), 23, currentDatabase(), t) Error on processing query 'SELECT 1, round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 427 out of 1000 SELECT 1, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(toUInt256(23))), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 428 out of 1000 SELECT 1, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(toUInt256(23)), currentDatabase(), t) Error on processing query 'SELECT 1, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(toUInt256(23)), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt256, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 429 out of 1000 SELECT 1, round(t__fuzz_38, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(toUInt256(23))), currentDatabase(), t) Error on processing query 'SELECT 1, round(t__fuzz_38, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(toUInt256(23))), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_38' in scope SELECT 1, round(t__fuzz_38, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(toUInt256(23))), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 430 out of 1000 SELECT 1, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(toUInt256(23))), currentDatabase(), t) Error on processing query 'SELECT 1, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(toUInt256(23))), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(toUInt256(23))), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 431 out of 1000 SELECT 1, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 432 out of 1000 SELECT 1, round((sum(multiIf(in(round((sum(multiIf(s IN (('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * materialize(toLowCardinality(toFixedString(materialize(' '), toNullable(1)))), 100), s, ('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), currentDatabase(), t) Error on processing query 'SELECT 1, round((sum(multiIf(in(round((sum(multiIf(s IN (('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * materialize(toLowCardinality(toFixedString(materialize(' '), toNullable(1)))), 100), s, ('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, round((sum(multiIf(in(round((sum(multiIf(s IN tuple(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * materialize(toLowCardinality(toFixedString(materialize(' '), toNullable(1)))), 100), s, ('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 433 out of 1000 SELECT 1, toLowCardinality(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 434 out of 1000 SELECT 1, toLowCardinality(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23), currentDatabase(), t) Error on processing query 'SELECT 1, toLowCardinality(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 435 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23), currentDatabase(), t) Error on processing query 'SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 436 out of 1000 SELECT 1, toLowCardinality(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23)))), toLowCardinality(23)), currentDatabase(), t) Error on processing query 'SELECT 1, toLowCardinality(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23)))), toLowCardinality(23)), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, toLowCardinality(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23)))), toLowCardinality(23)), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 437 out of 1000 SELECT 1, toLowCardinality(23), round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), 23), currentDatabase(), t) Error on processing query 'SELECT 1, toLowCardinality(23), round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, toLowCardinality(23), round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 438 out of 1000 SELECT 1, toLowCardinality(23), round((sum(multiIf(in(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(toNullable(toUInt128(23)))))), currentDatabase(), t) Error on processing query 'SELECT 1, toLowCardinality(23), round((sum(multiIf(in(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(toNullable(toUInt128(23)))))), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, toLowCardinality(23), round((sum(multiIf(in(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(toNullable(toUInt128(23)))))), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 439 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 440 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(toLowCardinality(toNullable(23)))), toLowCardinality(toLowCardinality(toNullable(23)))), currentDatabase(), t) Error on processing query 'SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(toLowCardinality(toNullable(23)))), toLowCardinality(toLowCardinality(toNullable(23)))), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(toLowCardinality(toNullable(23)))), toLowCardinality(toLowCardinality(toNullable(23)))), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 441 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23)), currentDatabase(), t) GROUP BY materialize(toNullable(' ')), (sum(multiIf(s IN ('a', 'b'), toLowCardinality(1), 0)) IGNORE NULLS / count()) * materialize(100) Error on processing query 'SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23)), currentDatabase(), t) GROUP BY materialize(toNullable(' ')), (sum(multiIf(s IN ('a', 'b'), toLowCardinality(1), 0)) IGNORE NULLS / count()) * materialize(100)': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(s IN ('a', 'b'), toLowCardinality(1), 0)) IGNORE NULLS is found in GROUP BY in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x000000000df2a32d 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:43: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335a0c05 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335a09c1 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335a09c1 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335a09c1 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335a09c1 9. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335a09c1 10. ./build_docker/./src/Analyzer/AggregationUtils.cpp:70: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x00000000335a14c7 11. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000003359187f 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 442 out of 1000 SELECT 1, 23, round(multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(toNullable(toUInt128(cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), currentDatabase(), t), 23))))), toLowCardinality(23)), currentDatabase(), t) GROUP BY toLowCardinality(' '), 0, nums__fuzz_7 Error on processing query 'SELECT 1, 23, round(multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(toNullable(toUInt128(cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), currentDatabase(), t), 23))))), toLowCardinality(23)), currentDatabase(), t) GROUP BY toLowCardinality(' '), 0, nums__fuzz_7': Received from localhost:9000. DB::Exception: Missing columns: 't' while processing query: 'toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(toNullable(toUInt128(cluster(toFixedString(_CAST('test_cluster_two_shards', 'FixedString(23)'), 23), currentDatabase(), t), 23))))), toLowCardinality(23))', required columns: 't' 't'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 8. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 9. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 443 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23), currentDatabase(), t) Error on processing query 'SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 444 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23)))), 23), currentDatabase(), t) GROUP BY toLowCardinality(1), round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(materialize(1))), 0)) IGNORE NULLS / count()) * materialize(100)) Error on processing query 'SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23)))), 23), currentDatabase(), t) GROUP BY toLowCardinality(1), round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(materialize(1))), 0)) IGNORE NULLS / count()) * materialize(100))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23)))), 23), currentDatabase(), t) GROUP BY toLowCardinality(1), round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(materialize(1))), 0)) IGNORE NULLS / count()) * materialize(100)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 445 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN toLowCardinality(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23), currentDatabase(), t) Error on processing query 'SELECT 1, 23, round((sum(multiIf(s IN toLowCardinality(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 446 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23)), currentDatabase(), t) Got boring AST Fuzzing step 447 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23), currentDatabase(), t) Error on processing query 'SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 448 out of 1000 EXPLAIN SYNTAX SELECT 1, 23, round(t__fuzz_37, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toUInt128(23)))), 23), currentDatabase(), t) Error on processing query 'EXPLAIN SYNTAX SELECT 1, 23, round(t__fuzz_37, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toUInt128(23)))), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Missing columns: 't__fuzz_37' while processing query: 'SELECT 1, 23, round(t__fuzz_37, (sum(if(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster('test_cluster_two_shards', 'default', 't')', required columns: 't__fuzz_37' 's', maybe you meant: 's': While processing SELECT 1, 23, round(t__fuzz_37, (sum(if(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster('test_cluster_two_shards', 'default', 't'). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 449 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 450 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), 23), currentDatabase(), t) Got boring AST Fuzzing step 451 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), 23, currentDatabase(), t) Error on processing query 'SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 452 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23)))), 23), currentDatabase(), t) Error on processing query 'SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23)))), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23)))), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 453 out of 1000 SELECT 1, toNullable(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23)))), 23), currentDatabase(), t) Error on processing query 'SELECT 1, toNullable(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23)))), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, toNullable(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23)))), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 454 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toUInt128(23)))), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 455 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))), 23), currentDatabase(), t) Error on processing query 'SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 456 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toUInt128(23))), 23), currentDatabase(), t) Error on processing query 'SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toUInt128(23))), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toUInt128(23))), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 457 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toUInt128(23)))), 23, currentDatabase(), t) Error on processing query 'SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toUInt128(23)))), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 458 out of 1000 SELECT 1, 23, round(round(divide(count()) * 100), (sum(multiIf(s IN toLowCardinality(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toUInt128(23)))), 23), currentDatabase(), t) Error on processing query 'SELECT 1, 23, round(round(divide(count()) * 100), (sum(multiIf(s IN toLowCardinality(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toUInt128(23)))), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT 1, 23, round(round(divide(count()) * 100), (sum(multiIf(s IN toLowCardinality(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toUInt128(23)))), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 459 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, materialize(23)), toLowCardinality(toLowCardinality(toUInt128(23)))), 23), currentDatabase(), t) Error on processing query 'SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, materialize(23)), toLowCardinality(toLowCardinality(toUInt128(23)))), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, materialize(23)), toLowCardinality(toLowCardinality(toUInt128(23)))), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 460 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toNullable(materialize(materialize(1))), toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toUInt128(23)))), 23), currentDatabase(), t) Error on processing query 'SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toNullable(materialize(materialize(1))), toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toUInt128(23)))), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toNullable(materialize(materialize(1))), toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toUInt128(23)))), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 461 out of 1000 SELECT toLowCardinality(toUInt128(1)), 23, round((sum(multiIf(t__fuzz_40, s IN ('a', 'b'), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toUInt128(23)))), 23, currentDatabase(), t) Error on processing query 'SELECT toLowCardinality(toUInt128(1)), 23, round((sum(multiIf(t__fuzz_40, s IN ('a', 'b'), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toUInt128(23)))), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 462 out of 1000 SELECT 1, 23, round(nums__fuzz_14, (sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) RESPECT NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(toLowCardinality(toUInt128(23)))), 23), currentDatabase(), t) Error on processing query 'SELECT 1, 23, round(nums__fuzz_14, (sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) RESPECT NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(toLowCardinality(toUInt128(23)))), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23, round(nums__fuzz_14, (sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) RESPECT NULLS / count() IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(toLowCardinality(toUInt128(23)))), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 463 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 464 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23, currentDatabase(), t) Error on processing query 'SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 465 out of 1000 SELECT 1, 23, round((sum(multiIf(in(nums__fuzz_29, s, ('a', 'b')), materialize(1), 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100)), toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t) Error on processing query 'SELECT 1, 23, round((sum(multiIf(in(nums__fuzz_29, s, ('a', 'b')), materialize(1), 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100)), toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23, round((sum(multiIf(in(nums__fuzz_29, s, ('a', 'b')), materialize(1), 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100)), toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 466 out of 1000 SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 467 out of 1000 SELECT 1, 23, round((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t) Error on processing query 'SELECT 1, 23, round((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function 'in' expects 2 arguments. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2859: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b788a 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 468 out of 1000 SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23, currentDatabase(), t) Error on processing query 'SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 469 out of 1000 SELECT 1, materialize(23), round(multiply(100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100), t) Error on processing query 'SELECT 1, materialize(23), round(multiply(100)) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), round((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * 100), t)': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(in(s, ('a', 'b')), toUInt256(1), 0)) IGNORE NULLS is found in wrong place in query: While processing sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bc5 7. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 8. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 9. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 10. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 11. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 12. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:348: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a9a7 13. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 14. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 15. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 16. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 17. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 18. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd5a47 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 470 out of 1000 SELECT 1, materialize(t__fuzz_16, 23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t) Error on processing query 'SELECT 1, materialize(t__fuzz_16, 23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, materialize(t__fuzz_16, 23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 471 out of 1000 SELECT 1, materialize(toLowCardinality(23)), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), 23), currentDatabase(), t) PREWHERE sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS Error on processing query 'SELECT 1, materialize(toLowCardinality(23)), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), 23), currentDatabase(), t) PREWHERE sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS is found in PREWHERE in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x000000000df2a32d 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:43: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335a0c05 5. ./build_docker/./src/Analyzer/AggregationUtils.cpp:70: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x00000000335a14c7 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000335911a6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 472 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('1'): 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(toFixedString(toFixedString(toNullable('test_cluster_two_shard. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 473 out of 1000 SELECT 1, materialize(23), round(divide(' ', sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(t__fuzz_10, toFixedString(23), toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t) Error on processing query 'SELECT 1, materialize(23), round(divide(' ', sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(t__fuzz_10, toFixedString(23), toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Missing columns: 't__fuzz_10' while processing query: 'toFixedString(toFixedString(t__fuzz_10, toFixedString(23), toLowCardinality(toLowCardinality(23))), 23)', required columns: 't__fuzz_10' 't__fuzz_10'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 8. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 9. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 474 out of 1000 SELECT 1, 23, round((sum(multiIf(in(('a', 'b')), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t) Error on processing query 'SELECT 1, 23, round((sum(multiIf(in(('a', 'b')), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23, round((sum(multiIf(in(('a', 'b')), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 475 out of 1000 SELECT materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), 23), currentDatabase(), t) Error on processing query 'SELECT materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 476 out of 1000 SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(23)), 23), currentDatabase(), t) Error on processing query 'SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(23)), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(23)), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 477 out of 1000 SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t) Got boring AST Fuzzing step 478 out of 1000 SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23), currentDatabase()) Error on processing query 'SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23), currentDatabase())': Received from localhost:9000. DB::Exception: Table name was not found in function arguments. Table function 'cluster' requires from 0 to 4 parameters: [, , ] [, sharding_key]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&&) @ 0x000000002fde484a 4. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:179: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fddd80f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 479 out of 1000 SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t) Got boring AST Fuzzing step 480 out of 1000 SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t) Got boring AST Fuzzing step 481 out of 1000 SELECT 1, materialize(count(), 23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(23)), 23), currentDatabase(), t) Error on processing query 'SELECT 1, materialize(count(), 23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(23)), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, materialize(count(), 23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(23)), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 482 out of 1000 SELECT 1, materialize(nums__fuzz_8, 23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t) Error on processing query 'SELECT 1, materialize(nums__fuzz_8, 23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, materialize(nums__fuzz_8, 23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(23))), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 483 out of 1000 SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), 23), currentDatabase(), t) Error on processing query 'SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 484 out of 1000 SELECT 1, materialize(23), round(round((sum(multiIf(s IN ('a', 'b'), 1, toNullable(0))) IGNORE NULLS / count()) * 100), multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS)) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(t__fuzz_47, 23))), 23), currentDatabase(), t) Error on processing query 'SELECT 1, materialize(23), round(round((sum(multiIf(s IN ('a', 'b'), 1, toNullable(0))) IGNORE NULLS / count()) * 100), multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS)) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(t__fuzz_47, 23))), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Missing columns: 't__fuzz_47' while processing query: 'toFixedString(toFixedString(toFixedString(_CAST('test_cluster_two_shards', 'FixedString(23)'), 23), toLowCardinality(toLowCardinality(t__fuzz_47, 23))), 23)', required columns: 't__fuzz_47' 't__fuzz_47'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 8. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 9. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 485 out of 1000 SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(' '), toLowCardinality(1), toLowCardinality(23))), 23), currentDatabase(), t) Error on processing query 'SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(' '), toLowCardinality(1), toLowCardinality(23))), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 3, should be 1: In scope SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(' '), toLowCardinality(1), toLowCardinality(23))), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 486 out of 1000 SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 487 out of 1000 SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(23), toLowCardinality(23)), 23), currentDatabase(), t) Error on processing query 'SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(23), toLowCardinality(23)), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(23), toLowCardinality(23)), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 488 out of 1000 SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), 23), currentDatabase(), t) Got boring AST Fuzzing step 489 out of 1000 SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 490 out of 1000 SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23), currentDatabase(), t) Error on processing query 'SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 491 out of 1000 SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 492 out of 1000 SELECT 1, materialize(23), round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Error on processing query 'SELECT 1, materialize(23), round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Function 'in' is supported only if second argument is constant or table expression. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/Planner/CollectSets.cpp:106: DB::(anonymous namespace)::CollectSetsVisitor::visitImpl(std::shared_ptr const&) @ 0x0000000033615758 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:66: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x0000000033611391 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 9. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 10. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 11. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 12. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 13. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 14. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visitChildren(std::shared_ptr const&) @ 0x00000000336113a3 15. ./build_docker/./src/Planner/CollectSets.cpp:128: DB::collectSets(std::shared_ptr const&, DB::PlannerContext&) @ 0x000000003361122b 16. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d061a5 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 18. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::Planner(std::shared_ptr const&, DB::SelectQueryOptions&) @ 0x0000000034cf91d2 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:163: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceba7b 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 493 out of 1000 SELECT 1, materialize(materialize(23)), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23), currentDatabase(), t) Error on processing query 'SELECT 1, materialize(materialize(23)), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 494 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, toUInt256(1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, toUInt256(1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 495 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) GROUP BY toFixedString(toFixedString(' ', toNullable(1)), 1), sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS, sum(multiIf(s IN ('a', 'b'), materialize(toNullable(toNullable(1))), 1, 0)) IGNORE NULLS / count() IGNORE NULLS Error on processing query 'SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) GROUP BY toFixedString(toFixedString(' ', toNullable(1)), 1), sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS, sum(multiIf(s IN ('a', 'b'), materialize(toNullable(toNullable(1))), 1, 0)) IGNORE NULLS / count() IGNORE NULLS': Received from localhost:9000. DB::Exception: Function 'in' expects 2 arguments. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2859: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b788a 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 496 out of 1000 SELECT 1, materialize(23), round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Got boring AST Fuzzing step 497 out of 1000 SELECT 1, materialize(23), round(multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Error on processing query 'SELECT 1, materialize(23), round(multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT 1, materialize(23), round(multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS)) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 498 out of 1000 SELECT 1, materialize(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), 23), round((sum(multiIf(in(s, t__fuzz_28, ('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Error on processing query 'SELECT 1, materialize(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), 23), round((sum(multiIf(in(s, t__fuzz_28, ('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, materialize(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), 23), round((sum(multiIf(in(s, t__fuzz_28, ('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 499 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 500 out of 1000 SELECT 1, 23, round((sum(multiIf(in(toUInt256(materialize(toLowCardinality(1))), s, ('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t) Error on processing query 'SELECT 1, 23, round((sum(multiIf(in(toUInt256(materialize(toLowCardinality(1))), s, ('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23, round((sum(multiIf(in(toUInt256(materialize(toLowCardinality(1))), s, ('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 501 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(materialize(toNullable(' ')), toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) Error on processing query 'SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(materialize(toNullable(' ')), toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(materialize(toNullable(' ')), toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 503 out of 1000 EXPLAIN ESTIMATE SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(23)), currentDatabase(), t) Error on processing query 'EXPLAIN ESTIMATE SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(23)), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(23)), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 504 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Got boring AST Fuzzing step 505 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Got boring AST Fuzzing step 506 out of 1000 SELECT 1, 23, round((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100) AS r FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 507 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 508 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Got boring AST Fuzzing step 509 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Got boring AST Fuzzing step 510 out of 1000 EXPLAIN PIPELINE SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 511 out of 1000 EXPLAIN PIPELINE SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Got boring AST Fuzzing step 512 out of 1000 EXPLAIN SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 513 out of 1000 EXPLAIN SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Got boring AST Fuzzing step 514 out of 1000 EXPLAIN SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Got boring AST Fuzzing step 515 out of 1000 EXPLAIN AST SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 516 out of 1000 EXPLAIN AST SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Got boring AST Fuzzing step 517 out of 1000 EXPLAIN AST SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Got boring AST Fuzzing step 518 out of 1000 EXPLAIN SYNTAX SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 519 out of 1000 EXPLAIN SYNTAX SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Got boring AST Fuzzing step 520 out of 1000 EXPLAIN PIPELINE SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 EXPLAIN AST SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 522 out of 1000 EXPLAIN AST SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Got boring AST Fuzzing step 523 out of 1000 EXPLAIN AST SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Got boring AST Fuzzing step 524 out of 1000 EXPLAIN AST SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Got boring AST Fuzzing step 525 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('1'): 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 526 out of 1000 EXPLAIN AST SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Got boring AST Fuzzing step 527 out of 1000 EXPLAIN QUERY TREE SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 528 out of 1000 EXPLAIN QUERY TREE SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), currentDatabase(), t) Got boring AST Fuzzing step 529 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 530 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 531 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Got boring AST Fuzzing step 532 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(round(divide(count()) * 100), toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(round(divide(count()) * 100), toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT 1, 23 FROM cluster(toFixedString(round(divide(count()) * 100), toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 533 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23), currentDatabase(), t) Query succeeded, using this AST as a start Fuzzing step 534 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toNullable(23)), 23), currentDatabase(), t) Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toNullable(23)), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toNullable(23)), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 535 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23), 23), currentDatabase(), t) Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 536 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23, currentDatabase(), t) Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 537 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), currentDatabase(), t) Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 538 out of 1000 SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Query succeeded, using this AST as a start Fuzzing step 539 out of 1000 SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 540 out of 1000 SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 541 out of 1000 SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), materialize(toNullable(23))), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), materialize(toNullable(23))), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), materialize(toNullable(23))), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 542 out of 1000 SELECT 1 FROM cluster(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1 FROM cluster(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1 FROM cluster(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 543 out of 1000 SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), currentDatabase(), t) PREWHERE round((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) GROUP BY currentDatabase() Error on processing query 'SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), currentDatabase(), t) PREWHERE round((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Function 'in' expects 2 arguments. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2859: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b788a 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 544 out of 1000 SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23), currentDatabase(), t) PREWHERE sum(multiIf(s IN ('a', 'b'), toLowCardinality(toLowCardinality(toFixedString(' ', 1))), materialize(toUInt256(1)), 0)) IGNORE NULLS GROUP BY currentDatabase() Error on processing query 'SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23), currentDatabase(), t) PREWHERE sum(multiIf(s IN ('a', 'b'), toLowCardinality(toLowCardinality(toFixedString(' ', 1))), materialize(toUInt256(1)), 0)) IGNORE NULLS GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Invalid number of arguments for function multiIf: In scope SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23), currentDatabase(), t) PREWHERE sum(multiIf(s IN ('a', 'b'), toLowCardinality(toLowCardinality(toFixedString(' ', 1))), materialize(toUInt256(1)), 0)) IGNORE NULLS GROUP BY currentDatabase(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::(anonymous namespace)::FunctionMultiIf::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001852617b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 545 out of 1000 SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23), currentDatabase(), t) WHERE multiIf(s IN ('a', 'b'), toUInt128((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100, 1), 0) GROUP BY currentDatabase(toFixedString(' ', toLowCardinality(toUInt128(1)))) Error on processing query 'SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23), currentDatabase(), t) WHERE multiIf(s IN ('a', 'b'), toUInt128((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100, 1), 0) GROUP BY currentDatabase(toFixedString(' ', toLowCardinality(toUInt128(1))))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt128'. Expected 1 argument, got 2 arguments: In scope SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23), currentDatabase(), t) WHERE multiIf(s IN ('a', 'b'), toUInt128((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100, 1), 0) GROUP BY currentDatabase(toFixedString(' ', toLowCardinality(toUInt128(1)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000890dd2e 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000088e5f75 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 546 out of 1000 SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Got boring AST Fuzzing step 547 out of 1000 SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Query succeeded, using this AST as a start Fuzzing step 548 out of 1000 SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 549 out of 1000 SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Got boring AST Fuzzing step 550 out of 1000 SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Got boring AST Fuzzing step 551 out of 1000 SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), currentDatabase(), t__fuzz_25, t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), currentDatabase(), t__fuzz_25, t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, materialize(23) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), currentDatabase(), t__fuzz_25, t) GROUP BY currentDatabase(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 552 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Query succeeded, using this AST as a start Fuzzing step 553 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 554 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23), currentDatabase(), t) GROUP BY currentDatabase() Query succeeded, using this AST as a start Fuzzing step 555 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23), currentDatabase(), t) GROUP BY currentDatabase() Got boring AST Fuzzing step 556 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Query succeeded, using this AST as a start Fuzzing step 557 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23, currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 558 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Got boring AST Fuzzing step 559 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23, currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 560 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), 23), currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), 23), currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), 23), currentDatabase(), t) GROUP BY currentDatabase(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 561 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Got boring AST Fuzzing step 562 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)), 23), currentDatabase(), t) WITH TOTALS Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)), 23), currentDatabase(), t) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)), 23), currentDatabase(), t) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 563 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23, currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 564 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Query succeeded, using this AST as a start Fuzzing step 565 out of 1000 SELECT 1, (sum(multiIf(in(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, (sum(multiIf(in(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Function 'in' expects 2 arguments. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2859: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b788a 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 566 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Got boring AST Fuzzing step 567 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 568 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 23), currentDatabase(), t) PREWHERE toFixedString(' ', toUInt128(1), 1) GROUP BY currentDatabase() Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 23), currentDatabase(), t) PREWHERE toFixedString(' ', toUInt128(1), 1) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 23), currentDatabase(), t) PREWHERE toFixedString(' ', toUInt128(1), 1) GROUP BY currentDatabase(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 569 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 23, currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 570 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Got boring AST Fuzzing step 571 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), toLowCardinality(materialize(23))), 23), currentDatabase(), t) PREWHERE nums__fuzz_19 GROUP BY currentDatabase() Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), toLowCardinality(materialize(23))), 23), currentDatabase(), t) PREWHERE nums__fuzz_19 GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), toLowCardinality(materialize(23))), 23), currentDatabase(), t) PREWHERE nums__fuzz_19 GROUP BY currentDatabase(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 572 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 573 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 574 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23))), 23), currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23))), 23), currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23))), 23), currentDatabase(), t) GROUP BY currentDatabase(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 575 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 576 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(nums__fuzz_15, toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString(nums__fuzz_15, toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Missing columns: 'nums__fuzz_15' while processing query: 'toFixedString(toFixedString(nums__fuzz_15, toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23)', required columns: 'nums__fuzz_15' 'nums__fuzz_15'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 8. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 9. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 577 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23), 23), currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23), 23), currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23), 23), currentDatabase(), t) GROUP BY currentDatabase(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 578 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 579 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 23, currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 580 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 581 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Got boring AST Fuzzing step 582 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(toLowCardinality(toNullable(23)))), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Query succeeded, using this AST as a start Fuzzing step 583 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Query succeeded, using this AST as a start Fuzzing step 584 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23, currentDatabase(), t) WHERE materialize(t__fuzz_44, toLowCardinality(toFixedString(' ', 1))) GROUP BY currentDatabase() Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23, currentDatabase(), t) WHERE materialize(t__fuzz_44, toLowCardinality(toFixedString(' ', 1))) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 585 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23, currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 586 out of 1000 SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23), 23), currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23), 23), currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1, 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23), 23), currentDatabase(), t) GROUP BY currentDatabase(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 587 out of 1000 EXPLAIN PIPELINE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Query succeeded, using this AST as a start Fuzzing step 588 out of 1000 EXPLAIN PIPELINE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Got boring AST Fuzzing step 589 out of 1000 EXPLAIN PIPELINE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Got boring AST Fuzzing step 590 out of 1000 EXPLAIN PIPELINE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Got boring AST Fuzzing step 591 out of 1000 EXPLAIN PIPELINE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Got boring AST Fuzzing step 592 out of 1000 EXPLAIN QUERY TREE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Query succeeded, using this AST as a start Fuzzing step 593 out of 1000 EXPLAIN ESTIMATE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Query succeeded, using this AST as a start Fuzzing step 594 out of 1000 EXPLAIN ESTIMATE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Got boring AST Fuzzing step 595 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23), 23), currentDatabase(), t) GROUP BY currentDatabase() Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23), 23), currentDatabase(), t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23), 23), currentDatabase(), t) GROUP BY currentDatabase(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 596 out of 1000 SELECT materialize(toLowCardinality(toUInt256(23))) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() Query succeeded, using this AST as a start Fuzzing step 597 out of 1000 SELECT materialize(toLowCardinality(toUInt256(23))) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 23), currentDatabase(t__fuzz_7), t) GROUP BY currentDatabase() WITH TOTALS Error on processing query 'SELECT materialize(toLowCardinality(toUInt256(23))) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 23), currentDatabase(t__fuzz_7), t) GROUP BY currentDatabase() WITH TOTALS': Received from localhost:9000. DB::Exception: Missing columns: 't__fuzz_7' while processing query: 'currentDatabase(t__fuzz_7)', required columns: 't__fuzz_7' 't__fuzz_7'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 8. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825ead 9. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 598 out of 1000 SELECT materialize(toLowCardinality(toUInt256(23))) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23, currentDatabase(), t) WHERE round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) GROUP BY currentDatabase() Error on processing query 'SELECT materialize(toLowCardinality(toUInt256(23))) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23, currentDatabase(), t) WHERE round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 599 out of 1000 SELECT materialize(toUInt256(23)) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), toLowCardinality(23)), 23), currentDatabase(), t) PREWHERE round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS) * toLowCardinality(toUInt128(100))) GROUP BY currentDatabase() Error on processing query 'SELECT materialize(toUInt256(23)) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), toLowCardinality(23)), 23), currentDatabase(), t) PREWHERE round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS) * toLowCardinality(toUInt128(100))) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Illegal types Float64 and UInt128 of arguments of function multiply: In scope SELECT materialize(toUInt256(23)) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), toLowCardinality(23)), 23), currentDatabase(), t) PREWHERE round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS) * toLowCardinality(toUInt128(100))) GROUP BY currentDatabase(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000861f137 4. DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000018c9d407 5. DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001861c059 6. DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000a7caea3 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 600 out of 1000 SELECT materialize(toLowCardinality(toUInt256(23))) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() Query succeeded, using this AST as a start Fuzzing step 601 out of 1000 SELECT materialize(toLowCardinality(toUInt256(23))) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), 23), 23), currentDatabase(t__fuzz_24), t) GROUP BY currentDatabase() WITH TOTALS Error on processing query 'SELECT materialize(toLowCardinality(toUInt256(23))) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), 23), 23), currentDatabase(t__fuzz_24), t) GROUP BY currentDatabase() WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT materialize(toLowCardinality(toUInt256(23))) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), 23), 23), currentDatabase(t__fuzz_24), t) GROUP BY currentDatabase() WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 602 out of 1000 SELECT materialize(toLowCardinality(toUInt256(23))) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() Got boring AST Fuzzing step 603 out of 1000 SELECT materialize(toLowCardinality(toUInt256(23))) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t__fuzz_4, t) GROUP BY currentDatabase() Error on processing query 'SELECT materialize(toLowCardinality(toUInt256(23))) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t__fuzz_4, t) GROUP BY currentDatabase()': Received from localhost:9000. DB::Exception: Missing columns: 't' while processing query: 't', required columns: 't' 't'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Storages/StorageDistributed.cpp:213: DB::(anonymous namespace)::buildShardingKeyExpression(std::shared_ptr const&, std::shared_ptr, DB::NamesAndTypesList const&, bool) @ 0x00000000382711fa 6. ./build_docker/./src/Storages/StorageDistributed.cpp:0: DB::StorageDistributed::StorageDistributed(DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, String const&, String const&, String const&, std::shared_ptr, std::shared_ptr const&, String const&, String const&, DB::DistributedSettings const&, DB::LoadingStrictnessLevel, std::shared_ptr, std::shared_ptr, bool) @ 0x000000003826b69d 7. ./contrib/llvm-project/libcxx/include/__memory/construct_at.h:0: std::shared_ptr std::allocate_shared[abi:v15007], DB::StorageID, DB::ColumnsDescription&, DB::ConstraintsDescription, String, String const&, String const&, String, std::shared_ptr&, std::shared_ptr const&, String, String, DB::DistributedSettings, DB::LoadingStrictnessLevel, std::shared_ptr const&, std::shared_ptr const&, bool, void>(std::allocator const&, DB::StorageID&&, DB::ColumnsDescription&, DB::ConstraintsDescription&&, String&&, String const&, String const&, String&&, std::shared_ptr&, std::shared_ptr const&, String&&, String&&, DB::DistributedSettings&&, DB::LoadingStrictnessLevel&&, std::shared_ptr const&, std::shared_ptr const&, bool&&) @ 0x000000002fde8955 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: DB::TableFunctionRemote::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fde0297 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 604 out of 1000 SELECT materialize(toLowCardinality(toUInt256(23))) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() Got boring AST Fuzzing step 605 out of 1000 SELECT toLowCardinality(toUInt256(23)) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 606 out of 1000 SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) WHERE toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(1))))) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) WHERE toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(1))))) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: LowCardinality(Nullable(FixedString(1))). In query SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) WHERE toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(1))))) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 607 out of 1000 SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 608 out of 1000 SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 609 out of 1000 SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 610 out of 1000 SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 611 out of 1000 SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 612 out of 1000 SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 613 out of 1000 SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), toUInt128(23)), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 614 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 615 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 616 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 617 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 618 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 619 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 620 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 621 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 622 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 623 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 624 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 625 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 626 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 627 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 628 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 629 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 630 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 631 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 632 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 633 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 634 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 635 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 636 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 637 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 638 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 640 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 641 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 642 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 643 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 644 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 645 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 646 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 647 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 648 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 649 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 650 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 651 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 652 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 653 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 654 out of 1000 SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) PREWHERE toLowCardinality(0) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) PREWHERE toLowCardinality(0) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Storage Memory (table default.t (4624090b-03df-4e44-8220-488ad4fd171a)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:257: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000003360556e 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 7. ./src/Planner/Planner.h:56: DB::InterpreterSelectQueryAnalyzer::extractQueryPlan() && @ 0x0000000034cf61b2 8. ./build_docker/./src/Processors/QueryPlan/DistributedCreateLocalPlan.cpp:45: DB::createLocalPlan(std::shared_ptr const&, DB::Block const&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long, bool) @ 0x000000003bdfd5fc 9. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:161: DB::ClusterProxy::SelectStreamFactory::createForShardImpl(DB::Cluster::ShardInfo const&, std::shared_ptr const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>, bool)::$_0::operator()() const @ 0x0000000036f92d9c 10. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:234: DB::ClusterProxy::SelectStreamFactory::createForShardImpl(DB::Cluster::ShardInfo const&, std::shared_ptr const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>, bool) @ 0x0000000036f8e5fe 11. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:0: DB::ClusterProxy::SelectStreamFactory::createForShard(DB::Cluster::ShardInfo const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>) @ 0x0000000036f93901 12. ./build_docker/./src/Interpreters/ClusterProxy/executeQuery.cpp:0: DB::ClusterProxy::executeQuery(DB::QueryPlan&, DB::Block const&, DB::QueryProcessingStage::Enum, DB::StorageID const&, std::shared_ptr const&, DB::ClusterProxy::SelectStreamFactory&, std::shared_ptr, std::shared_ptr, DB::SelectQueryInfo const&, std::shared_ptr const&, String const&, DB::DistributedSettings const&, std::function (unsigned long)>, bool) @ 0x0000000036f59aff 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000038285416 14. ./src/Processors/QueryPlan/QueryPlan.h:53: DB::(anonymous namespace)::buildQueryPlanForTableExpression(std::shared_ptr, DB::SelectQueryInfo const&, DB::SelectQueryOptions const&, std::shared_ptr&, bool, bool) @ 0x0000000034d80c82 15. ./build_docker/./src/Planner/PlannerJoinTree.cpp:1777: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x0000000034d67094 16. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0b8de 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 655 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 656 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 657 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 658 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 659 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 660 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 661 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 663 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 664 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 665 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 666 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 667 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 668 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 669 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 670 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 671 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 672 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY GROUPING SETS ((currentDatabase())) WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY GROUPING SETS ((currentDatabase())) WITH CUBE': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343d54d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 673 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 674 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 675 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 676 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 677 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 678 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 679 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 680 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 681 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 682 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 683 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 684 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 685 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 686 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 687 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 688 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 689 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 690 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 691 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 692 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 693 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 694 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 695 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 696 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 697 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 698 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 699 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 700 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 701 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 702 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 703 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 704 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 705 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 706 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 707 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 708 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 709 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 710 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 711 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 712 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 713 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 714 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 715 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 716 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 717 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 718 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 719 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 720 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 721 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 722 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 723 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 724 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 725 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 726 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 727 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 728 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 729 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 730 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 731 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 732 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 733 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 734 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 735 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 736 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 737 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 738 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 739 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 740 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 742 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 743 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 744 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 745 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 746 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 747 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 748 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 749 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 750 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 751 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 752 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 753 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 754 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 755 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 756 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 757 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 758 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 759 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 760 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 761 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 762 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 763 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 764 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 765 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 766 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 767 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 768 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 769 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 770 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 771 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 772 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 773 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 774 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 775 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 776 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 777 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 778 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 779 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 780 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 781 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 782 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 783 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 784 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 785 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 786 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 787 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 788 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 789 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 790 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 791 out of 1000 EXPLAIN SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 792 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 793 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 794 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 795 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 796 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 797 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 798 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 799 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 800 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 801 out of 1000 EXPLAIN AST SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 802 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 803 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 804 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 805 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 806 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 807 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 808 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 809 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 810 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 811 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 812 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 813 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('toUInt256'): toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY curren. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 814 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 815 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 816 out of 1000 SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 817 out of 1000 SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 818 out of 1000 SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 819 out of 1000 SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(toLowCardinality(23))), 23), 23), currentDatabase(), t) WITH TOTALS Error on processing query 'SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(toLowCardinality(23))), 23), 23), currentDatabase(), t) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 820 out of 1000 SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 821 out of 1000 SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 822 out of 1000 SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 823 out of 1000 SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 824 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 825 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 826 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 827 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 828 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 829 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 830 out of 1000 SELECT 23 FROM cluster(t__fuzz_30, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(t__fuzz_30, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Requested cluster 't__fuzz_30' not found. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/Interpreters/Context.cpp:3961: DB::Context::getCluster(String const&) const @ 0x0000000033788761 5. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd9095 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 831 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 832 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 833 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), s, t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), s, t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Table default.s does not exist. Maybe you meant default.t?. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&, String&&) @ 0x000000000861dc7f 4. ./build_docker/./src/Databases/IDatabase.cpp:39: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x0000000032b146ec 5. ./build_docker/./src/Interpreters/DatabaseCatalog.cpp:433: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000003399fc33 6. ./build_docker/./src/Interpreters/DatabaseCatalog.cpp:957: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x00000000339b4ac1 7. ./build_docker/./src/Storages/getStructureOfRemoteTable.cpp:54: DB::getStructureOfRemoteTableInShard(DB::Cluster const&, DB::Cluster::ShardInfo const&, DB::StorageID const&, std::shared_ptr, std::shared_ptr const&) @ 0x0000000038d4557f 8. ./contrib/boost/boost/multi_index_container.hpp:677: DB::getStructureOfRemoteTable(DB::Cluster const&, DB::StorageID const&, std::shared_ptr, std::shared_ptr const&) @ 0x0000000038d50473 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:596: DB::TableFunctionRemote::getActualTableStructure(std::shared_ptr, bool) const @ 0x000000002fde1389 10. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fddf87a 11. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 12. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 834 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 835 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase()) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), currentDatabase()) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Table name was not found in function arguments. Table function 'cluster' requires from 0 to 4 parameters: [, , ] [, sharding_key]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&&) @ 0x000000002fde484a 4. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:179: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fddd80f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 836 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 837 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 838 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH ROLLUP WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH ROLLUP WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 193 ('CUBE'): CUBE. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 839 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 840 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * 100), 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * 100), 23 FROM cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 841 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality(toFixedString('test_cluster_two_shards', 23)), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 842 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 843 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 844 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 845 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 846 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 847 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 848 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 849 out of 1000 SELECT toFixedString(toFixedString('test_cluster_two_shards', 23, toNullable(toLowCardinality(23))), 23), 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT toFixedString(toFixedString('test_cluster_two_shards', 23, toNullable(toLowCardinality(23))), 23), 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString(toFixedString('test_cluster_two_shards', 23, toNullable(toLowCardinality(23))), 23), 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 850 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 851 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 852 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 853 out of 1000 SELECT toLowCardinality(toNullable(23)) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(t__fuzz_26, 23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT toLowCardinality(toNullable(23)) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(t__fuzz_26, 23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toLowCardinality(toNullable(23)) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(t__fuzz_26, 23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 854 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 855 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 856 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 857 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 858 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 859 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 860 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), materialize(toLowCardinality(23))), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), materialize(toLowCardinality(23))), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), materialize(toLowCardinality(23))), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 861 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 862 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 863 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 864 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 865 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 866 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 867 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 868 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 869 out of 1000 SELECT materialize(materialize(1), toLowCardinality(' ')), 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(23)), materialize(23)), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT materialize(materialize(1), toLowCardinality(' ')), 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(23)), materialize(23)), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT materialize(materialize(1), toLowCardinality(' ')), 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(23)), materialize(23)), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 870 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(toNullable(23))), toNullable(23)), 23), currentDatabase(), t) PREWHERE (sum(multiIf(in(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100 GROUP BY currentDatabase(m) WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(toNullable(23))), toNullable(23)), 23), currentDatabase(), t) PREWHERE (sum(multiIf(in(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100 GROUP BY currentDatabase(m) WITH CUBE': Received from localhost:9000. DB::Exception: Function 'in' expects 2 arguments. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2859: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b788a 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 871 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 872 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 873 out of 1000 EXPLAIN ESTIMATE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 874 out of 1000 EXPLAIN ESTIMATE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 875 out of 1000 EXPLAIN ESTIMATE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 876 out of 1000 EXPLAIN ESTIMATE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 877 out of 1000 EXPLAIN SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 878 out of 1000 EXPLAIN SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 879 out of 1000 EXPLAIN SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 880 out of 1000 EXPLAIN SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 881 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('23'): 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP B. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 882 out of 1000 EXPLAIN PIPELINE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 883 out of 1000 EXPLAIN SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 884 out of 1000 EXPLAIN SYNTAX SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 885 out of 1000 EXPLAIN SYNTAX SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 886 out of 1000 EXPLAIN SYNTAX SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 887 out of 1000 EXPLAIN SYNTAX SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 888 out of 1000 EXPLAIN ESTIMATE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 889 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('23'): 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP B. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 890 out of 1000 EXPLAIN ESTIMATE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 891 out of 1000 EXPLAIN ESTIMATE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 892 out of 1000 EXPLAIN ESTIMATE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 893 out of 1000 EXPLAIN PIPELINE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 894 out of 1000 EXPLAIN PIPELINE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 895 out of 1000 EXPLAIN PIPELINE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 896 out of 1000 SELECT t__fuzz_1, 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23), currentDatabase(), t) WHERE round((sum(multiIf(in(nums__fuzz_24, s, ('a', 'b')), 1, 0)) RESPECT NULLS / count()) * 100) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT t__fuzz_1, 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23), currentDatabase(), t) WHERE round((sum(multiIf(in(nums__fuzz_24, s, ('a', 'b')), 1, 0)) RESPECT NULLS / count()) * 100) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Unknown expression identifier 't__fuzz_1' in scope SELECT t__fuzz_1, 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23), currentDatabase(), t) WHERE round((sum(multiIf(in(nums__fuzz_24, s, ('a', 'b')), 1, 0)) RESPECT NULLS / count()) * 100) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 897 out of 1000 EXPLAIN ESTIMATE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 898 out of 1000 EXPLAIN SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 899 out of 1000 EXPLAIN SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 900 out of 1000 EXPLAIN SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 901 out of 1000 EXPLAIN SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 902 out of 1000 EXPLAIN SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 903 out of 1000 EXPLAIN QUERY TREE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 904 out of 1000 EXPLAIN QUERY TREE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 905 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('23'): 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP B. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 906 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', materialize(23)), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', materialize(23)), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', materialize(23)), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 907 out of 1000 EXPLAIN QUERY TREE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 908 out of 1000 EXPLAIN SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 909 out of 1000 EXPLAIN SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 910 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Query succeeded, using this AST as a start Fuzzing step 911 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), materialize(toLowCardinality(23))), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), materialize(toLowCardinality(23))), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), materialize(toLowCardinality(23))), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 912 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 913 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100, toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100, toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(in(s, ('a', 'b')), 1, 0)) IGNORE NULLS is found in wrong place in query: While processing sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bc5 7. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 8. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 9. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 10. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 11. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 12. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 13. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 14. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:348: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a9a7 15. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 16. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 17. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 18. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 19. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 20. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 914 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 915 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 916 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 917 out of 1000 EXPLAIN PIPELINE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 28. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 29. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 918 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 919 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 920 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 921 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 922 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Got boring AST Fuzzing step 923 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), 23), currentDatabase(), t) WHERE materialize(toUInt128(1)) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), 23), currentDatabase(), t) WHERE materialize(toUInt128(1)) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), 23), currentDatabase(), t) WHERE materialize(toUInt128(1)) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 924 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), materialize(23)), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), materialize(23)), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), materialize(23)), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 925 out of 1000 SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 926 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 927 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23), 23), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23), 23), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23), 23), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 928 out of 1000 SELECT sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(), 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23, toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(), 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23, toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(), 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23, toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 929 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 930 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 931 out of 1000 SELECT toNullable(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT toNullable(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toNullable(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 932 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 933 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 934 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 935 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 936 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 937 out of 1000 SELECT t__fuzz_1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT t__fuzz_1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT t__fuzz_1, 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 938 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 939 out of 1000 SELECT (sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) RESPECT NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100, 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT (sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) RESPECT NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100, 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Function sum does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x00000000306e43d6 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x00000000306df2f4 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc10d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 940 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), 23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 941 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 942 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 943 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 944 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 945 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23)), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 946 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 947 out of 1000 SELECT 23 FROM cluster(toFixedString(toLowCardinality(23), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toLowCardinality(23), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toLowCardinality(23), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 948 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 949 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 950 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 951 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), toNullable(23)), 23), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), toNullable(23)), 23), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 952 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 953 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23), toLowCardinality(23)), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 954 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 955 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 956 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23), 23), currentDatabase(), t) PREWHERE toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23), nums__fuzz_41, 23) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23), 23), currentDatabase(), t) PREWHERE toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23), nums__fuzz_41, 23) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_41' in scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23), 23), currentDatabase(), t) PREWHERE toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23), nums__fuzz_41, 23) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 957 out of 1000 EXPLAIN PIPELINE header = true SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), 23), toNullable(23)), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN PIPELINE header = true SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), 23), toNullable(23)), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 958 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 959 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 960 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 961 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23, currentDatabase(), t) WHERE toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23, currentDatabase(), t) WHERE toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 962 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) PREWHERE sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN PIPELINE SELECT toUInt256(23) FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) PREWHERE sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS is found in PREWHERE in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x000000000df2a32d 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:43: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335a0c05 5. ./build_docker/./src/Analyzer/AggregationUtils.cpp:70: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x00000000335a14c7 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000335911a6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 963 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 964 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 965 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 966 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 967 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 968 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 969 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 970 out of 1000 SELECT materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(toLowCardinality(23)))), 23), currentDatabase(), t)) WITH CUBE WITH TOTALS Error on processing query 'SELECT materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(toLowCardinality(23)))), 23), currentDatabase(), t)) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(toLowCardinality(23)))), 23), currentDatabase(), t)) WITH CUBE WITH TOTALS. Maybe you meant: ['s']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 971 out of 1000 SELECT 23 FROM cluster(toFixedString((sum(multiIf(in(s), 1, toUInt128(0))) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * toLowCardinality(100), toFixedString(toFixedString('test_cluster_two_shards', 23, toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString((sum(multiIf(in(s), 1, toUInt128(0))) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * toLowCardinality(100), toFixedString(toFixedString('test_cluster_two_shards', 23, toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Wrong number of arguments passed to function in. Expected: 2, passed: 1: While processing in(s). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000a7e012a 4. ./src/Interpreters/misc.h:45: DB::MarkTableIdentifiersMatcher::visit(DB::ASTFunction&, DB::MarkTableIdentifiersMatcher::Data const&) @ 0x0000000035763114 5. ./build_docker/./src/Interpreters/MarkTableIdentifiersVisitor.cpp:48: DB::MarkTableIdentifiersMatcher::visit(std::shared_ptr&, DB::MarkTableIdentifiersMatcher::Data&) @ 0x0000000035762c16 6. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003567b6d5 7. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b985 8. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 9. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 10. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 11. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 12. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 13. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 14. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 15. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 16. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 17. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000003564d044 18. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000003565270b 19. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 20. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 21. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 22. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 23. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 972 out of 1000 SELECT materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23, 23), currentDatabase(), t) WITH TOTALS Error on processing query 'SELECT materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23, 23), currentDatabase(), t) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT materialize(23) FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23, 23), currentDatabase(), t) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 973 out of 1000 EXPLAIN QUERY TREE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 974 out of 1000 EXPLAIN AST SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 975 out of 1000 EXPLAIN AST SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 976 out of 1000 EXPLAIN AST SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 977 out of 1000 EXPLAIN PIPELINE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 978 out of 1000 EXPLAIN PIPELINE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 979 out of 1000 EXPLAIN AST SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 980 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('23'): 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP B. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 981 out of 1000 EXPLAIN AST SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 982 out of 1000 EXPLAIN AST SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 983 out of 1000 EXPLAIN AST SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 984 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 985 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 986 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 987 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 988 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23, currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Bad get: has UInt64, requested String. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception>, DB::Field::Types::Which const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, DB::Field::Types::Which const&) @ 0x00000000083963ed 4. auto& DB::Field::safeGet() @ 0x0000000008396253 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825f3d 6. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 989 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 990 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 991 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 992 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 993 out of 1000 SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toNullable(23)), 23), 23), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Error on processing query 'SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toNullable(23)), 23), 23), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toNullable(23)), 23), 23), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 994 out of 1000 EXPLAIN PIPELINE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 995 out of 1000 EXPLAIN PIPELINE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 996 out of 1000 EXPLAIN PIPELINE SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 997 out of 1000 EXPLAIN AST SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 998 out of 1000 EXPLAIN AST SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 999 out of 1000 EXPLAIN AST SELECT 23 FROM cluster(toFixedString(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), toNullable(23)), 23), 23), currentDatabase(), t) GROUP BY currentDatabase() WITH CUBE WITH TOTALS Got boring AST Fuzzing step 0 out of 1 Query succeeded, using this AST as a start DROP TABLE IF EXISTS t__fuzz_0 DROP TABLE IF EXISTS t__fuzz_1 DROP TABLE IF EXISTS t__fuzz_2 DROP TABLE IF EXISTS t__fuzz_3 DROP TABLE IF EXISTS t__fuzz_4 DROP TABLE IF EXISTS t__fuzz_5 DROP TABLE IF EXISTS t__fuzz_6 DROP TABLE IF EXISTS t__fuzz_7 DROP TABLE IF EXISTS t__fuzz_8 DROP TABLE IF EXISTS t__fuzz_9 DROP TABLE IF EXISTS t__fuzz_10 DROP TABLE IF EXISTS t__fuzz_11 DROP TABLE IF EXISTS t__fuzz_12 DROP TABLE IF EXISTS t__fuzz_13 DROP TABLE IF EXISTS t__fuzz_14 DROP TABLE IF EXISTS t__fuzz_15 DROP TABLE IF EXISTS t__fuzz_16 DROP TABLE IF EXISTS t__fuzz_17 DROP TABLE IF EXISTS t__fuzz_18 DROP TABLE IF EXISTS t__fuzz_19 DROP TABLE IF EXISTS t__fuzz_20 DROP TABLE IF EXISTS t__fuzz_21 DROP TABLE IF EXISTS t__fuzz_22 DROP TABLE IF EXISTS t__fuzz_23 DROP TABLE IF EXISTS t__fuzz_24 DROP TABLE IF EXISTS t__fuzz_25 DROP TABLE IF EXISTS t__fuzz_26 DROP TABLE IF EXISTS t__fuzz_27 DROP TABLE IF EXISTS t__fuzz_28 DROP TABLE IF EXISTS t__fuzz_29 DROP TABLE IF EXISTS t__fuzz_30 DROP TABLE IF EXISTS t__fuzz_31 DROP TABLE IF EXISTS t__fuzz_32 DROP TABLE IF EXISTS t__fuzz_33 DROP TABLE IF EXISTS t__fuzz_34 DROP TABLE IF EXISTS t__fuzz_35 DROP TABLE IF EXISTS t__fuzz_36 DROP TABLE IF EXISTS t__fuzz_37 DROP TABLE IF EXISTS t__fuzz_38 DROP TABLE IF EXISTS t__fuzz_39 DROP TABLE IF EXISTS t__fuzz_40 DROP TABLE IF EXISTS t__fuzz_41 DROP TABLE IF EXISTS t__fuzz_42 DROP TABLE IF EXISTS t__fuzz_43 DROP TABLE IF EXISTS t__fuzz_44 DROP TABLE IF EXISTS t__fuzz_45 DROP TABLE IF EXISTS t__fuzz_46 DROP TABLE IF EXISTS t__fuzz_47 DROP TABLE IF EXISTS t__fuzz_48 Fuzzing step 0 out of 1 Query succeeded, using this AST as a start Fuzzing step 0 out of 50 Query succeeded, using this AST as a start Fuzzing step 1 out of 50 CREATE TABLE test_alias__fuzz_0 ( `a` UInt128, `b` Int64, `c` Nullable(Int64), `day` Date, `rtime` DateTime ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 2 out of 50 CREATE TABLE test_alias__fuzz_1 ( `a` LowCardinality(UInt128), `b` Int64, `c` Nullable(Int64), `day` Date, `rtime` DateTime ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 3 out of 50 CREATE TABLE test_alias__fuzz_2 ( `a` LowCardinality(UInt128), `b` Nullable(Int64), `c` Nullable(Int64), `day` Date, `rtime` Array(DateTime) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_2 (`a` LowCardinality(UInt128), `b` Nullable(Int64), `c` Nullable(Int64), `day` Date, `rtime` Array(DateTime)) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column rtime. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 4 out of 50 CREATE TABLE test_alias__fuzz_3 ( `a` Array(LowCardinality(UInt128)), `b` Int64, `c` Int64, `day` Nullable(Date), `rtime` Int256 ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_3 (`a` Array(LowCardinality(UInt128)), `b` Int64, `c` Int64, `day` Nullable(Date), `rtime` Int256) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column a. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 5 out of 50 CREATE TABLE test_alias__fuzz_4 ( `a` UInt128, `b` Int64, `c` Nullable(Int64), `day` Nullable(Date), `rtime` LowCardinality(DateTime) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 6 out of 50 CREATE TABLE test_alias__fuzz_5 ( `a` Array(UInt128), `b` Nullable(Int64), `c` Float32, `day` Nullable(Date), `rtime` LowCardinality(DateTime) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_5 (`a` Array(UInt128), `b` Nullable(Int64), `c` Float32, `day` Nullable(Date), `rtime` LowCardinality(DateTime)) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column a. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 7 out of 50 CREATE TABLE test_alias__fuzz_6 ( `a` Tuple(UInt256, UInt16, UInt8), `b` Int64, `c` LowCardinality(Nullable(Int64)), `day` Nullable(Date), `rtime` LowCardinality(DateTime) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_6 (`a` Tuple(UInt256, UInt16, UInt8), `b` Int64, `c` LowCardinality(Nullable(Int64)), `day` Nullable(Date), `rtime` LowCardinality(DateTime)) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS Tuple can only be performed between tuple types or from String. Left type: UInt8, right type: Tuple(UInt256, UInt16, UInt8): while converting source column `0` to destination column a. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::(anonymous namespace)::FunctionCast::createTupleWrapper(std::shared_ptr const&, DB::DataTypeTuple const*) const @ 0x000000000871abc1 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cfa00 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 8 out of 50 CREATE TABLE test_alias__fuzz_7 ( `a` UInt128, `b` Decimal(76, 74), `c` UInt32, `day` Nullable(Date), `rtime` LowCardinality(DateTime) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 9 out of 50 CREATE TABLE test_alias__fuzz_8 ( `a` UInt16, `b` Decimal(76, 74), `c` LowCardinality(UInt32), `day` Nullable(Date), `rtime` LowCardinality(DateTime) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 10 out of 50 CREATE TABLE test_alias__fuzz_9 ( `a` UInt16, `b` Decimal(76, 74), `c` LowCardinality(UInt32), `day` Nullable(Date), `rtime` LowCardinality(DateTime) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 11 out of 50 CREATE TABLE test_alias__fuzz_10 ( `a` UInt16, `b` Decimal(76, 74), `c` Array(LowCardinality(UInt32)), `day` Nullable(Date), `rtime` LowCardinality(DateTime) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_10 (`a` UInt16, `b` Decimal(76, 74), `c` Array(LowCardinality(UInt32)), `day` Nullable(Date), `rtime` LowCardinality(DateTime)) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column c. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 12 out of 50 CREATE TABLE test_alias__fuzz_11 ( `a` Nullable(UInt16), `b` Nullable(Decimal(76, 74)), `c` UInt32, `day` Int256, `rtime` DateTime ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_11 (`a` Nullable(UInt16), `b` Nullable(Decimal(76, 74)), `c` UInt32, `day` Int256, `rtime` DateTime) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: Cannot parse string '2022-01-01' as Int256: syntax error at position 4 (parsed just '2022'): while converting source column `'2022-01-01'` to destination column day. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::(anonymous namespace)::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x00000000086ed802 4. bool DB::callOnIndexAndDataType>, DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, DB::(anonymous namespace)::BehaviourOnErrorFromString)&, DB::(anonymous namespace)::BehaviourOnErrorFromString>(DB::TypeIndex, DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, DB::(anonymous namespace)::BehaviourOnErrorFromString)&, DB::(anonymous namespace)::BehaviourOnErrorFromString&&) @ 0x0000000008b6251c 5. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000008b3ff5f 6. DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d57db 7. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffeaa 8. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 9. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 10. DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000083d403f 11. COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000876e509 12. DB::(anonymous namespace)::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000086d2b34 13. DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000008425b22 14. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 15. DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5fe9f0 16. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffb8f 17. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601e5f 18. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 19. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x00000000332270ae 20. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 21. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 22. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 23. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 24. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 25. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 26. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 13 out of 50 CREATE TABLE test_alias__fuzz_12 ( `a` Nullable(UInt16), `b` Decimal(76, 74), `c` LowCardinality(UInt32), `day` Nullable(Date), `rtime` Array(LowCardinality(DateTime)) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_12 (`a` Nullable(UInt16), `b` Decimal(76, 74), `c` LowCardinality(UInt32), `day` Nullable(Date), `rtime` Array(LowCardinality(DateTime))) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column rtime. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 14 out of 50 CREATE TABLE test_alias__fuzz_13 ( `a` LowCardinality(UInt16), `b` Array(Decimal(76, 74)), `c` UInt32, `day` Nullable(Date), `rtime` DateTime ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_13 (`a` LowCardinality(UInt16), `b` Array(Decimal(76, 74)), `c` UInt32, `day` Nullable(Date), `rtime` DateTime) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column b. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 15 out of 50 CREATE TABLE test_alias__fuzz_14 ( `a` UInt16, `b` Nullable(Decimal(76, 74)), `c` LowCardinality(UInt32), `day` Nullable(UUID), `rtime` UInt8 ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 16 out of 50 CREATE TABLE test_alias__fuzz_15 ( `a` UInt16, `b` UInt256, `c` UInt32, `day` Nullable(UUID), `rtime` UInt8 ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 17 out of 50 CREATE TABLE test_alias__fuzz_16 ( `a` Nullable(UInt16), `b` UInt256, `c` LowCardinality(UInt32), `day` Nullable(UUID), `rtime` Array(UInt8) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_16 (`a` Nullable(UInt16), `b` UInt256, `c` LowCardinality(UInt32), `day` Nullable(UUID), `rtime` Array(UInt8)) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column rtime. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 18 out of 50 CREATE TABLE test_alias__fuzz_17 ( `a` UInt16, `b` UInt256, `c` Array(UInt32), `day` Nullable(UUID), `rtime` UInt8 ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_17 (`a` UInt16, `b` UInt256, `c` Array(UInt32), `day` Nullable(UUID), `rtime` UInt8) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column c. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 19 out of 50 CREATE TABLE test_alias__fuzz_18 ( `a` UInt16, `b` Nullable(UInt256), `c` Array(UInt32), `day` Nullable(UUID), `rtime` UInt128 ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_18 (`a` UInt16, `b` Nullable(UInt256), `c` Array(UInt32), `day` Nullable(UUID), `rtime` UInt128) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column c. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 20 out of 50 CREATE TABLE test_alias__fuzz_19 ( `a` LowCardinality(UInt16), `b` UInt256, `c` Nullable(UInt32), `day` Nullable(UUID), `rtime` Decimal(38, 25) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 21 out of 50 CREATE TABLE test_alias__fuzz_20 ( `a` LowCardinality(UInt16), `b` Int16, `c` UInt8, `day` LowCardinality(Nullable(UUID)), `rtime` Decimal(38, 25) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 22 out of 50 CREATE TABLE test_alias__fuzz_21 ( `a` Array(UInt16), `b` Int16, `c` LowCardinality(UInt8), `day` Nullable(UUID), `rtime` UInt8 ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_21 (`a` Array(UInt16), `b` Int16, `c` LowCardinality(UInt8), `day` Nullable(UUID), `rtime` UInt8) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column a. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 23 out of 50 CREATE TABLE test_alias__fuzz_22 ( `a` UInt16, `b` Int16, `c` UInt8, `day` LowCardinality(Nullable(UUID)), `rtime` Decimal(76, 41) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 24 out of 50 CREATE TABLE test_alias__fuzz_23 ( `a` UInt16, `b` Int16, `c` UInt8, `day` LowCardinality(Nullable(UUID)), `rtime` DateTime64(3) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 25 out of 50 CREATE TABLE test_alias__fuzz_24 ( `a` UInt16, `b` Int16, `c` UInt8, `day` Decimal(18, 10), `rtime` Array(DateTime64(3)) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_24 (`a` UInt16, `b` Int16, `c` UInt8, `day` Decimal(18, 10), `rtime` Array(DateTime64(3))) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: Cannot parse string '2022-01-01' as Decimal(18, 10): syntax error at position 4 (parsed just '2022'): while converting source column `'2022-01-01'` to destination column day. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::(anonymous namespace)::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x00000000086ed802 4. COW::immutable_ptr DB::(anonymous namespace)::ConvertImpl>, DB::(anonymous namespace)::FunctionCastName, (DB::FormatSettings::DateTimeOverflowBehavior)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::(anonymous namespace)::BehaviourOnErrorFromString, unsigned int) @ 0x0000000008cccbef 5. _ZN2DBL22callOnIndexAndDataTypeINS_15DataTypeDecimalINS_7DecimalIlEEEEZZNKS_12_GLOBAL__N_112FunctionCast20createDecimalWrapperIS4_Q17IsDataTypeDecimalIT_EEENSt3__18functionIFN3COWINS_7IColumnEE13immutable_ptrISC_EERNS9_6vectorINS_21ColumnWithTypeAndNameENS9_9allocatorISH_EEEERKNS9_10shared_ptrIKNS_9IDataTypeEEEPKNS_14ColumnNullableEmEEESR_PKS8_bENKUlSL_SR_SU_mE_clESL_SR_SU_mEUlRSX_E_JEEEbNS_9TypeIndexEOT0_DpOT1_ @ 0x0000000008c90d63 6. _ZNSt3__110__function16__policy_invokerIFN3COWIN2DB7IColumnEE13immutable_ptrIS4_EERNS_6vectorINS3_21ColumnWithTypeAndNameENS_9allocatorIS9_EEEERKNS_10shared_ptrIKNS3_9IDataTypeEEEPKNS3_14ColumnNullableEmEE11__call_implINS0_20__default_alloc_funcIZNKS3_12_GLOBAL__N_112FunctionCast20createDecimalWrapperINS3_15DataTypeDecimalINS3_7DecimalIlEEEEQ17IsDataTypeDecimalIT_EEENS_8functionISN_EESJ_PKSY_bEUlSD_SJ_SM_mE_SN_EEEES7_PKNS0_16__policy_storageESD_SJ_SM_m @ 0x0000000008c86d7d 7. DB::(anonymous namespace)::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000086d2b34 8. DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000008425b22 9. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 10. DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5fe9f0 11. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffb8f 12. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601e5f 13. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 14. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x00000000332270ae 15. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 16. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 17. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 18. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 19. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 20. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 21. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 26 out of 50 CREATE TABLE test_alias__fuzz_25 ( `a` LowCardinality(UInt16), `b` Array(Int16), `c` UInt8, `day` Decimal(38, 13), `rtime` Int256 ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_25 (`a` LowCardinality(UInt16), `b` Array(Int16), `c` UInt8, `day` Decimal(38, 13), `rtime` Int256) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column b. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 27 out of 50 CREATE TABLE test_alias__fuzz_26 ( `a` Nullable(UInt16), `b` Int16, `c` String, `day` Nullable(UInt256), `rtime` DateTime64(3) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 28 out of 50 CREATE TABLE test_alias__fuzz_27 ( `a` Nullable(UInt16), `b` Nullable(Int16), `c` LowCardinality(String), `day` Nullable(UInt256), `rtime` Date ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 29 out of 50 CREATE TABLE test_alias__fuzz_28 ( `a` Nullable(UInt16), `b` LowCardinality(Nullable(Int16)), `c` Nullable(String), `day` Nullable(UInt256), `rtime` LowCardinality(Date) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 30 out of 50 CREATE TABLE test_alias__fuzz_29 ( `a` Date, `b` LowCardinality(Nullable(Int16)), `c` Nullable(String), `day` Nullable(UInt256), `rtime` Array(Date) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_29 (`a` Date, `b` LowCardinality(Nullable(Int16)), `c` Nullable(String), `day` Nullable(UInt256), `rtime` Array(Date)) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column rtime. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 31 out of 50 CREATE TABLE test_alias__fuzz_30 ( `a` Nullable(UInt16), `b` LowCardinality(Nullable(Int16)), `c` Float64, `day` Array(Nullable(UInt256)), `rtime` LowCardinality(Date) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_30 (`a` Nullable(UInt16), `b` LowCardinality(Nullable(Int16)), `c` Float64, `day` Array(Nullable(UInt256)), `rtime` LowCardinality(Date)) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: Array does not start with '[' character: while converting source column `'2022-01-01'` to destination column day. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/DataTypes/Serializations/SerializationArray.cpp:442: DB::SerializationArray::deserializeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&, bool) const @ 0x000000003266be2d 5. DB::SimpleTextSerialization::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x00000000086246a6 6. DB::(anonymous namespace)::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long, std::shared_ptr const&) @ 0x00000000086ec0f0 7. COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl const&, DB::DataTypeArray const&) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x0000000008ff47c0 8. DB::(anonymous namespace)::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000086d2b34 9. DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000008425b22 10. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 11. DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5fe9f0 12. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffb8f 13. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601e5f 14. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 15. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x00000000332270ae 16. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 17. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 18. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 19. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 20. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 21. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 22. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 32 out of 50 CREATE TABLE test_alias__fuzz_31 ( `a` Array(UInt16), `b` LowCardinality(Nullable(Int16)), `c` Nullable(String), `day` LowCardinality(Nullable(UInt256)), `rtime` LowCardinality(Float32) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_31 (`a` Array(UInt16), `b` LowCardinality(Nullable(Int16)), `c` Nullable(String), `day` LowCardinality(Nullable(UInt256)), `rtime` LowCardinality(Float32)) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column a. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 33 out of 50 CREATE TABLE test_alias__fuzz_32 ( `a` LowCardinality(UInt16), `b` Nullable(Int16), `c` Nullable(String), `day` Nullable(UInt256), `rtime` LowCardinality(Date) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 34 out of 50 CREATE TABLE test_alias__fuzz_33 ( `a` Int64, `b` LowCardinality(Nullable(Int16)), `c` Nullable(String), `day` Nullable(UInt256), `rtime` LowCardinality(Date) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 35 out of 50 CREATE TABLE test_alias__fuzz_34 ( `a` Array(Int64), `b` UInt16, `c` String, `day` LowCardinality(UInt256), `rtime` Int32 ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_34 (`a` Array(Int64), `b` UInt16, `c` String, `day` LowCardinality(UInt256), `rtime` Int32) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column a. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 36 out of 50 CREATE TABLE test_alias__fuzz_35 ( `a` Int64, `b` LowCardinality(Int16), `c` Nullable(String), `day` Array(Nullable(UInt256)), `rtime` LowCardinality(Date) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_35 (`a` Int64, `b` LowCardinality(Int16), `c` Nullable(String), `day` Array(Nullable(UInt256)), `rtime` LowCardinality(Date)) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: Array does not start with '[' character: while converting source column `'2022-01-01'` to destination column day. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/DataTypes/Serializations/SerializationArray.cpp:442: DB::SerializationArray::deserializeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&, bool) const @ 0x000000003266be2d 5. DB::SimpleTextSerialization::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x00000000086246a6 6. DB::(anonymous namespace)::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long, std::shared_ptr const&) @ 0x00000000086ec0f0 7. COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl const&, DB::DataTypeArray const&) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x0000000008ff47c0 8. DB::(anonymous namespace)::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000086d2b34 9. DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000008425b22 10. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 11. DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5fe9f0 12. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffb8f 13. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601e5f 14. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 15. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x00000000332270ae 16. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 17. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 18. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 19. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 20. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 21. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 22. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 37 out of 50 CREATE TABLE test_alias__fuzz_36 ( `a` Int64, `b` Array(LowCardinality(Nullable(Int16))), `c` UInt128, `day` UInt256, `rtime` LowCardinality(Nullable(Date)) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_36 (`a` Int64, `b` Array(LowCardinality(Nullable(Int16))), `c` UInt128, `day` UInt256, `rtime` LowCardinality(Nullable(Date))) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column b. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 38 out of 50 CREATE TABLE test_alias__fuzz_37 ( `a` Int64, `b` LowCardinality(Nullable(Int16)), `c` Nullable(String), `day` Nullable(UInt256), `rtime` Nullable(Date) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 39 out of 50 CREATE TABLE test_alias__fuzz_38 ( `a` Nullable(Int64), `b` LowCardinality(Nullable(Int16)), `c` Array(Date32), `day` Nullable(UInt256), `rtime` Date ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_38 (`a` Nullable(Int64), `b` LowCardinality(Nullable(Int16)), `c` Array(Date32), `day` Nullable(UInt256), `rtime` Date) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column c. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 40 out of 50 CREATE TABLE test_alias__fuzz_39 ( `a` LowCardinality(Int64), `b` UInt8, `c` Nullable(String), `day` Nullable(UInt256), `rtime` LowCardinality(Nullable(Date)) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 41 out of 50 CREATE TABLE test_alias__fuzz_40 ( `a` LowCardinality(Int64), `b` LowCardinality(UInt8), `c` String, `day` Nullable(UInt256), `rtime` LowCardinality(Nullable(Date)) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 42 out of 50 CREATE TABLE test_alias__fuzz_41 ( `a` Array(Int64), `b` LowCardinality(UInt8), `c` String, `day` UInt256, `rtime` Nullable(FixedString(5)) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_41 (`a` Array(Int64), `b` LowCardinality(UInt8), `c` String, `day` UInt256, `rtime` Nullable(FixedString(5))) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column a. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 43 out of 50 CREATE TABLE test_alias__fuzz_42 ( `a` LowCardinality(Int64), `b` UInt8, `c` LowCardinality(String), `day` Nullable(UInt256), `rtime` LowCardinality(Nullable(Date)) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 44 out of 50 CREATE TABLE test_alias__fuzz_43 ( `a` Int64, `b` LowCardinality(UInt8), `c` LowCardinality(String), `day` Array(Nullable(UInt256)), `rtime` UInt8 ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_43 (`a` Int64, `b` LowCardinality(UInt8), `c` LowCardinality(String), `day` Array(Nullable(UInt256)), `rtime` UInt8) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: Array does not start with '[' character: while converting source column `'2022-01-01'` to destination column day. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/DataTypes/Serializations/SerializationArray.cpp:442: DB::SerializationArray::deserializeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&, bool) const @ 0x000000003266be2d 5. DB::SimpleTextSerialization::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x00000000086246a6 6. DB::(anonymous namespace)::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long, std::shared_ptr const&) @ 0x00000000086ec0f0 7. COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl const&, DB::DataTypeArray const&) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x0000000008ff47c0 8. DB::(anonymous namespace)::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000086d2b34 9. DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000008425b22 10. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 11. DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5fe9f0 12. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffb8f 13. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601e5f 14. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 15. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x00000000332270ae 16. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 17. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 18. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 19. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 20. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 21. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 22. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 45 out of 50 CREATE TABLE test_alias__fuzz_44 ( `a` LowCardinality(Int64), `b` UInt8, `c` LowCardinality(String), `day` UInt256, `rtime` Array(Nullable(Date)) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_44 (`a` LowCardinality(Int64), `b` UInt8, `c` LowCardinality(String), `day` UInt256, `rtime` Array(Nullable(Date))) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: Cannot parse string '2022-01-01' as UInt256: syntax error at position 4 (parsed just '2022'): while converting source column `'2022-01-01'` to destination column day. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::(anonymous namespace)::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x00000000086ed802 4. bool DB::callOnIndexAndDataType>, DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, DB::(anonymous namespace)::BehaviourOnErrorFromString)&, DB::(anonymous namespace)::BehaviourOnErrorFromString>(DB::TypeIndex, DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, DB::(anonymous namespace)::BehaviourOnErrorFromString)&, DB::(anonymous namespace)::BehaviourOnErrorFromString&&) @ 0x000000000895ce7c 5. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000893acff 6. DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d57db 7. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffeaa 8. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 9. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 10. DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000083d403f 11. COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000876e509 12. DB::(anonymous namespace)::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000086d2b34 13. DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000008425b22 14. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 15. DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5fe9f0 16. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffb8f 17. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601e5f 18. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 19. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x00000000332270ae 20. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 21. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 22. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 23. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 24. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 25. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 26. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 46 out of 50 CREATE TABLE test_alias__fuzz_45 ( `a` Int64, `b` LowCardinality(UInt8), `c` Nullable(String), `day` Nullable(UInt256), `rtime` LowCardinality(Nullable(Date)) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Query succeeded, using this AST as a start Fuzzing step 47 out of 50 CREATE TABLE test_alias__fuzz_46 ( `a` Array(Int64), `b` LowCardinality(UInt8), `c` String, `day` UInt256, `rtime` UInt128 ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_46 (`a` Array(Int64), `b` LowCardinality(UInt8), `c` String, `day` UInt256, `rtime` UInt128) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column a. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 48 out of 50 CREATE TABLE test_alias__fuzz_47 ( `a` Int64, `b` UInt128, `c` Array(Nullable(String)), `day` Nullable(UInt256), `rtime` Array(LowCardinality(Nullable(Date))) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_47 (`a` Int64, `b` UInt128, `c` Array(Nullable(String)), `day` Nullable(UInt256), `rtime` Array(LowCardinality(Nullable(Date)))) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column c. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 49 out of 50 CREATE TABLE test_alias__fuzz_48 ( `a` FixedString(12), `b` Tuple(Date, Date), `c` Array(String), `day` Nullable(UInt256), `rtime` LowCardinality(Nullable(Date)) ) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10) Error on processing query 'CREATE TABLE test_alias__fuzz_48 (`a` FixedString(12), `b` Tuple(Date, Date), `c` Array(String), `day` Nullable(UInt256), `rtime` LowCardinality(Nullable(Date))) ENGINE = Memory AS SELECT 0, 0, 0, '2022-01-01', 0 FROM zeros(10)': Received from localhost:9000. DB::Exception: CAST AS FixedString is only implemented for types String and FixedString: while converting source column `0` to destination column a. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createFixedStringWrapper(std::shared_ptr const&, unsigned long) const @ 0x0000000008716ce0 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf95d 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x00000000348efc23 13. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000348d005a 14. ./build_docker/./src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x00000000348f6f76 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 WITH sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0)) AS r1, sum(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable(toFixedString('test_cluster_two_shards', 23))), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0)) AS r1, sum(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable(toFixedString('test_cluster_two_shards', 23))), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope WITH sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0)) AS r1, sum(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable(toFixedString('test_cluster_two_shards', 23))), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 2 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Got boring AST Fuzzing step 3 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), 23), currentDatabase(), t) ASC NULLS FIRST, t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), 23), currentDatabase(), t) ASC NULLS FIRST, t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), 23), currentDatabase(), t) ASC NULLS FIRST, t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 4 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), 23), (a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day, toFixedString(toFixedString(toLowCardinality(toUInt128(23))), 23), '2022-01-01') GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), 23), (a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day, toFixedString(toFixedString(toLowCardinality(toUInt128(23))), 23), '2022-01-01') GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), 23), (a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day, toFixedString(toFixedString(toLowCardinality(toUInt128(23))), 23), '2022-01-01') GROUP BY t ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 23. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 29. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 Fuzzing step 5 out of 1000 WITH sum(if((a >= 0) AND notEquals(b, toUInt128(toLowCardinality(toLowCardinality(1))), 100) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(a) AND (b != toLowCardinality(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND notEquals(b, toUInt128(toLowCardinality(toLowCardinality(1))), 100) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(a) AND (b != toLowCardinality(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND notEquals(b, toUInt128(toLowCardinality(toLowCardinality(1))), 100) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(a) AND (b != toLowCardinality(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 6 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 7 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 8 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 9 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 10 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 11 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 12 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 13 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 14 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 15 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 16 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 17 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 18 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 19 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 20 out of 1000 EXPLAIN ESTIMATE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 21 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 22 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 23 out of 1000 EXPLAIN ESTIMATE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 24 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 26 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 27 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 28 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 29 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 30 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 31 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 32 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 33 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 34 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 35 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 36 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 37 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 38 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 39 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 40 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 41 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 42 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 43 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 44 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 45 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 46 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 47 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(a) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, divide(r1 * 100) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(a) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, divide(r1 * 100) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(a) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, divide(r1 * 100) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 48 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 49 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 50 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toUInt128(100)) AND (c > toUInt256(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 51 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toUInt128(100)) AND (c > toUInt256(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toUInt128(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toUInt128(100)) AND (c > toUInt256(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toUInt128(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Table name was not found in function arguments. Table function 'cluster' requires from 0 to 4 parameters: [, , ] [, sharding_key]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&&) @ 0x000000002fde484a 4. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:179: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fddd80f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 52 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 53 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND equals(0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toLowCardinality(20))) * 1000 AS t, (r1 * toNullable(toUInt128(100))) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND equals(0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toLowCardinality(20))) * 1000 AS t, (r1 * toNullable(toUInt128(100))) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND equals(0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toLowCardinality(20))) * 1000 AS t, (r1 * toNullable(toUInt128(100))) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 54 out of 1000 WITH sum(if((a >= 0) AND notEquals(100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= materialize(toLowCardinality(0))) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(toLowCardinality(20))) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) PREWHERE toLowCardinality(1) WHERE day = '2022-01-01' GROUP BY t ORDER BY nums__fuzz_15 ASC, t ASC Error on processing query 'WITH sum(if((a >= 0) AND notEquals(100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= materialize(toLowCardinality(0))) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(toLowCardinality(20))) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) PREWHERE toLowCardinality(1) WHERE day = '2022-01-01' GROUP BY t ORDER BY nums__fuzz_15 ASC, t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND notEquals(100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= materialize(toLowCardinality(0))) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(toLowCardinality(20))) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) PREWHERE toLowCardinality(1) WHERE day = '2022-01-01' GROUP BY t ORDER BY nums__fuzz_15 ASC, t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 55 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, multiply(r1) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, multiply(r1) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, multiply(r1) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 56 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 57 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if(nums__fuzz_15 AND (a >= 0) AND (b != 100), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if(nums__fuzz_15 AND (a >= 0) AND (b != 100), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_15' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if(nums__fuzz_15 AND (a >= 0) AND (b != 100), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 58 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(toUInt256(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 59 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 60 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0))) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 61 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0))) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 62 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0))) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / plus(r1) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0))) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / plus(r1) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function plus doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0))) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / plus(r1) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 63 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(materialize(0)))) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime)) * 20) * toLowCardinality(toNullable(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(materialize(0)))) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime)) * 20) * toLowCardinality(toNullable(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(materialize(0)))) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime)) * 20) * toLowCardinality(toNullable(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 64 out of 1000 EXPLAIN PIPELINE header = true WITH sum(if((a >= 0) AND (b != 100) AND equals(c, n, 0), materialize(1), toLowCardinality(0))) AS r1, sum(if(toNullable(toUInt128(23)) AND (a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE header = true WITH sum(if((a >= 0) AND (b != 100) AND equals(c, n, 0), materialize(1), toLowCardinality(0))) AS r1, sum(if(toNullable(toUInt128(23)) AND (a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 65 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0))) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), toNullable(1), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = materialize(toNullable('2022-01-01')) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0))) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), toNullable(1), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = materialize(toNullable('2022-01-01')) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: There is no supertype for types Date, String because some of them are String/FixedString/Enum and some of them are not. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: std::shared_ptr DB::(anonymous namespace)::throwOrReturn<(DB::LeastSupertypeOnError)0, std::vector, std::allocator>>>(std::vector, std::allocator>> const&, std::basic_string_view>, int) @ 0x00000000325f9a02 4. ./contrib/llvm-project/libcxx/include/vector:1501: std::shared_ptr DB::getLeastSupertype<(DB::LeastSupertypeOnError)0>(std::vector, std::allocator>> const&) @ 0x0000000032608a95 5. DB::FunctionComparison::executeGeneric(DB::ColumnWithTypeAndName const&, DB::ColumnWithTypeAndName const&) const @ 0x000000000ec4e172 6. DB::FunctionComparison::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ebfff88 7. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000837d9c2 8. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d58bb 9. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 10. DB::IExecutableFunction::defaultImplementationForNulls(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b6008d9 11. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffbf4 12. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 13. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 14. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x000000003324d830 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x0000000033248983 16. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000003b836ae8 17. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:0: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000003be3875c 18. ./contrib/llvm-project/libcxx/include/string:1499: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&, String&, bool&) @ 0x0000000034c6d231 19. ./build_docker/./src/Planner/Planner.cpp:360: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d275ce 20. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0f791 21. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 22. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::Planner(std::shared_ptr const&, DB::SelectQueryOptions&) @ 0x0000000034cf91d2 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:163: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceba7b 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 66 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), materialize(1), t__fuzz_10, toLowCardinality(0))) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, divide(multiply(sum(multiIf(s IN ('a', 'b'), 1, toNullable(0))) IGNORE NULLS, r1, 100)) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), materialize(1), t__fuzz_10, toLowCardinality(0))) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, divide(multiply(sum(multiIf(s IN ('a', 'b'), 1, toNullable(0))) IGNORE NULLS, r1, 100)) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), materialize(1), t__fuzz_10, toLowCardinality(0))) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, divide(multiply(sum(multiIf(s IN ('a', 'b'), 1, toNullable(0))) IGNORE NULLS, r1, 100)) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 67 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND equals(version_pair[materialize(1)], c, 0), materialize(1), toLowCardinality(0))) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, divide(r1 * 100) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND equals(version_pair[materialize(1)], c, 0), materialize(1), toLowCardinality(0))) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, divide(r1 * 100) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope WITH sum(if((a >= 0) AND (b != 100) AND equals(version_pair[materialize(1)], c, 0), materialize(1), toLowCardinality(0))) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, divide(r1 * 100) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 21. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 30. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 68 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toLowCardinality(0))) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 69 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 70 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 71 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(1))))) AND (c > toUInt256(220)), 1, toLowCardinality(toNullable(0)))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(1))))) AND (c > toUInt256(220)), 1, toLowCardinality(toNullable(0)))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t DESC': Received from localhost:9000. DB::Exception: Illegal type (Nullable(FixedString(1))) of 2 argument of function and: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(toUInt256(1))))) AND (c > toUInt256(220)), 1, toLowCardinality(toNullable(0)))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0d0e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 19. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 72 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(toUInt128(0))), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 73 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, toLowCardinality(0))) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, toLowCardinality(0))) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t DESC': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, toLowCardinality(0))) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t DESC. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 31. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 Fuzzing step 74 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(toUInt128(0))), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 75 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(toUInt128(0))), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 76 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(toUInt128(0))), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), materialize(toLowCardinality(toNullable(1))), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))) ASC, t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(toUInt128(0))), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), materialize(toLowCardinality(toNullable(1))), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))) ASC, t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(toUInt128(0))), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), materialize(toLowCardinality(toNullable(1))), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))) ASC, t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 77 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(toUInt128(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), 0), 0))), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > toNullable(220)), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(toUInt128(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), 0), 0))), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > toNullable(220)), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(toUInt128(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), 0), 0))), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > toNullable(220)), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 30. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 78 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt128(0)), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 79 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 80 out of 1000 EXPLAIN PIPELINE compact = true WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = materialize(toNullable('2022-01-01')) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE compact = true WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = materialize(toNullable('2022-01-01')) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 81 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) RESPECT NULLS AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) RESPECT NULLS AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Function sum does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x00000000306e43d6 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x00000000306df2f4 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc10d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 11. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 82 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toLowCardinality(toLowCardinality(toUInt128(23))), 1, 0)) AS r1, sum(if((b != toLowCardinality(materialize(100))) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt128(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toLowCardinality(toLowCardinality(toUInt128(23))), 1, 0)) AS r1, sum(if((b != toLowCardinality(materialize(100))) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt128(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toLowCardinality(toLowCardinality(toUInt128(23))), 1, 0)) AS r1, sum(if((b != toLowCardinality(materialize(100))) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt128(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 83 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(notEquals(b) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / plus(r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(nums__fuzz_22, day, '2022-01-01') GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(notEquals(b) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / plus(r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(nums__fuzz_22, day, '2022-01-01') GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(notEquals(b) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / plus(r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(nums__fuzz_22, day, '2022-01-01') GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 84 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 85 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 86 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 87 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT multiply(test_alias__fuzz_27, intDiv(toUInt32(rtime), toNullable(20)) * 20, 1000) AS t, (r1 * 100) / plus(r1) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT multiply(test_alias__fuzz_27, intDiv(toUInt32(rtime), toNullable(20)) * 20, 1000) AS t, (r1 * 100) / plus(r1) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_27' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT multiply(test_alias__fuzz_27, intDiv(toUInt32(rtime), toNullable(20)) * 20, 1000) AS t, (r1 * 100) / plus(r1) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 88 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(and(b != toLowCardinality(100)), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(and(b != toLowCardinality(100)), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(and(b != toLowCardinality(100)), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 19. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 89 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) RESPECT NULLS AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(materialize('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) RESPECT NULLS AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(materialize('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize('test_cluster_two_shards'). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 8. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 90 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 91 out of 1000 WITH sum(if((a >= 0) AND (b != materialize(toLowCardinality(100))) AND (c = 0), 1, 0)) AS r1, sum(if(1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != materialize(toLowCardinality(100))) AND (c = 0), 1, 0)) AS r1, sum(if(1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH sum(if((a >= 0) AND (b != materialize(toLowCardinality(100))) AND (c = 0), 1, 0)) AS r1, sum(if(1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 92 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toUInt256(0))) AS r1, sum(if(and(c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toUInt256(0))) AS r1, sum(if(and(c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toUInt256(0))) AS r1, sum(if(and(c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 19. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 93 out of 1000 EXPLAIN PIPELINE compact = true WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / plus(r1, toFixedString(toFixedString(' ', toUInt128(1)), cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), materialize(toUInt256(23))), 23), currentDatabase(), t), 1), r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE compact = true WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / plus(r1, toFixedString(toFixedString(' ', toUInt128(1)), cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), materialize(toUInt256(23))), 23), currentDatabase(), t), 1), r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 94 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(c = 0, if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(c = 0, if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function sum requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./src/AggregateFunctions/FactoryHelpers.h:27: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSum(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000002d9e0f95 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:717: ? @ 0x000000002a2b4ea3 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:211: DB::AggregateFunctionFactory::getImpl(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x00000000306e2801 7. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:124: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dcf59 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 12. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 96 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 0, 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 0, 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 0, 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 97 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Table name was not found in function arguments. Table function 'cluster' requires from 0 to 4 parameters: [, , ] [, sharding_key]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&&) @ 0x000000002fde484a 4. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:179: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fddd80f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 98 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND greater(toLowCardinality(0), c, 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(toNullable(20))) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toUInt256(10)) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND greater(toLowCardinality(0), c, 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(toNullable(20))) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toUInt256(10)) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function greater doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND greater(toLowCardinality(0), c, 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(toNullable(20))) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toUInt256(10)) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 99 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND greater(c, round((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(materialize(toLowCardinality(toFixedString(materialize(' '), 1))), 100)), 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND greater(c, round((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(materialize(toLowCardinality(toFixedString(materialize(' '), 1))), 100)), 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND greater(c, round((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(materialize(toLowCardinality(toFixedString(materialize(' '), 1))), 100)), 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 100 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / plus(r1) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / plus(r1) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function plus doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / plus(r1) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 101 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT multiply(intDiv(toUInt32(rtime), toNullable(20)) * 20) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT multiply(intDiv(toUInt32(rtime), toNullable(20)) * 20) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 332 (','): , 10 GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST. Expected one of: token, DoubleColon, alias, AS, GROUP BY, WITH, HAVING, WINDOW, QUALIFY, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 102 out of 1000 WITH sum(if((a >= 0) AND notEquals(b, nums__fuzz_26, 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT ' ', 1, 1, (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND notEquals(b, nums__fuzz_26, 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT ' ', 1, 1, (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_26' in scope WITH sum(if((a >= 0) AND notEquals(b, nums__fuzz_26, 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT ' ', 1, 1, (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 18. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 103 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Function sum does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x00000000306e43d6 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x00000000306df2f4 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc10d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 11. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 104 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND greater(c, 25, 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(sum(multiIf(in(('a', 'b')), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS, day, toFixedString('2022-01-01', 10)) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND greater(c, 25, 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(sum(multiIf(in(('a', 'b')), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS, day, toFixedString('2022-01-01', 10)) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function greater doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND greater(c, 25, 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(sum(multiIf(in(('a', 'b')), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS, day, toFixedString('2022-01-01', 10)) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 105 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(toLowCardinality(100))) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, divide(r1 * 100, splitByChar(' ', getOSKernelVersion()), r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(toLowCardinality(100))) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, divide(r1 * 100, splitByChar(' ', getOSKernelVersion()), r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(toLowCardinality(100))) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, divide(r1 * 100, splitByChar(' ', getOSKernelVersion()), r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 106 out of 1000 WITH sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY GROUPING SETS ((t)) ORDER BY t ASC Error on processing query 'WITH sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY GROUPING SETS ((t)) ORDER BY t ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 336 (','): , 10 GROUP BY GROUPING SETS ((t)) ORDER BY t ASC. Expected one of: token, DoubleColon, alias, AS, GROUP BY, WITH, HAVING, WINDOW, QUALIFY, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 107 out of 1000 WITH sum(if((a >= 0) AND notEquals(b, test_alias__fuzz_32, 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(toUInt128(toLowCardinality(toLowCardinality(1))), day, toFixedString('2022-01-01', 10)) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND notEquals(b, test_alias__fuzz_32, 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(toUInt128(toLowCardinality(toLowCardinality(1))), day, toFixedString('2022-01-01', 10)) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_32' in scope WITH sum(if((a >= 0) AND notEquals(b, test_alias__fuzz_32, 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(toUInt128(toLowCardinality(toLowCardinality(1))), day, toFixedString('2022-01-01', 10)) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 18. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 108 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE (sum(multiIf(s IN materialize(materialize(('a', 'b'))), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100 WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE (sum(multiIf(s IN materialize(materialize(('a', 'b'))), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100 WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE (sum(multiIf(s IN materialize(materialize(('a', 'b'))), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100 WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 109 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 349 (','): , 10 GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Expected one of: token, DoubleColon, alias, AS, GROUP BY, WITH, HAVING, WINDOW, QUALIFY, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 110 out of 1000 WITH sum(r1 + r2, if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(r1 + r2, if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'r1' in scope WITH sum(r1 + r2, if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST. Maybe you meant: ['r1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 13. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 111 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT multiply(intDiv(toUInt32(rtime), toNullable(20)) * 20, multiIf(s IN ('a', 'b'), 1, toLowCardinality(toNullable(0))), 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT multiply(intDiv(toUInt32(rtime), toNullable(20)) * 20, multiIf(s IN ('a', 'b'), 1, toLowCardinality(toNullable(0))), 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT multiply(intDiv(toUInt32(rtime), toNullable(20)) * 20, multiIf(s IN ('a', 'b'), 1, toLowCardinality(toNullable(0))), 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 112 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND equals(toUInt256(1), c, 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND equals(toUInt256(1), c, 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND equals(toUInt256(1), c, 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 113 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32((a >= 0) AND (b != 100) AND (c = toUInt256(0)), rtime), toNullable(materialize(20))) * 20) * 1000 AS t, (r1 * 100) / plus(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(toUInt256(23)), r1, r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32((a >= 0) AND (b != 100) AND (c = toUInt256(0)), rtime), toNullable(materialize(20))) * 20) * 1000 AS t, (r1 * 100) / plus(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(toUInt256(23)), r1, r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt32'. Expected 1 argument, got 2 arguments: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32((a >= 0) AND (b != 100) AND (c = toUInt256(0)), rtime), toNullable(materialize(20))) * 20) * 1000 AS t, (r1 * 100) / plus(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(toUInt256(23)), r1, r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt32, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000885c4ee 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt32, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008834755 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 114 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count(nums__fuzz_21)) * materialize(100), 0))) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count(nums__fuzz_21)) * materialize(100), 0))) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count(nums__fuzz_21)) * materialize(100), 0))) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 31. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 Fuzzing step 115 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 117 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t ASC Got boring AST Fuzzing step 118 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 332 (','): , 10 GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t ASC. Expected one of: token, DoubleColon, alias, AS, GROUP BY, WITH, HAVING, WINDOW, QUALIFY, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 119 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY nums__fuzz_8 DESC, t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY nums__fuzz_8 DESC, t ASC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_8' in scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY nums__fuzz_8 DESC, t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 120 out of 1000 WITH sum(c = 0, if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString(10) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(c = 0, if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString(10) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function sum requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./src/AggregateFunctions/FactoryHelpers.h:27: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSum(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000002d9e0f95 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:717: ? @ 0x000000002a2b4ea3 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:211: DB::AggregateFunctionFactory::getImpl(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x00000000306e2801 7. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:124: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dcf59 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 12. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 121 out of 1000 EXPLAIN CURRENT TRANSACTION WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('sum'): sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(r. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 122 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 123 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t ASC Got boring AST Fuzzing step 124 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t ASC Got boring AST Fuzzing step 125 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 126 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 127 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 128 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST Got boring AST Fuzzing step 129 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Storage Memory (table default.test_alias (e248d29b-ff83-447b-a7f3-dc434cd9c6f4)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:220: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000003360a15d 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000336096aa 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000336096aa 7. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x0000000033602c20 8. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 10. ./src/Planner/Planner.h:56: DB::InterpreterSelectQueryAnalyzer::extractQueryPlan() && @ 0x0000000034cf61b2 11. ./build_docker/./src/Processors/QueryPlan/DistributedCreateLocalPlan.cpp:45: DB::createLocalPlan(std::shared_ptr const&, DB::Block const&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long, bool) @ 0x000000003bdfd5fc 12. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:161: DB::ClusterProxy::SelectStreamFactory::createForShardImpl(DB::Cluster::ShardInfo const&, std::shared_ptr const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>, bool)::$_0::operator()() const @ 0x0000000036f92d9c 13. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:234: DB::ClusterProxy::SelectStreamFactory::createForShardImpl(DB::Cluster::ShardInfo const&, std::shared_ptr const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>, bool) @ 0x0000000036f8e5fe 14. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:0: DB::ClusterProxy::SelectStreamFactory::createForShard(DB::Cluster::ShardInfo const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>) @ 0x0000000036f93901 15. ./build_docker/./src/Interpreters/ClusterProxy/executeQuery.cpp:0: DB::ClusterProxy::executeQuery(DB::QueryPlan&, DB::Block const&, DB::QueryProcessingStage::Enum, DB::StorageID const&, std::shared_ptr const&, DB::ClusterProxy::SelectStreamFactory&, std::shared_ptr, std::shared_ptr, DB::SelectQueryInfo const&, std::shared_ptr const&, String const&, DB::DistributedSettings const&, std::function (unsigned long)>, bool) @ 0x0000000036f59aff 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000038285416 17. ./src/Processors/QueryPlan/QueryPlan.h:53: DB::(anonymous namespace)::buildQueryPlanForTableExpression(std::shared_ptr, DB::SelectQueryInfo const&, DB::SelectQueryOptions const&, std::shared_ptr&, bool, bool) @ 0x0000000034d80c82 18. ./build_docker/./src/Planner/PlannerJoinTree.cpp:1777: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x0000000034d67094 19. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0b8de 20. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 21. ./src/Planner/Planner.h:56: DB::InterpreterSelectQueryAnalyzer::extractQueryPlan() && @ 0x0000000034cf61b2 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495adcd 23. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 24. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 130 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0), rtime), cluster(currentDatabase(), test_alias), 20) * 20) * materialize(1000) AS t, (r1 * toLowCardinality(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0), rtime), cluster(currentDatabase(), test_alias), 20) * 20) * materialize(1000) AS t, (r1 * toLowCardinality(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0), rtime), cluster(currentDatabase(), test_alias), 20) * 20) * materialize(1000) AS t, (r1 * toLowCardinality(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 131 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND equals(nums__fuzz_47, c, 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) WITH TOTALS ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND equals(nums__fuzz_47, c, 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) WITH TOTALS ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_47' in scope WITH sum(if((a >= 0) AND (b != 100) AND equals(nums__fuzz_47, c, 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) WITH TOTALS ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 18. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 132 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString(toNullable('2022-01-01'), toLowCardinality(splitByChar(' ', getOSKernelVersion()), 10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString(toNullable('2022-01-01'), toLowCardinality(splitByChar(' ', getOSKernelVersion()), 10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString(toNullable('2022-01-01'), toLowCardinality(splitByChar(' ', getOSKernelVersion()), 10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 133 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 134 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 135 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(materialize(toLowCardinality(0))))) AS r1, sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(day = toFixedString('2022-01-01', 10)), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(materialize(toLowCardinality(0))))) AS r1, sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(day = toFixedString('2022-01-01', 10)), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Missing columns: 'day' while processing query: 'currentDatabase(day = toFixedString('2022-01-01', 10))', required columns: 'day' 'day'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 8. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825ead 9. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 136 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toLowCardinality(0)))) AS r1, sum(if((b != 100) AND (c > 220), 1, 0)) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, divide('test_cluster_two_shards', r1 * 100, r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toLowCardinality(0)))) AS r1, sum(if((b != 100) AND (c > 220), 1, 0)) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, divide('test_cluster_two_shards', r1 * 100, r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Function sum does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x00000000306e43d6 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x00000000306df2f4 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc10d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 11. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 137 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > materialize(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 138 out of 1000 WITH sum(sum(a, multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS, if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toNullable(0))) AS r1, sum(if((b != 100) AND (c > materialize(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01', toLowCardinality(10) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC Error on processing query 'WITH sum(sum(a, multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS, if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toNullable(0))) AS r1, sum(if((b != 100) AND (c > materialize(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01', toLowCardinality(10) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 434 (','): , toLowCardinality(10) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC. Expected one of: token, DoubleColon, alias, AS, GROUP BY, WITH, HAVING, WINDOW, QUALIFY, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 139 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > materialize(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toLowCardinality(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(toFixedString('2022-01-01', toLowCardinality(10))) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > materialize(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toLowCardinality(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(toFixedString('2022-01-01', toLowCardinality(10))) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > materialize(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toLowCardinality(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(toFixedString('2022-01-01', toLowCardinality(10))) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 140 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > materialize(toLowCardinality(0), 220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * toNullable(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > materialize(toLowCardinality(0), 220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * toNullable(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > materialize(toLowCardinality(0), 220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * toNullable(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 23. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 29. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 Fuzzing step 141 out of 1000 WITH sum(t, if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > materialize(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), toLowCardinality(toNullable(toUInt128(23)))), 23) WHERE day = '2022-01-01', toLowCardinality(10) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC Error on processing query 'WITH sum(t, if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > materialize(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), toLowCardinality(toNullable(toUInt128(23)))), 23) WHERE day = '2022-01-01', toLowCardinality(10) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 493 (','): , toLowCardinality(10) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC. Expected one of: token, DoubleColon, alias, AS, GROUP BY, WITH, HAVING, WINDOW, QUALIFY, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 142 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > materialize(220)), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(intDiv(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > materialize(220)), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(intDiv(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((b != 100) AND (c > materialize(220)), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(intDiv(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 143 out of 1000 WITH sum(if((a >= 0) AND notEquals(toFixedString('test_cluster_two_shards', 23), b, materialize(toUInt128(100))) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > materialize(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, divide(toLowCardinality(toNullable(1)), r1 * toUInt256(100), r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND notEquals(toFixedString('test_cluster_two_shards', 23), b, materialize(toUInt128(100))) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > materialize(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, divide(toLowCardinality(toNullable(1)), r1 * toUInt256(100), r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND notEquals(toFixedString('test_cluster_two_shards', 23), b, materialize(toUInt128(100))) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > materialize(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, divide(toLowCardinality(toNullable(1)), r1 * toUInt256(100), r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 144 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > materialize(220)), 1, toNullable(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 145 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > 220), 1, toNullable(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, multiply('2022-01-01', r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > 220), 1, toNullable(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, multiply('2022-01-01', r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > 220), 1, toNullable(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, multiply('2022-01-01', r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 146 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > materialize(220)), 1, toNullable(0))) IGNORE NULLS AS r2 SELECT multiply((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100), intDiv(toUInt32(rtime), 20), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY t WITH TOTALS ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > materialize(220)), 1, toNullable(0))) IGNORE NULLS AS r2 SELECT multiply((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100), intDiv(toUInt32(rtime), 20), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY t WITH TOTALS ORDER BY t DESC': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != 100) AND (c > materialize(220)), 1, toNullable(0))) IGNORE NULLS AS r2 SELECT multiply((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100), intDiv(toUInt32(rtime), 20), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', toLowCardinality(10)) GROUP BY t WITH TOTALS ORDER BY t DESC. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 147 out of 1000 WITH sum(if((a >= materialize(toNullable(0))) AND (b != toLowCardinality(toUInt256(100))) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((b != toLowCardinality(100)) AND (c > materialize(220)), 1, toNullable(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toFixedString('2022-01-01', 10), toLowCardinality(10)) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY t DESC NULLS LAST Current AST is too long, discarding it and using the original AST as a start Fuzzing step 148 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > toLowCardinality(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 149 out of 1000 EXPLAIN `header, description` = true, indexes = true WITH sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)) AS r2 SELECT multiply(multiply(toNullable(materialize(test_alias__fuzz_9, materialize(1))), intDiv(toUInt32(rtime), 20), toNullable(20)), a, 1000) AS t, (r1 * materialize(100)) / plus(r1) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'EXPLAIN `header, description` = true, indexes = true WITH sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)) AS r2 SELECT multiply(multiply(toNullable(materialize(test_alias__fuzz_9, materialize(1))), intDiv(toUInt32(rtime), 20), toNullable(20)), a, 1000) AS t, (r1 * materialize(100)) / plus(r1) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Unknown setting "header, description" for EXPLAIN PLAN query. Supported settings: sorting, optimize, indexes, json, actions, description, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000034980e77 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496d3ee 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 150 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(toUInt256(20))) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY test_alias__fuzz_19 DESC, t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(toUInt256(20))) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY test_alias__fuzz_19 DESC, t ASC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'test_alias__fuzz_19' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(toUInt256(20))) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY test_alias__fuzz_19 DESC, t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 151 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster(sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) RESPECT NULLS / count() IGNORE NULLS, 'test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE toNullable(toNullable(1)) GROUP BY t ORDER BY t ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster(sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) RESPECT NULLS / count() IGNORE NULLS, 'test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE toNullable(toNullable(1)) GROUP BY t ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(in(s, ('a', 'b')), materialize(toUInt256(1)), 0)) RESPECT NULLS is found in wrong place in query: While processing sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bc5 7. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 8. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:348: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a9a7 9. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 10. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 11. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 12. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 13. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 14. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 152 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(toLowCardinality(220))), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, divide(r1 * materialize(100), toLowCardinality(toLowCardinality(23)), r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(toLowCardinality(220))), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, divide(r1 * materialize(100), toLowCardinality(toLowCardinality(23)), r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(toLowCardinality(220))), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, divide(r1 * materialize(100), toLowCardinality(toLowCardinality(23)), r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 153 out of 1000 WITH sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > toLowCardinality(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = materialize('2022-01-01') GROUP BY t ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > toLowCardinality(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = materialize('2022-01-01') GROUP BY t ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope WITH sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > toLowCardinality(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = materialize('2022-01-01') GROUP BY t ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 154 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > toLowCardinality(220)), 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > toLowCardinality(220)), 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > toLowCardinality(220)), 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 155 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != materialize(toNullable(toUInt256(100)))) AND (c > toLowCardinality(220)), 1, 0)) AS r2 SELECT multiply(toLowCardinality(toFixedString(' ', toUInt256(1))), intDiv(toUInt32(rtime), 20) * toNullable(20), 1000) AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != materialize(toNullable(toUInt256(100)))) AND (c > toLowCardinality(220)), 1, 0)) AS r2 SELECT multiply(toLowCardinality(toFixedString(' ', toUInt256(1))), intDiv(toUInt32(rtime), 20) * toNullable(20), 1000) AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != materialize(toNullable(toUInt256(100)))) AND (c > toLowCardinality(220)), 1, 0)) AS r2 SELECT multiply(toLowCardinality(toFixedString(' ', toUInt256(1))), intDiv(toUInt32(rtime), 20) * toNullable(20), 1000) AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 156 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND equals(c), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)) AS r2 SELECT multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) / count(), intDiv(toUInt32(rtime), 20), toNullable(20)) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND equals(c), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)) AS r2 SELECT multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) / count(), intDiv(toUInt32(rtime), 20), toNullable(20)) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND equals(c), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)) AS r2 SELECT multiply(sum(multiIf(s IN ('a', 'b'), 1, 0)) / count(), intDiv(toUInt32(rtime), 20), toNullable(20)) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 157 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > toLowCardinality(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() ASC, t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > toLowCardinality(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() ASC, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > toLowCardinality(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() ASC, t ASC NULLS LAST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 158 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 159 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals('2022-01-01') GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals('2022-01-01') GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals('2022-01-01') GROUP BY t ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 160 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20) * 20, round(divide(count()) * 100), 1000) AS t, (r1 * materialize(toUInt256(100))) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20) * 20, round(divide(count()) * 100), 1000) AS t, (r1 * materialize(toUInt256(100))) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20) * 20, round(divide(count()) * 100), 1000) AS t, (r1 * materialize(toUInt256(100))) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 161 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND greater(c, round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100), 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), materialize(1), 0)), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Current AST is too long, discarding it and using the original AST as a start Fuzzing step 162 out of 1000 WITH sum(if(t__fuzz_42, (a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (b != materialize(toNullable(100))) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if(t__fuzz_42, (a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (b != materialize(toNullable(100))) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Unknown expression identifier 't__fuzz_42' in scope WITH sum(if(t__fuzz_42, (a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (b != materialize(toNullable(100))) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 6. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 12. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 163 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, divide(r1 * 100, cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23, 23), currentDatabase(), t), r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, divide(r1 * 100, cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23, 23), currentDatabase(), t), r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, divide(r1 * 100, cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23, 23), currentDatabase(), t), r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 164 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day) GROUP BY t ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day) GROUP BY t ORDER BY t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day) GROUP BY t ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 165 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND greater(greaterOrEquals(a) AND (b != 100) AND (c = 0), c, 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND greater(greaterOrEquals(a) AND (b != 100) AND (c = 0), c, 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND greater(greaterOrEquals(a) AND (b != 100) AND (c = 0), c, 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 26. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 29. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 Fuzzing step 166 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 167 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 168 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(materialize('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY t ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(materialize('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY t ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize('test_cluster_two_shards'). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 8. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 169 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 170 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 171 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(toUInt128(1)), 0)), if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' WITH TOTALS ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(toUInt128(1)), 0)), if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' WITH TOTALS ORDER BY t ASC': Received from localhost:9000. DB::Exception: Aggregate function sum requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./src/AggregateFunctions/FactoryHelpers.h:27: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSum(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000002d9e0f95 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:717: ? @ 0x000000002a2b4ea3 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:211: DB::AggregateFunctionFactory::getImpl(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x00000000306e2801 7. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:124: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dcf59 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 12. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 172 out of 1000 WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 173 out of 1000 WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(74, toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, multiply(100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(74, toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, multiply(100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(74, toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, multiply(100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 174 out of 1000 WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND equals(c, round((sum(multiIf(s IN ('a', 'b'), materialize(1), sum(multiIf(1, toNullable(0))) RESPECT NULLS / count(), toLowCardinality(0))) IGNORE NULLS / count()) * 100), 0), 1, 0)) AS r1, sum(if((a >= 0) AND notEquals(b, toFixedString(' ', toUInt128(toUInt128(1))), 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND equals(c, round((sum(multiIf(s IN ('a', 'b'), materialize(1), sum(multiIf(1, toNullable(0))) RESPECT NULLS / count(), toLowCardinality(0))) IGNORE NULLS / count()) * 100), 0), 1, 0)) AS r1, sum(if((a >= 0) AND notEquals(b, toFixedString(' ', toUInt128(toUInt128(1))), 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND equals(c, round((sum(multiIf(s IN ('a', 'b'), materialize(1), sum(multiIf(1, toNullable(0))) RESPECT NULLS / count(), toLowCardinality(0))) IGNORE NULLS / count()) * 100), 0), 1, 0)) AS r1, sum(if((a >= 0) AND notEquals(b, toFixedString(' ', toUInt128(toUInt128(1))), 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC NULLS FIRST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 175 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 176 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 177 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUI. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 178 out of 1000 EXPLAIN CURRENT TRANSACTION WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('sum'): sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUI. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 179 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 180 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 181 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 182 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 183 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 184 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 185 out of 1000 EXPLAIN ESTIMATE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 186 out of 1000 EXPLAIN ESTIMATE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 187 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 189 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 190 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 191 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 192 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 193 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 194 out of 1000 EXPLAIN CURRENT TRANSACTION WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('sum'): sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUI. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 195 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 196 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 197 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 198 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 199 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 200 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 201 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 202 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 203 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 204 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 205 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 206 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 207 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 208 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 209 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 210 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 211 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 212 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 213 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 214 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 215 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 216 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 217 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 218 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUI. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 219 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 220 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 221 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUI. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 222 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 223 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 224 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 225 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 226 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 227 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 228 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 229 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 230 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 231 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 232 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 233 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 234 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 235 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 236 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 237 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 238 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 239 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 240 out of 1000 EXPLAIN ESTIMATE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 241 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 242 out of 1000 EXPLAIN CURRENT TRANSACTION WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('sum'): sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUI. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 243 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 244 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 245 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 246 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 247 out of 1000 EXPLAIN ESTIMATE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 248 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 249 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 250 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUI. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 251 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 252 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 253 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 254 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 255 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 256 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 257 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 258 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 259 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 260 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 261 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 262 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUI. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 263 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 264 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 265 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 266 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 267 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 268 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 269 out of 1000 EXPLAIN CURRENT TRANSACTION WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('sum'): sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUI. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 270 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 271 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 272 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 273 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 274 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 275 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 276 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 277 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 278 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 279 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 280 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 281 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 282 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 283 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 284 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 285 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 286 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 287 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 288 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 289 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 290 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 291 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 292 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUI. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 293 out of 1000 EXPLAIN ESTIMATE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 294 out of 1000 EXPLAIN ESTIMATE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 295 out of 1000 EXPLAIN ESTIMATE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 296 out of 1000 EXPLAIN ESTIMATE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 297 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 298 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 299 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 300 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUI. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 301 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 302 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 303 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 304 out of 1000 WITH sum(if((a >= 0) AND cluster(toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)), currentDatabase(), t) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND cluster(toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)), currentDatabase(), t) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND cluster(toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)), currentDatabase(), t) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 23. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 29. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 Fuzzing step 305 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 306 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 307 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 308 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 309 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 310 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 311 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 312 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 313 out of 1000 WITH sum(if((a >= materialize(0)) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 314 out of 1000 WITH sum(if((a >= materialize(0)) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 315 out of 1000 WITH sum(if((a >= materialize(0)) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 316 out of 1000 WITH sum(if((a >= materialize(version_pair[materialize(materialize(toNullable(1)))], 0)) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), toUInt128(20)) * toNullable(20)) * 1000 AS t, (r1 * toLowCardinality(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= materialize(version_pair[materialize(materialize(toNullable(1)))], 0)) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), toUInt128(20)) * toNullable(20)) * 1000 AS t, (r1 * toLowCardinality(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope WITH sum(if((a >= materialize(version_pair[materialize(materialize(toNullable(1)))], 0)) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), toUInt128(20)) * toNullable(20)) * 1000 AS t, (r1 * toLowCardinality(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 24. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 317 out of 1000 WITH sum(if((a >= materialize(0)) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS LAST, t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 318 out of 1000 WITH sum(if((a >= materialize(0)) AND (b != 100) AND equals(c), 1, 0)) AS r1, sum(if((a >= toUInt256(0)) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, 220, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS LAST, t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= materialize(0)) AND (b != 100) AND equals(c), 1, 0)) AS r1, sum(if((a >= toUInt256(0)) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, 220, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS LAST, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= materialize(0)) AND (b != 100) AND equals(c), 1, 0)) AS r1, sum(if((a >= toUInt256(0)) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, 220, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS LAST, t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 319 out of 1000 WITH sum(if((a >= materialize(0)) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS FIRST, t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 320 out of 1000 WITH sum(if((a >= materialize(0)) AND (b != 100) AND equals(0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= materialize(0)) AND (b != 100) AND equals(0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= materialize(0)) AND (b != 100) AND equals(0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 321 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toLowCardinality(220)), 1, toLowCardinality(0))) AS r2 SELECT multiply(20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS FIRST, t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toLowCardinality(220)), 1, toLowCardinality(0))) AS r2 SELECT multiply(20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS FIRST, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toLowCardinality(220)), 1, toLowCardinality(0))) AS r2 SELECT multiply(20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS FIRST, t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 322 out of 1000 WITH sum(if((a >= materialize(toLowCardinality(0))) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 323 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, toLowCardinality(0))) RESPECT NULLS AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, toLowCardinality(0))) RESPECT NULLS AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Function sum does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x00000000306e43d6 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x00000000306df2f4 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc10d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 11. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 324 out of 1000 WITH sum(if(greaterOrEquals(materialize(toLowCardinality(0))) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND notEquals(b) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS FIRST Error on processing query 'WITH sum(if(greaterOrEquals(materialize(toLowCardinality(0))) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND notEquals(b) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope WITH sum(if(greaterOrEquals(materialize(toLowCardinality(0))) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND notEquals(b) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 325 out of 1000 WITH sum(if(greaterOrEquals(a) AND (b != toNullable(toUInt256(100))) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST Error on processing query 'WITH sum(if(greaterOrEquals(a) AND (b != toNullable(toUInt256(100))) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope WITH sum(if(greaterOrEquals(a) AND (b != toNullable(toUInt256(100))) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 326 out of 1000 WITH sum(if((a >= materialize(toLowCardinality(0))) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS FIRST Got boring AST Fuzzing step 327 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 328 out of 1000 WITH sum(if(day = '2022-01-01', toLowCardinality(10), (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS LAST, t ASC NULLS FIRST Error on processing query 'WITH sum(if(day = '2022-01-01', toLowCardinality(10), (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS LAST, t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 5, should be 3: In scope WITH sum(if(day = '2022-01-01', toLowCardinality(10), (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS LAST, t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 329 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 330 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), toNullable(toUInt256(1)), 0)) AS r1, sum(if(greaterOrEquals(0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WITH TOTALS ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS LAST, t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), toNullable(toUInt256(1)), 0)) AS r1, sum(if(greaterOrEquals(0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WITH TOTALS ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS LAST, t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), toNullable(toUInt256(1)), 0)) AS r1, sum(if(greaterOrEquals(0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WITH TOTALS ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS LAST, t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 331 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND equals(c), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND equals(c), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND equals(c), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 332 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20), toNullable(toFixedString(' ', 1)), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS FIRST, t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20), toNullable(toFixedString(' ', 1)), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS FIRST, t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20), toNullable(toFixedString(' ', 1)), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS FIRST, t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 333 out of 1000 WITH sum(if((a >= toLowCardinality(toLowCardinality(toUInt256(1)), 0)) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(220, 'test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= toLowCardinality(toLowCardinality(toUInt256(1)), 0)) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(220, 'test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Argument 'cluster_name' must be a literal with type String, got UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, std::basic_string_view>>(int, FormatStringHelperImpl::type, std::type_identity>>::type, std::type_identity>>::type>, String const&, std::basic_string_view>&&, std::basic_string_view>&&) @ 0x0000000038d43597 4. ./build_docker/./src/Storages/checkAndGetLiteralArgument.cpp:39: String DB::checkAndGetLiteralArgument(DB::ASTLiteral const&, String const&) @ 0x0000000038d4184d 5. ./build_docker/./src/Storages/checkAndGetLiteralArgument.cpp:31: String DB::checkAndGetLiteralArgument(std::shared_ptr const&, String const&) @ 0x0000000038d40cf9 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3fd0 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 334 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = toNullable(0)), 1, 0)) AS r1, sum(if((a >= materialize(toUInt256(0))) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WITH TOTALS ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS LAST, t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = toNullable(0)), 1, 0)) AS r1, sum(if((a >= materialize(toUInt256(0))) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WITH TOTALS ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS LAST, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Column rtime is not under aggregate function and not in GROUP BY keys. In query WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = toNullable(0)), 1, 0)) AS r1, sum(if((a >= materialize(toUInt256(0))) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WITH TOTALS ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS LAST, t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 9. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 10. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 11. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 12. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 13. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 14. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 15. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000335939dc 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 335 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, materialize(toLowCardinality(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, toLowCardinality(toLowCardinality(0)))) AS r2 SELECT (intDiv(toUInt32(rtime)) * 20) * materialize(1000) AS t, divide(multiply(r1)) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, materialize(toLowCardinality(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, toLowCardinality(toLowCardinality(0)))) AS r2 SELECT (intDiv(toUInt32(rtime)) * 20) * materialize(1000) AS t, divide(multiply(r1)) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, materialize(toLowCardinality(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, toLowCardinality(toLowCardinality(0)))) AS r2 SELECT (intDiv(toUInt32(rtime)) * 20) * materialize(1000) AS t, divide(multiply(r1)) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 336 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 337 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(toUInt128(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), count(toLowCardinality(materialize(toNullable(1)))) IGNORE NULLS, test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(toUInt128(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), count(toLowCardinality(materialize(toNullable(1)))) IGNORE NULLS, test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function count(toLowCardinality(materialize(_CAST(1, 'Nullable(UInt8)')))) IGNORE NULLS is found in wrong place in query: While processing count(toLowCardinality(materialize(_CAST(1, 'Nullable(UInt8)')))) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a99b 7. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 8. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 9. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 10. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 11. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 12. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd5a47 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 338 out of 1000 WITH sum(if(((sum(multiIf(in(s, cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(23)), toLowCardinality(toUInt256(23)), currentDatabase(), t), ('a', 'b')), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), 0)) IGNORE NULLS / count()) * 100) AND (b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST Error on processing query 'WITH sum(if(((sum(multiIf(in(s, cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(23)), toLowCardinality(toUInt256(23)), currentDatabase(), t), ('a', 'b')), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), 0)) IGNORE NULLS / count()) * 100) AND (b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if(((sum(multiIf(in(s, cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(23)), toLowCardinality(toUInt256(23)), currentDatabase(), t), ('a', 'b')), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), 0)) IGNORE NULLS / count()) * 100) AND (b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 30. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 339 out of 1000 WITH sum(s IN ('a', 'b'), if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND greater(220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS FIRST Error on processing query 'WITH sum(s IN ('a', 'b'), if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND greater(220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(s IN ('a', 'b'), if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND greater(220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS FIRST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 13. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 340 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND greater(nums__fuzz_17, c, 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(t__fuzz_21, 1000) AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC, t ASC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND greater(nums__fuzz_17, c, 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(t__fuzz_21, 1000) AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_21' in scope WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND greater(nums__fuzz_17, c, 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(t__fuzz_21, 1000) AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC, t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 341 out of 1000 WITH sum(if(notEquals(b, toLowCardinality(1), 100) AND (c = materialize(toUInt128(0))), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20), sum(multiIf(s IN ('a', 'b'), toNullable(materialize(toNullable(1))), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS, 20) * materialize(1000) AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC Error on processing query 'WITH sum(if(notEquals(b, toLowCardinality(1), 100) AND (c = materialize(toUInt128(0))), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20), sum(multiIf(s IN ('a', 'b'), toNullable(materialize(toNullable(1))), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS, 20) * materialize(1000) AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if(notEquals(b, toLowCardinality(1), 100) AND (c = materialize(toUInt128(0))), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20), sum(multiIf(s IN ('a', 'b'), toNullable(materialize(toNullable(1))), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS, 20) * materialize(1000) AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 342 out of 1000 WITH sum(if((b != 100) AND (c = 0), greater(c, toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))), 220), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(toUInt256(0)))) AS r2 SELECT (intDiv(toUInt32(rtime)) * 20) * 1000 AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), greater(c, toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))), 220), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(toUInt256(0)))) AS r2 SELECT (intDiv(toUInt32(rtime)) * 20) * 1000 AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 1, should be 2: In scope WITH sum(if((b != 100) AND (c = 0), greater(c, toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))), 220), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(toUInt256(0)))) AS r2 SELECT (intDiv(toUInt32(rtime)) * 20) * 1000 AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 343 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 344 out of 1000 WITH sum(if(and(c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS LAST, t ASC Error on processing query 'WITH sum(if(and(c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS LAST, t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope WITH sum(if(and(c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS LAST, t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 19. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 345 out of 1000 WITH sum(toFixedString('test_cluster_two_shards', toUInt256(23)), if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) WITH ROLLUP ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC Error on processing query 'WITH sum(toFixedString('test_cluster_two_shards', toUInt256(23)), if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) WITH ROLLUP ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343d54d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 346 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(toNullable(100))) AND 1 AND (c > toNullable(220)), materialize(toUInt256(1)), 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toLowCardinality(1000) AS t, (r1 * toUInt256(100)) / plus(r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS FIRST, t ASC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(toNullable(100))) AND 1 AND (c > toNullable(220)), materialize(toUInt256(1)), 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toLowCardinality(1000) AS t, (r1 * toUInt256(100)) / plus(r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS FIRST, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function plus doesn't match: passed 1, should be 2: In scope WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(toNullable(100))) AND 1 AND (c > toNullable(220)), materialize(toUInt256(1)), 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toLowCardinality(1000) AS t, (r1 * toUInt256(100)) / plus(r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC NULLS FIRST, t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 347 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC, t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 348 out of 1000 WITH sum(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0), if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC, t DESC NULLS FIRST Error on processing query 'WITH sum(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0), if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC, t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope WITH sum(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0), if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC, t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 349 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC, t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 350 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, divide(r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), toUInt256(23), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, divide(r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), toUInt256(23), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Argument 'table' must be a literal with type String, got UInt256. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, std::basic_string_view>>(int, FormatStringHelperImpl::type, std::type_identity>>::type, std::type_identity>>::type>, String const&, std::basic_string_view>&&, std::basic_string_view>&&) @ 0x0000000038d43597 4. ./build_docker/./src/Storages/checkAndGetLiteralArgument.cpp:39: String DB::checkAndGetLiteralArgument(DB::ASTLiteral const&, String const&) @ 0x0000000038d4184d 5. ./build_docker/./src/Storages/checkAndGetLiteralArgument.cpp:31: String DB::checkAndGetLiteralArgument(std::shared_ptr const&, String const&) @ 0x0000000038d40cf9 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd5e8f 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 351 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND notEquals(100) AND 1 AND (c > toNullable(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC NULLS LAST, t ASC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND notEquals(100) AND 1 AND (c > toNullable(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC NULLS LAST, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND notEquals(100) AND 1 AND (c > toNullable(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC NULLS LAST, t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 352 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / plus(r1) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC, t ASC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / plus(r1) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function plus doesn't match: passed 1, should be 2: In scope WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / plus(r1) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC, t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 353 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC, t ASC NULLS LAST Got boring AST Fuzzing step 354 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC, t ASC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC, t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 355 out of 1000 WITH sum(if((b != 100) AND r1 AND equals(c), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC, t ASC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND r1 AND equals(c), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'r1' in scope WITH sum(if((b != 100) AND r1 AND equals(c), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) DESC, t ASC NULLS LAST. Maybe you meant: ['r1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 356 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), toNullable(1), toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(materialize('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), toNullable(1), toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(materialize('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize('test_cluster_two_shards'). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 8. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 357 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, 0)) AS r2 SELECT (b != 100) AND (c > 220), (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, 0)) AS r2 SELECT (b != 100) AND (c > 220), (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Column b is not under aggregate function and not in GROUP BY keys. In query WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, 0)) AS r2 SELECT (b != 100) AND (c > 220), (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY toUInt128(toLowCardinality(toLowCardinality(1))) ASC, t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 9. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 10. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033593a48 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 358 out of 1000 WITH sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 359 out of 1000 WITH sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(toLowCardinality(toUInt256(220)))), 1, toLowCardinality(toLowCardinality(1), 0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE toFixedString(toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)), 23) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(toLowCardinality(toUInt256(220)))), 1, toLowCardinality(toLowCardinality(1), 0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE toFixedString(toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)), 23) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(toLowCardinality(toUInt256(220)))), 1, toLowCardinality(toLowCardinality(1), 0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE toFixedString(toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)), 23) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 18. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 360 out of 1000 WITH sum(if((b != 100) AND (c = 0), toNullable(1), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, multiply(r1, materialize(toFixedString(' ', 1)), 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WITH TOTALS ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), toNullable(1), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, multiply(r1, materialize(toFixedString(' ', 1)), 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WITH TOTALS ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope WITH sum(if((b != 100) AND (c = 0), toNullable(1), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, multiply(r1, materialize(toFixedString(' ', 1)), 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WITH TOTALS ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 361 out of 1000 WITH sum(if((b != 100) AND (c = toLowCardinality(toNullable(0))), toLowCardinality(toNullable(1)), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 362 out of 1000 WITH sum(if((b != 100) AND (c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0))), toLowCardinality(toNullable(1)))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(nums__fuzz_6, 0))) AS r2 SELECT multiply(materialize(toNullable(' ')), intDiv(toUInt32(rtime), 20) * 20, toUInt256(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC Error on processing query 'WITH sum(if((b != 100) AND (c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0))), toLowCardinality(toNullable(1)))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(nums__fuzz_6, 0))) AS r2 SELECT multiply(materialize(toNullable(' ')), intDiv(toUInt32(rtime), 20) * 20, toUInt256(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope WITH sum(if((b != 100) AND (c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0))), toLowCardinality(toNullable(1)))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(nums__fuzz_6, 0))) AS r2 SELECT multiply(materialize(toNullable(' ')), intDiv(toUInt32(rtime), 20) * 20, toUInt256(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 363 out of 1000 WITH sum(if((b != 100) AND (c = toLowCardinality(toNullable(0))), toLowCardinality(1), 0)) AS r1, sum(if(1, toLowCardinality(cluster('test_cluster_two_shards', currentDatabase(), t), 0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC Error on processing query 'WITH sum(if((b != 100) AND (c = toLowCardinality(toNullable(0))), toLowCardinality(1), 0)) AS r1, sum(if(1, toLowCardinality(cluster('test_cluster_two_shards', currentDatabase(), t), 0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC': Received from localhost:9000. DB::Exception: Function with name 'cluster' does not exist. In scope WITH sum(if((b != 100) AND (c = toLowCardinality(toNullable(0))), toLowCardinality(1), 0)) AS r1, sum(if(1, toLowCardinality(cluster('test_cluster_two_shards', currentDatabase(), t), 0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toUInt256(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000002141cd37 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3232: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b971c 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 17. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 26. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 364 out of 1000 WITH sum(if((b != 100) AND (c = toLowCardinality(toNullable(materialize(0)))), toLowCardinality(toNullable(1)), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20) * 20) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC Error on processing query 'WITH sum(if((b != 100) AND (c = toLowCardinality(toNullable(materialize(0)))), toLowCardinality(toNullable(1)), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20) * 20) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope WITH sum(if((b != 100) AND (c = toLowCardinality(toNullable(materialize(0)))), toLowCardinality(toNullable(1)), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20) * 20) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 365 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), toLowCardinality(toNullable(1)), materialize(toLowCardinality(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 366 out of 1000 WITH sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), materialize(toLowCardinality(0)))) AS r1, sum(if((a >= toNullable(0)) AND (b != 100) AND 1 AND greater(c, nums__fuzz_28, 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), materialize(toLowCardinality(0)))) AS r1, sum(if((a >= toNullable(0)) AND (b != 100) AND 1 AND greater(c, nums__fuzz_28, 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_28' in scope WITH sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), materialize(toLowCardinality(0)))) AS r1, sum(if((a >= toNullable(0)) AND (b != 100) AND 1 AND greater(c, nums__fuzz_28, 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 18. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 367 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), toLowCardinality(toNullable(1)), materialize(toLowCardinality(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 368 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), toLowCardinality(toNullable(1)), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 369 out of 1000 EXPLAIN ESTIMATE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 370 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 371 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 372 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 373 out of 1000 EXPLAIN WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 374 out of 1000 EXPLAIN WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 375 out of 1000 EXPLAIN CURRENT TRANSACTION WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('sum'): sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 376 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 377 out of 1000 WITH sum(if((b != 100) AND equals(c, sum(if((a >= materialize(0)) AND (b != 100) AND (c = 0), 1, 0)), toNullable(0)), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND toUInt256(1) AND (c > 220), 1, 0)) RESPECT NULLS AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND equals(c, sum(if((a >= materialize(0)) AND (b != 100) AND (c = 0), 1, 0)), toNullable(0)), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND toUInt256(1) AND (c > 220), 1, 0)) RESPECT NULLS AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope WITH sum(if((b != 100) AND equals(c, sum(if((a >= materialize(0)) AND (b != 100) AND (c = 0), 1, 0)), toNullable(0)), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND toUInt256(1) AND (c > 220), 1, 0)) RESPECT NULLS AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 378 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 379 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 380 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 381 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 382 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 383 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 384 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 385 out of 1000 WITH sum(r2, if((b != 100) AND (c = 0), toNullable(1), materialize(materialize(23), 0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE cluster(toLowCardinality(multiply(sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS, toFixedString(toLowCardinality(toFixedString(' ', 1)), 1), toNullable(100)), 'test_cluster_two_shards'), currentDatabase(), test_alias) WITH TOTALS ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(r2, if((b != 100) AND (c = 0), toNullable(1), materialize(materialize(23), 0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE cluster(toLowCardinality(multiply(sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS, toFixedString(toLowCardinality(toFixedString(' ', 1)), 1), toNullable(100)), 'test_cluster_two_shards'), currentDatabase(), test_alias) WITH TOTALS ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH sum(r2, if((b != 100) AND (c = 0), toNullable(1), materialize(materialize(23), 0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE cluster(toLowCardinality(multiply(sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS, toFixedString(toLowCardinality(toFixedString(' ', 1)), 1), toNullable(100)), 'test_cluster_two_shards'), currentDatabase(), test_alias) WITH TOTALS ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 18. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 386 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 387 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 388 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 389 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 390 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 391 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 392 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 393 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 394 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 395 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 396 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 EXPLAIN PIPELINE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 398 out of 1000 EXPLAIN PIPELINE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 399 out of 1000 EXPLAIN WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 400 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 401 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 402 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 403 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 404 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(materialize(0))), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) RESPECT NULLS AS r2 SELECT multiply(toFixedString(materialize(' '), toLowCardinality(1)), intDiv(toUInt32(rtime), 20), 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = toNullable(materialize(0))), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) RESPECT NULLS AS r2 SELECT multiply(toFixedString(materialize(' '), toLowCardinality(1)), intDiv(toUInt32(rtime), 20), 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope WITH sum(if((b != 100) AND (c = toNullable(materialize(0))), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) RESPECT NULLS AS r2 SELECT multiply(toFixedString(materialize(' '), toLowCardinality(1)), intDiv(toUInt32(rtime), 20), 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 405 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 406 out of 1000 EXPLAIN WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 407 out of 1000 EXPLAIN WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 408 out of 1000 EXPLAIN WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 409 out of 1000 EXPLAIN WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 410 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 411 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 412 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 413 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 414 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 415 out of 1000 WITH sum(if((b != 100) AND (c = 0), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), toNullable(toNullable(' ')), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC Error on processing query 'WITH sum(if((b != 100) AND (c = 0), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), toNullable(toNullable(' ')), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC': Received from localhost:9000. DB::Exception: Table default.` ` does not exist. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Databases/IDatabase.cpp:37: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x0000000032b14381 5. ./build_docker/./src/Interpreters/DatabaseCatalog.cpp:433: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000003399fc33 6. ./build_docker/./src/Interpreters/DatabaseCatalog.cpp:957: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x00000000339b4ac1 7. ./build_docker/./src/Storages/getStructureOfRemoteTable.cpp:54: DB::getStructureOfRemoteTableInShard(DB::Cluster const&, DB::Cluster::ShardInfo const&, DB::StorageID const&, std::shared_ptr, std::shared_ptr const&) @ 0x0000000038d4557f 8. ./contrib/boost/boost/multi_index_container.hpp:677: DB::getStructureOfRemoteTable(DB::Cluster const&, DB::StorageID const&, std::shared_ptr, std::shared_ptr const&) @ 0x0000000038d50473 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:596: DB::TableFunctionRemote::getActualTableStructure(std::shared_ptr, bool) const @ 0x000000002fde1389 10. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fddf87a 11. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 12. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 416 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 417 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 418 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 419 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 420 out of 1000 EXPLAIN ESTIMATE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 421 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 422 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 423 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 424 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 425 out of 1000 EXPLAIN CURRENT TRANSACTION WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('sum'): sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 426 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 427 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 428 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 429 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 430 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 431 out of 1000 WITH sum(if((b != 100) AND (c = 0), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 1, should be 2: In scope WITH sum(if((b != 100) AND (c = 0), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 432 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 433 out of 1000 EXPLAIN CURRENT TRANSACTION WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('sum'): sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 434 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 435 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 436 out of 1000 EXPLAIN WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 437 out of 1000 EXPLAIN WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 438 out of 1000 EXPLAIN WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 439 out of 1000 EXPLAIN WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 440 out of 1000 EXPLAIN WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 441 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 442 out of 1000 EXPLAIN ESTIMATE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 443 out of 1000 EXPLAIN PIPELINE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 444 out of 1000 EXPLAIN CURRENT TRANSACTION WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('sum'): sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 445 out of 1000 EXPLAIN ESTIMATE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 446 out of 1000 EXPLAIN PIPELINE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 447 out of 1000 EXPLAIN PIPELINE WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 448 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 449 out of 1000 WITH sum(if(if((b != 100) AND (c > 220), 1, 0) AND (b != 100) AND (c = 0), toNullable(1), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND greater(r1 * materialize(100), c, 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(materialize('test_cluster_two_shards')), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if(if((b != 100) AND (c > 220), 1, 0) AND (b != 100) AND (c = 0), toNullable(1), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND greater(r1 * materialize(100), c, 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(materialize('test_cluster_two_shards')), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): toLowCardinality(materialize('test_cluster_two_shards')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 8. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 450 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 451 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= 0) AND ((sum(sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS, multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / plus(r1, if((b != 100) AND cluster(toLowCardinality(toNullable(toFixedString('test_cluster_two_shards', materialize(23)))), currentDatabase(), test_alias) AND (c = toLowCardinality((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0)), toNullable(1)), r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= 0) AND ((sum(sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS, multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / plus(r1, if((b != 100) AND cluster(toLowCardinality(toNullable(toFixedString('test_cluster_two_shards', materialize(23)))), currentDatabase(), test_alias) AND (c = toLowCardinality((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0)), toNullable(1)), r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= 0) AND ((sum(sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS, multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / plus(r1, if((b != 100) AND cluster(toLowCardinality(toNullable(toFixedString('test_cluster_two_shards', materialize(23)))), currentDatabase(), test_alias) AND (c = toLowCardinality((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0)), toNullable(1)), r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 452 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY t ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 453 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), 1, 0)) AS r1, sum(if(1, 0)) AS r2 SELECT intDiv(' ', toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY t ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND (c = toNullable(0)), 1, 0)) AS r1, sum(if(1, 0)) AS r2 SELECT intDiv(' ', toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY t ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 3, should be 2: In scope WITH sum(if((b != 100) AND (c = toNullable(0)), 1, 0)) AS r1, sum(if(1, 0)) AS r2 SELECT intDiv(' ', toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY t ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 454 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(toUInt128(0))), toNullable(1), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 455 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 456 out of 1000 WITH sum(if((b != 100) AND equals(0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) PREWHERE (a >= 0) AND (a >= materialize(0)) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 220)) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND equals(0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) PREWHERE (a >= 0) AND (a >= materialize(0)) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 220)) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH sum(if((b != 100) AND equals(0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) PREWHERE (a >= 0) AND (a >= materialize(0)) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 220)) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 457 out of 1000 WITH sum(if(notEquals(b) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if(notEquals(b) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope WITH sum(if(notEquals(b) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 458 out of 1000 EXPLAIN PIPELINE compact = true WITH sum(if((b != 100) AND (c = 0), toNullable(1), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE compact = true WITH sum(if((b != 100) AND (c = 0), toNullable(1), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 459 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), 0)) AS r1, sum(if(nums__fuzz_6 AND (a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = toNullable(0)), 0)) AS r1, sum(if(nums__fuzz_6 AND (a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 1, should be 2: In scope WITH sum(if((b != 100) AND (c = toNullable(0)), 0)) AS r1, sum(if(nums__fuzz_6 AND (a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 460 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 461 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 463 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), 1, 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * toUInt256(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY if((b != 100) AND (c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0))), toLowCardinality(toNullable(1))) ASC, t ASC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = toNullable(0)), 1, 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * toUInt256(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY if((b != 100) AND (c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0))), toLowCardinality(toNullable(1))) ASC, t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((b != 100) AND (c = toNullable(0)), 1, 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * toUInt256(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY if((b != 100) AND (c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0))), toLowCardinality(toNullable(1))) ASC, t ASC NULLS FIRST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 31. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 Fuzzing step 464 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(t__fuzz_29, if((a >= materialize(0)) AND (b != 100) AND toLowCardinality(1) AND toNullable(toLowCardinality(23)) AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC Error on processing query 'WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(t__fuzz_29, if((a >= materialize(0)) AND (b != 100) AND toLowCardinality(1) AND toNullable(toLowCardinality(23)) AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_29' in scope WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(t__fuzz_29, if((a >= materialize(0)) AND (b != 100) AND toLowCardinality(1) AND toNullable(toLowCardinality(23)) AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 10. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 465 out of 1000 WITH sum(if((b != 100) AND (c = 0), 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH sum(if((b != 100) AND (c = 0), 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 466 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= materialize(toLowCardinality(220), 0)) AND (b != 100) AND toLowCardinality(1) AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / plus(toFixedString(23), r1, r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC Error on processing query 'WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= materialize(toLowCardinality(220), 0)) AND (b != 100) AND toLowCardinality(1) AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / plus(toFixedString(23), r1, r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= materialize(toLowCardinality(220), 0)) AND (b != 100) AND toLowCardinality(1) AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / plus(toFixedString(23), r1, r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 467 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 468 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 469 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(toNullable(0))), 1, 0)) AS r1, sum(if((a >= materialize(toFixedString(' ', toUInt256(1)), 0)) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = toNullable(toNullable(0))), 1, 0)) AS r1, sum(if((a >= materialize(toFixedString(' ', toUInt256(1)), 0)) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH sum(if((b != 100) AND (c = toNullable(toNullable(0))), 1, 0)) AS r1, sum(if((a >= materialize(toFixedString(' ', toUInt256(1)), 0)) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 23. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 29. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 Fuzzing step 470 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), 1, 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(1))) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND (c = toNullable(0)), 1, 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(1))) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH sum(if((b != 100) AND (c = toNullable(0)), 1, 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(1))) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 471 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE count(1) IGNORE NULLS GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE count(1) IGNORE NULLS GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function count(1) IGNORE NULLS is found in PREWHERE in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x000000000df2a32d 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:43: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335a0c05 5. ./build_docker/./src/Analyzer/AggregationUtils.cpp:70: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x00000000335a14c7 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000335911a6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 472 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), 1, 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(toNullable(1)), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(toUInt128(100)), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND (c = toNullable(0)), 1, 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(toNullable(1)), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(toUInt128(100)), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function currentDatabase doesn't match: passed 1, should be 0: In scope WITH sum(if((b != 100) AND (c = toNullable(0)), 1, 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(toNullable(1)), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(toUInt128(100)), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 473 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(t__fuzz_41, 0)), toNullable(1), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), materialize(0))) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = toNullable(t__fuzz_41, 0)), toNullable(1), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), materialize(0))) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_41' in scope WITH sum(if((b != 100) AND (c = toNullable(t__fuzz_41, 0)), toNullable(1), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), materialize(0))) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 21. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 30. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 474 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if(1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * toLowCardinality(toUInt128(100))) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC Error on processing query 'WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if(1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * toLowCardinality(toUInt128(100))) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if(1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * toLowCardinality(toUInt128(100))) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 475 out of 1000 WITH sum(if((b != 100) AND ((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= materialize(materialize(toNullable(0)))) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND ((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= materialize(materialize(toNullable(0)))) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((b != 100) AND ((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100) AND (c = toNullable(0)), toNullable(1), 0)) AS r1, sum(if((a >= materialize(materialize(toNullable(0)))) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 30. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 476 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT multiply(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT multiply(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope WITH sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT multiply(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 477 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), 1, 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 478 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 479 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT multiply(round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toLowCardinality(toNullable(100)))), intDiv(toUInt32(rtime), 20), 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT multiply(round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toLowCardinality(toNullable(100)))), intDiv(toUInt32(rtime), 20), 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT multiply(round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(toLowCardinality(toNullable(100)))), intDiv(toUInt32(rtime), 20), 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 480 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toUInt256(100)) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 481 out of 1000 WITH sum(if(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))), notEquals(toLowCardinality(0), b, 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE t__fuzz_5 GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))), notEquals(toLowCardinality(0), b, 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE t__fuzz_5 GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 3, should be 2: In scope WITH sum(if(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))), notEquals(toLowCardinality(0), b, 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE t__fuzz_5 GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 21. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 30. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 482 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toUInt256(100)) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 483 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toUInt256(100)) AND 1 AND (c > 220), toUInt128(1), materialize(0))) AS r2 SELECT intDiv(toUInt32(rtime)) * toUInt128(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toUInt256(100)) AND 1 AND (c > 220), toUInt128(1), materialize(0))) AS r2 SELECT intDiv(toUInt32(rtime)) * toUInt128(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 1, should be 2: In scope WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toUInt256(100)) AND 1 AND (c > 220), toUInt128(1), materialize(0))) AS r2 SELECT intDiv(toUInt32(rtime)) * toUInt128(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 484 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), toUInt128(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 486 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 487 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 488 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 489 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 490 out of 1000 WITH sum(if(notEquals(b, cluster('test_cluster_two_shards', currentDatabase(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)), t), 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if(greaterOrEquals(t__fuzz_27, a, toNullable(0)) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if(notEquals(b, cluster('test_cluster_two_shards', currentDatabase(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)), t), 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if(greaterOrEquals(t__fuzz_27, a, toNullable(0)) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function currentDatabase doesn't match: passed 1, should be 0: In scope WITH sum(if(notEquals(b, cluster('test_cluster_two_shards', currentDatabase(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)), t), 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if(greaterOrEquals(t__fuzz_27, a, toNullable(0)) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 26. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 29. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 Fuzzing step 491 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE sum(if((a >= 0) AND notEquals(100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(100, 0))) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE sum(if((a >= 0) AND notEquals(100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(100, 0))) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE sum(if((a >= 0) AND notEquals(100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(100, 0))) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 492 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if(greaterOrEquals(a, materialize(toLowCardinality(toUInt256(23))), 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if(greaterOrEquals(a, materialize(toLowCardinality(toUInt256(23))), 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 3, should be 2: In scope WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if(greaterOrEquals(a, materialize(toLowCardinality(toUInt256(23))), 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 493 out of 1000 WITH sum(if(notEquals(nums__fuzz_12, b, 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if(notEquals(nums__fuzz_12, b, 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_12' in scope WITH sum(if(notEquals(nums__fuzz_12, b, 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 18. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 494 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, divide(multiply(100)) AS m FROM cluster('test_cluster_two_shards', currentDatabase(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), toNullable(23)), 23), 23), test_alias) WITH TOTALS ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, divide(multiply(100)) AS m FROM cluster('test_cluster_two_shards', currentDatabase(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), toNullable(23)), 23), 23), test_alias) WITH TOTALS ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function currentDatabase doesn't match: passed 2, should be 0: In scope WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, divide(multiply(100)) AS m FROM cluster('test_cluster_two_shards', currentDatabase(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), toNullable(23)), 23), 23), test_alias) WITH TOTALS ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 495 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND test_alias AND (b != 100) AND 1 AND (c > toUInt128(220)), materialize(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, multiply(toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), toLowCardinality(toNullable(23))), 23), 23), r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND test_alias AND (b != 100) AND 1 AND (c > toUInt128(220)), materialize(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, multiply(toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), toLowCardinality(toNullable(23))), 23), 23), r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND test_alias AND (b != 100) AND 1 AND (c > toUInt128(220)), materialize(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, multiply(toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), toLowCardinality(toNullable(23))), 23), 23), r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 496 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND toUInt128(1) AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND toUInt128(1) AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type (UInt128) of 3 argument of function and: In scope WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND toUInt128(1) AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0d0e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 19. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 497 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND greater(c, c, 220), toNullable(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND greater(c, c, 220), toNullable(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function greater doesn't match: passed 3, should be 2: In scope WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND greater(c, c, 220), toNullable(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 498 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Got boring AST Fuzzing step 499 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if(greaterOrEquals(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), a, 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if(greaterOrEquals(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), a, 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 3, should be 2: In scope WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if(greaterOrEquals(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), a, 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 500 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 501 out of 1000 WITH sum(if(notEquals(b) AND (c = 0), 1, toUInt128(0))) AS r1, sum(n, if((a >= 0) AND (b != 100) AND 1 AND (c > 220), toLowCardinality(toUInt256(1)), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE multiIf(s IN ('a', 'b'), 1, toLowCardinality(0)) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if(notEquals(b) AND (c = 0), 1, toUInt128(0))) AS r1, sum(n, if((a >= 0) AND (b != 100) AND 1 AND (c > 220), toLowCardinality(toUInt256(1)), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE multiIf(s IN ('a', 'b'), 1, toLowCardinality(0)) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope WITH sum(if(notEquals(b) AND (c = 0), 1, toUInt128(0))) AS r1, sum(n, if((a >= 0) AND (b != 100) AND 1 AND (c > 220), toLowCardinality(toUInt256(1)), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE multiIf(s IN ('a', 'b'), 1, toLowCardinality(0)) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 502 out of 1000 WITH sum(if((b != toUInt256(100)) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE if((a >= 0) AND notEquals(b) AND 1 AND (c > 220), 1, toLowCardinality(0)) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((b != toUInt256(100)) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE if((a >= 0) AND notEquals(b) AND 1 AND (c > 220), 1, toLowCardinality(0)) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((b != toUInt256(100)) AND (c = 0), 1, toUInt128(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE if((a >= 0) AND notEquals(b) AND 1 AND (c > 220), 1, toLowCardinality(0)) GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 503 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 504 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 505 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), toLowCardinality(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), toLowCardinality(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Cannot find column `sumIf(_CAST(_CAST(1_LowCardinality(UInt8), 'LowCardinality(UInt8)'_String), 'UInt8'_String), and(greaterOrEquals(__table1.a, 0_UInt8), notEquals(__table1.b, 100_UInt8), 1_UInt8, greater(__table1.c, 220_UInt8)))` in source stream, there are only columns: [multiply(intDiv(toUInt32(__table1.rtime), 20_UInt8), 1000_UInt16), countIf(and(notEquals(__table1.b, 100_UInt8), equals(__table1.c, 0_UInt8))), sumIf(_CAST(1_UInt8, 'UInt8'_String), and(greaterOrEquals(__table1.a, 0_UInt8), notEquals(__table1.b, 100_UInt8), 1_UInt8, greater(__table1.c, 220_UInt8)))]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000aa0996d 4. ./build_docker/./src/Interpreters/ActionsDAG.cpp:1505: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332738a8 5. ./build_docker/./src/Processors/QueryPlan/ConvertingActions.cpp:0: DB::addConvertingActions(DB::QueryPlan&, DB::Block const&, bool) @ 0x000000003bdfeeae 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::createLocalPlan(std::shared_ptr const&, DB::Block const&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long, bool) @ 0x000000003bdfd78b 7. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:161: DB::ClusterProxy::SelectStreamFactory::createForShardImpl(DB::Cluster::ShardInfo const&, std::shared_ptr const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>, bool)::$_0::operator()() const @ 0x0000000036f92d9c 8. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:234: DB::ClusterProxy::SelectStreamFactory::createForShardImpl(DB::Cluster::ShardInfo const&, std::shared_ptr const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>, bool) @ 0x0000000036f8e5fe 9. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:0: DB::ClusterProxy::SelectStreamFactory::createForShard(DB::Cluster::ShardInfo const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>) @ 0x0000000036f93901 10. ./build_docker/./src/Interpreters/ClusterProxy/executeQuery.cpp:0: DB::ClusterProxy::executeQuery(DB::QueryPlan&, DB::Block const&, DB::QueryProcessingStage::Enum, DB::StorageID const&, std::shared_ptr const&, DB::ClusterProxy::SelectStreamFactory&, std::shared_ptr, std::shared_ptr, DB::SelectQueryInfo const&, std::shared_ptr const&, String const&, DB::DistributedSettings const&, std::function (unsigned long)>, bool) @ 0x0000000036f59aff 11. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000038285416 12. ./src/Processors/QueryPlan/QueryPlan.h:53: DB::(anonymous namespace)::buildQueryPlanForTableExpression(std::shared_ptr, DB::SelectQueryInfo const&, DB::SelectQueryOptions const&, std::shared_ptr&, bool, bool) @ 0x0000000034d80c82 13. ./build_docker/./src/Planner/PlannerJoinTree.cpp:1777: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x0000000034d67094 14. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0b8de 15. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 16. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 506 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), toUInt256(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WITH TOTALS ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), toUInt256(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WITH TOTALS ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Column rtime is not under aggregate function and not in GROUP BY keys. In query WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), toUInt256(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WITH TOTALS ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 9. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 10. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 11. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 12. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 13. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000335939dc 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 507 out of 1000 EXPLAIN ESTIMATE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 508 out of 1000 EXPLAIN ESTIMATE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Got boring AST Fuzzing step 509 out of 1000 EXPLAIN PIPELINE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 510 out of 1000 EXPLAIN PIPELINE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Got boring AST Fuzzing step 511 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 512 out of 1000 EXPLAIN PIPELINE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Got boring AST Fuzzing step 513 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Got boring AST Fuzzing step 515 out of 1000 EXPLAIN CURRENT TRANSACTION WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('sum'): sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 516 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Got boring AST Fuzzing step 517 out of 1000 EXPLAIN WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 518 out of 1000 EXPLAIN WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Got boring AST Fuzzing step 519 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 520 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 521 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Got boring AST Fuzzing step 522 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 23, 20) * 1000 AS t, (r1 * materialize(toLowCardinality(100))) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 23, 20) * 1000 AS t, (r1 * materialize(toLowCardinality(100))) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 3, should be 2: In scope WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 23, 20) * 1000 AS t, (r1 * materialize(toLowCardinality(100))) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 523 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Got boring AST Fuzzing step 524 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 525 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Got boring AST Fuzzing step 526 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Got boring AST Fuzzing step 527 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Got boring AST Fuzzing step 528 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 529 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Got boring AST Fuzzing step 530 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Got boring AST Fuzzing step 531 out of 1000 EXPLAIN PIPELINE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 532 out of 1000 EXPLAIN PIPELINE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Got boring AST Fuzzing step 533 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 534 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Got boring AST Fuzzing step 535 out of 1000 EXPLAIN WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 536 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 537 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 538 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Got boring AST Fuzzing step 539 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 540 out of 1000 EXPLAIN AST WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Got boring AST Fuzzing step 541 out of 1000 EXPLAIN ESTIMATE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 542 out of 1000 EXPLAIN ESTIMATE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Got boring AST Fuzzing step 543 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, materialize(toNullable(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 544 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if(greaterOrEquals(a) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT multiply(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if(greaterOrEquals(a) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT multiply(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope WITH sum(if((b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if(greaterOrEquals(a) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT multiply(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 545 out of 1000 WITH sum(if((b != 100) AND equals('test_cluster_two_shards', 23, c, 0), 1, materialize(toNullable(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND equals('test_cluster_two_shards', 23, c, 0), 1, materialize(toNullable(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 4, should be 2: In scope WITH sum(if((b != 100) AND equals('test_cluster_two_shards', 23, c, 0), 1, materialize(toNullable(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 546 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, materialize(toNullable(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Got boring AST Fuzzing step 547 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, materialize(toNullable(0)))) AS r1, sum(if((a >= toNullable(0)) AND (b != 100) AND 1 AND (c > 220), materialize(toLowCardinality(1)), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / plus(r1, if((a >= 0) AND (b != 100) AND equals(toUInt256(0)), 1, 0), r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, materialize(toNullable(0)))) AS r1, sum(if((a >= toNullable(0)) AND (b != 100) AND 1 AND (c > 220), materialize(toLowCardinality(1)), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / plus(r1, if((a >= 0) AND (b != 100) AND equals(toUInt256(0)), 1, 0), r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH sum(if((b != 100) AND (c = 0), 1, materialize(toNullable(0)))) AS r1, sum(if((a >= toNullable(0)) AND (b != 100) AND 1 AND (c > 220), materialize(toLowCardinality(1)), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / plus(r1, if((a >= 0) AND (b != 100) AND equals(toUInt256(0)), 1, 0), r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 548 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, materialize(toNullable(0)))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 549 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, materialize(toNullable(0)))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST, t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 550 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if(greaterOrEquals(a, test_alias__fuzz_14, 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST, t DESC Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if(greaterOrEquals(a, test_alias__fuzz_14, 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST, t DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_14' in scope WITH sum(if((b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if(greaterOrEquals(a, test_alias__fuzz_14, 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST, t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 18. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 551 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, materialize(toNullable(0)))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST, t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 552 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, materialize(toNullable(0)))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC Query succeeded, using this AST as a start Fuzzing step 553 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, materialize(toNullable(0)))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(test_alias__fuzz_37, rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST, t DESC Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(test_alias__fuzz_37, rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST, t DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_37' in scope WITH sum(if((b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(test_alias__fuzz_37, rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST, t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 555 out of 1000 WITH sum(if(and(c = 0), 1, materialize(toNullable(0)))) AS r1, sum(if((a >= 0) AND 1 AND greater(220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST, t ASC Error on processing query 'WITH sum(if(and(c = 0), 1, materialize(toNullable(0)))) AS r1, sum(if((a >= 0) AND 1 AND greater(220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST, t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope WITH sum(if(and(c = 0), 1, materialize(toNullable(0)))) AS r1, sum(if((a >= 0) AND 1 AND greater(220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST, t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 19. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 556 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, materialize(toNullable(0)))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) DESC, materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, materialize(toNullable(0)))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) DESC, materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH sum(if((b != 100) AND (c = 0), 1, materialize(toNullable(0)))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), currentDatabase(), t) DESC, materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 557 out of 1000 WITH sum(if(notEquals(100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC Error on processing query 'WITH sum(if(notEquals(100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope WITH sum(if(notEquals(100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 558 out of 1000 WITH sum(if(and(b != 100), 1, materialize(0))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC Error on processing query 'WITH sum(if(and(b != 100), 1, materialize(0))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope WITH sum(if(and(b != 100), 1, materialize(0))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 19. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 559 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * materialize(materialize(toUInt128(1000))) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 560 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = toNullable(0)), 1, 0)) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, materialize(0))) AS r2 SELECT intDiv(20) * materialize(materialize(toUInt128(1000))) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST Error on processing query 'WITH sum(if((b != toNullable(100)) AND (c = toNullable(0)), 1, 0)) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, materialize(0))) AS r2 SELECT intDiv(20) * materialize(materialize(toUInt128(1000))) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 1, should be 2: In scope WITH sum(if((b != toNullable(100)) AND (c = toNullable(0)), 1, 0)) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, materialize(0))) AS r2 SELECT intDiv(20) * materialize(materialize(toUInt128(1000))) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) WITH TOTALS ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 561 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 562 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(version_pair[materialize(1)], if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(version_pair[materialize(1)], if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope WITH sum(if((b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(version_pair[materialize(1)], if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 13. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 563 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), 1, materialize(0))) AS r1, sum(if(greaterOrEquals(a) AND 1 AND (c > 220), materialize(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * materialize(toUInt128(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST Error on processing query 'WITH sum(if((b != toNullable(100)) AND (c = 0), 1, materialize(0))) AS r1, sum(if(greaterOrEquals(a) AND 1 AND (c > 220), materialize(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * materialize(toUInt128(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((b != toNullable(100)) AND (c = 0), 1, materialize(0))) AS r1, sum(if(greaterOrEquals(a) AND 1 AND (c > 220), materialize(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), 20) * materialize(toUInt128(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 564 out of 1000 WITH sum(if(notEquals(toNullable(100)) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST Error on processing query 'WITH sum(if(notEquals(toNullable(100)) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope WITH sum(if(notEquals(toNullable(100)) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 565 out of 1000 WITH sum(if((b != toNullable(100)) AND equals(0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), toUInt256(20)) * toUInt128(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, 'test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST Error on processing query 'WITH sum(if((b != toNullable(100)) AND equals(0), 1, materialize(0))) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT intDiv(toUInt32(rtime), toUInt256(20)) * toUInt128(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, 'test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(in(s, ('a', 'b')), 1, 0)) IGNORE NULLS is found in wrong place in query: While processing sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bc5 7. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 8. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 9. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 10. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:348: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a9a7 11. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 12. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 13. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 14. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 15. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 16. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 566 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), toUInt256(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 567 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), toUInt256(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime)) * materialize(toUInt128(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY test_alias__fuzz_42 ASC NULLS LAST, t DESC NULLS LAST Error on processing query 'WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), toUInt256(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime)) * materialize(toUInt128(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY test_alias__fuzz_42 ASC NULLS LAST, t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 1, should be 2: In scope WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), toUInt256(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime)) * materialize(toUInt128(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY test_alias__fuzz_42 ASC NULLS LAST, t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 568 out of 1000 WITH sum(if(notEquals(toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), toUInt256(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t ASC NULLS FIRST Error on processing query 'WITH sum(if(notEquals(toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), toUInt256(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope WITH sum(if(notEquals(toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1 AND (c > 220), toUInt256(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 569 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= materialize(toNullable(0))) AND 1 AND (c > 220), toUInt256(1), 0)) AS r2 SELECT intDiv(toUInt32(rtime), toUInt256(20)) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 570 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= materialize(toNullable(0))) AND 1 AND (c > 220), toUInt256(1), toLowCardinality(toNullable(0)))) AS r2 SELECT intDiv(toUInt32(rtime), toUInt256(20)) * materialize(1000) AS t, multiply((b != toNullable(100)) AND (c = toNullable(0)), r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST Error on processing query 'WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= materialize(toNullable(0))) AND 1 AND (c > 220), toUInt256(1), toLowCardinality(toNullable(0)))) AS r2 SELECT intDiv(toUInt32(rtime), toUInt256(20)) * materialize(1000) AS t, multiply((b != toNullable(100)) AND (c = toNullable(0)), r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= materialize(toNullable(0))) AND 1 AND (c > 220), toUInt256(1), toLowCardinality(toNullable(0)))) AS r2 SELECT intDiv(toUInt32(rtime), toUInt256(20)) * materialize(1000) AS t, multiply((b != toNullable(100)) AND (c = toNullable(0)), r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 571 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= materialize(toNullable(0))) AND 1 AND (c > 220), toUInt256(1), 0)) AS r2 SELECT toNullable(toUInt128(23)), intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 572 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= materialize(toNullable(0))) AND 1 AND (c > 220), toUInt256(1), 0)) AS r2 SELECT toNullable(toUInt128(23)), intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST Got boring AST Fuzzing step 573 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= materialize(toNullable(0))) AND 1 AND (c > 220), toUInt256(1), 0)) AS r2 SELECT toNullable(toUInt128(23)), intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST Got boring AST Fuzzing step 574 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= materialize(toNullable(0))) AND 1 AND (c > 220), toUInt256(1), 0)) AS r2 SELECT toNullable(toUInt128(23)), intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST Got boring AST Fuzzing step 575 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= materialize(toNullable(0))) AND 1 AND (c > 220), toUInt256(1), 0)) AS r2 SELECT toNullable(toUInt128(23)), intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST Got boring AST Fuzzing step 576 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= materialize(toNullable(0))) AND 1 AND (c > 220), toUInt256(1), 0)) AS r2 SELECT toNullable(toUInt128(23)), intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 577 out of 1000 WITH sum(if(notEquals(b) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toNullable(0)) AND materialize(toLowCardinality(1)) AND (c > 220), toUInt256(1), 0)) AS r2 SELECT toNullable(toUInt128(23)), intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST Error on processing query 'WITH sum(if(notEquals(b) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toNullable(0)) AND materialize(toLowCardinality(1)) AND (c > 220), toUInt256(1), 0)) AS r2 SELECT toNullable(toUInt128(23)), intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope WITH sum(if(notEquals(b) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toNullable(0)) AND materialize(toLowCardinality(1)) AND (c > 220), toUInt256(1), 0)) AS r2 SELECT toNullable(toUInt128(23)), intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 578 out of 1000 WITH sum(if((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100, (b != toNullable(100)) AND (c = 0), toLowCardinality(toNullable(1)), 0)) AS r1, sum(if((a >= materialize(toNullable(0))) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT toNullable(23), intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST Error on processing query 'WITH sum(if((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100, (b != toNullable(100)) AND (c = 0), toLowCardinality(toNullable(1)), 0)) AS r1, sum(if((a >= materialize(toNullable(0))) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT toNullable(23), intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100, (b != toNullable(100)) AND (c = 0), toLowCardinality(toNullable(1)), 0)) AS r1, sum(if((a >= materialize(toNullable(0))) AND 1 AND (c > 220), 1, 0)) AS r2 SELECT toNullable(23), intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC NULLS LAST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 27. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 579 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 580 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(1 AND (c > 220), toUInt256(1), 0)) AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, divide(r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS FIRST Error on processing query 'WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(1 AND (c > 220), toUInt256(1), 0)) AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, divide(r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(1 AND (c > 220), toUInt256(1), 0)) AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * materialize(1000) AS t, divide(r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 581 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(toUInt128(toLowCardinality(1)), 220)), toUInt256(1), 0)) AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC NULLS LAST Error on processing query 'WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(toUInt128(toLowCardinality(1)), 220)), toUInt256(1), 0)) AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC NULLS LAST': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt256'. Expected 1 argument, got 2 arguments: In scope WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(toUInt128(toLowCardinality(1)), 220)), toUInt256(1), 0)) AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000089618ce 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000893c835 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 26. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 29. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 Fuzzing step 582 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Query succeeded, using this AST as a start Fuzzing step 583 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), 1, toLowCardinality(toNullable(0)))) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a, toLowCardinality(toUInt256(23)), 0) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * materialize(1000) AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Error on processing query 'WITH sum(if((b != toNullable(100)) AND (c = 0), 1, toLowCardinality(toNullable(0)))) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a, toLowCardinality(toUInt256(23)), 0) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * materialize(1000) AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 3, should be 2: In scope WITH sum(if((b != toNullable(100)) AND (c = 0), 1, toLowCardinality(toNullable(0)))) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a, toLowCardinality(toUInt256(23)), 0) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * materialize(1000) AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 584 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), 1, materialize(0))) RESPECT NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT toUInt128(toLowCardinality(toNullable(23))), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Error on processing query 'WITH sum(if((b != toNullable(100)) AND (c = 0), 1, materialize(0))) RESPECT NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT toUInt128(toLowCardinality(toNullable(23))), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC': Received from localhost:9000. DB::Exception: Function sum does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x00000000306e43d6 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x00000000306df2f4 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc10d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 11. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 585 out of 1000 EXPLAIN PIPELINE WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Query succeeded, using this AST as a start Fuzzing step 586 out of 1000 EXPLAIN PIPELINE WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Got boring AST Fuzzing step 587 out of 1000 EXPLAIN CURRENT TRANSACTION WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('sum'): sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULL. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 588 out of 1000 EXPLAIN AST WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Query succeeded, using this AST as a start Fuzzing step 589 out of 1000 EXPLAIN AST WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Got boring AST Fuzzing step 590 out of 1000 EXPLAIN CURRENT TRANSACTION WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('sum'): sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULL. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 591 out of 1000 EXPLAIN AST WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Got boring AST Fuzzing step 592 out of 1000 EXPLAIN AST WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Got boring AST Fuzzing step 593 out of 1000 EXPLAIN CURRENT TRANSACTION WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('sum'): sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULL. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 594 out of 1000 EXPLAIN AST WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Got boring AST Fuzzing step 595 out of 1000 EXPLAIN WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Query succeeded, using this AST as a start Fuzzing step 596 out of 1000 EXPLAIN WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Got boring AST Fuzzing step 597 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Query succeeded, using this AST as a start Fuzzing step 598 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Got boring AST Fuzzing step 599 out of 1000 EXPLAIN ESTIMATE WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Query succeeded, using this AST as a start Fuzzing step 600 out of 1000 EXPLAIN ESTIMATE WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Got boring AST Fuzzing step 601 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(toUInt256(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC Error on processing query 'WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(toUInt256(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(toUInt256(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST, t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 602 out of 1000 EXPLAIN AST WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Query succeeded, using this AST as a start Fuzzing step 603 out of 1000 EXPLAIN ESTIMATE WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Query succeeded, using this AST as a start Fuzzing step 604 out of 1000 EXPLAIN ESTIMATE WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Got boring AST Fuzzing step 605 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Query succeeded, using this AST as a start Fuzzing step 606 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Query succeeded, using this AST as a start Fuzzing step 607 out of 1000 EXPLAIN QUERY TREE WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Query succeeded, using this AST as a start Fuzzing step 608 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Query succeeded, using this AST as a start Fuzzing step 609 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULL. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 610 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Got boring AST Fuzzing step 611 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Got boring AST Fuzzing step 612 out of 1000 EXPLAIN SYNTAX WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Got boring AST Fuzzing step 613 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULL. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 614 out of 1000 EXPLAIN ESTIMATE WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Query succeeded, using this AST as a start Fuzzing step 615 out of 1000 EXPLAIN ESTIMATE WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Got boring AST Fuzzing step 616 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULL. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 617 out of 1000 WITH sum(if(((b != 100) AND (c = 0)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toLowCardinality(toUInt128(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0)) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t ASC Error on processing query 'WITH sum(if(((b != 100) AND (c = 0)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toLowCardinality(toUInt128(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0)) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC, t ASC': Received from localhost:9000. DB::Exception: Storage Memory (table default.test_alias (e248d29b-ff83-447b-a7f3-dc434cd9c6f4)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:220: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000003360a15d 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000336096aa 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000336096aa 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000336096aa 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000336096aa 9. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000336096aa 10. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000336096aa 11. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x0000000033602c20 12. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 13. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 14. ./src/Planner/Planner.h:56: DB::InterpreterSelectQueryAnalyzer::extractQueryPlan() && @ 0x0000000034cf61b2 15. ./build_docker/./src/Processors/QueryPlan/DistributedCreateLocalPlan.cpp:45: DB::createLocalPlan(std::shared_ptr const&, DB::Block const&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long, bool) @ 0x000000003bdfd5fc 16. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:161: DB::ClusterProxy::SelectStreamFactory::createForShardImpl(DB::Cluster::ShardInfo const&, std::shared_ptr const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>, bool)::$_0::operator()() const @ 0x0000000036f92d9c 17. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:234: DB::ClusterProxy::SelectStreamFactory::createForShardImpl(DB::Cluster::ShardInfo const&, std::shared_ptr const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>, bool) @ 0x0000000036f8e5fe 18. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:0: DB::ClusterProxy::SelectStreamFactory::createForShard(DB::Cluster::ShardInfo const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>) @ 0x0000000036f93901 19. ./build_docker/./src/Interpreters/ClusterProxy/executeQuery.cpp:0: DB::ClusterProxy::executeQuery(DB::QueryPlan&, DB::Block const&, DB::QueryProcessingStage::Enum, DB::StorageID const&, std::shared_ptr const&, DB::ClusterProxy::SelectStreamFactory&, std::shared_ptr, std::shared_ptr, DB::SelectQueryInfo const&, std::shared_ptr const&, String const&, DB::DistributedSettings const&, std::function (unsigned long)>, bool) @ 0x0000000036f59aff 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000038285416 21. ./src/Processors/QueryPlan/QueryPlan.h:53: DB::(anonymous namespace)::buildQueryPlanForTableExpression(std::shared_ptr, DB::SelectQueryInfo const&, DB::SelectQueryOptions const&, std::shared_ptr&, bool, bool) @ 0x0000000034d80c82 22. ./build_docker/./src/Planner/PlannerJoinTree.cpp:1777: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x0000000034d67094 23. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0b8de 24. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 25. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 618 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), materialize(toNullable(toUInt128(1))), 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC Query succeeded, using this AST as a start Fuzzing step 619 out of 1000 WITH sum(if((b != 100) AND (c = 0), materialize(toNullable(toUInt128(1))), 0)) AS r1, sum(if((a >= materialize(toNullable(0))) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE -2 GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS FIRST, t DESC Error on processing query 'WITH sum(if((b != 100) AND (c = 0), materialize(toNullable(toUInt128(1))), 0)) AS r1, sum(if((a >= materialize(toNullable(0))) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE -2 GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS FIRST, t DESC': Received from localhost:9000. DB::Exception: Illegal type Int8 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x0000000034e16cd8 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000034e00ca0 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0eea9 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 9. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::Planner(std::shared_ptr const&, DB::SelectQueryOptions&) @ 0x0000000034cf91d2 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:163: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceba7b 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 620 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), materialize(toNullable(toUInt128(1))), 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(intDiv(toUInt32(rtime), 20) * toLowCardinality(1000), a, materialize(0)) AND 1 AND (c > 220), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, multiply(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))), r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC Error on processing query 'WITH sum(if((b != toNullable(100)) AND (c = 0), materialize(toNullable(toUInt128(1))), 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(intDiv(toUInt32(rtime), 20) * toLowCardinality(1000), a, materialize(0)) AND 1 AND (c > 220), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, multiply(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))), r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope WITH sum(if((b != toNullable(100)) AND (c = 0), materialize(toNullable(toUInt128(1))), 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(intDiv(toUInt32(rtime), 20) * toLowCardinality(1000), a, materialize(0)) AND 1 AND (c > 220), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, multiply(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))), r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 621 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), materialize(toUInt128(1)), 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC Query succeeded, using this AST as a start Fuzzing step 622 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), materialize(toUInt128(1)), 0)) AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC Query succeeded, using this AST as a start Fuzzing step 623 out of 1000 WITH sum(if((b != 100) AND equals(c, c = toUInt256(0), 0), materialize(toUInt128(1)), 0)) AS r1, sum(sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)), if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), intDiv(toUInt32(rtime), toUInt256(20)) * materialize(1000), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC Error on processing query 'WITH sum(if((b != 100) AND equals(c, c = toUInt256(0), 0), materialize(toUInt128(1)), 0)) AS r1, sum(sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)), if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), intDiv(toUInt32(rtime), toUInt256(20)) * materialize(1000), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 3, should be 2: In scope WITH sum(if((b != 100) AND equals(c, c = toUInt256(0), 0), materialize(toUInt128(1)), 0)) AS r1, sum(sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)), if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT toUInt128(23), intDiv(toUInt32(rtime), intDiv(toUInt32(rtime), toUInt256(20)) * materialize(1000), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 624 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = toNullable(0)), materialize(toUInt128(1)), 0)) AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC Query succeeded, using this AST as a start Fuzzing step 625 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), materialize(toUInt128(1)), 0)) AS r1, sum(if((a >= materialize(0)) AND 1 AND greater((r1 * 100) / (r1 + r2), c, 220), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC Error on processing query 'WITH sum(if((b != 100) AND (c = toNullable(0)), materialize(toUInt128(1)), 0)) AS r1, sum(if((a >= materialize(0)) AND 1 AND greater((r1 * 100) / (r1 + r2), c, 220), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'r2' in scope WITH sum(if((b != 100) AND (c = toNullable(0)), materialize(toUInt128(1)), 0)) AS r1, sum(if((a >= materialize(0)) AND 1 AND greater((r1 * 100) / (r1 + r2), c, 220), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC. Maybe you meant: ['r2']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 24. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 626 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), materialize(toUInt128(1)), 0)) AS r1, sum(if(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23) AND (a >= materialize(toNullable(0))) AND 1 AND greater(c, 41, toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS FIRST, t DESC Error on processing query 'WITH sum(if((b != toNullable(100)) AND (c = 0), materialize(toUInt128(1)), 0)) AS r1, sum(if(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23) AND (a >= materialize(toNullable(0))) AND 1 AND greater(c, 41, toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS FIRST, t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function greater doesn't match: passed 3, should be 2: In scope WITH sum(if((b != toNullable(100)) AND (c = 0), materialize(toUInt128(1)), 0)) AS r1, sum(if(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23) AND (a >= materialize(toNullable(0))) AND 1 AND greater(c, 41, toUInt256(220)), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS FIRST, t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 627 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = toNullable(0)), materialize(toUInt128(test_alias__fuzz_32, 1)), 0)) AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1))) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC Error on processing query 'WITH sum(if((b != toNullable(100)) AND (c = toNullable(0)), materialize(toUInt128(test_alias__fuzz_32, 1)), 0)) AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1))) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_32' in scope WITH sum(if((b != toNullable(100)) AND (c = toNullable(0)), materialize(toUInt128(test_alias__fuzz_32, 1)), 0)) AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1))) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 19. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 628 out of 1000 WITH sum(if(t__fuzz_42 AND (b != toNullable(100)) AND (c = toNullable(0)), materialize(toUInt128(1)), 0)) AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC Error on processing query 'WITH sum(if(t__fuzz_42 AND (b != toNullable(100)) AND (c = toNullable(0)), materialize(toUInt128(1)), 0)) AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_42' in scope WITH sum(if(t__fuzz_42 AND (b != toNullable(100)) AND (c = toNullable(0)), materialize(toUInt128(1)), 0)) AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 629 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = toNullable(0)), materialize(toUInt128(1)), 0)) AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * toLowCardinality(toLowCardinality(100), 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC Error on processing query 'WITH sum(if((b != toNullable(100)) AND (c = toNullable(0)), materialize(toUInt128(1)), 0)) AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * toLowCardinality(toLowCardinality(100), 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH sum(if((b != toNullable(100)) AND (c = toNullable(0)), materialize(toUInt128(1)), 0)) AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * toLowCardinality(toLowCardinality(100), 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 630 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true WITH sum(if((b != toNullable(100)) AND (c = 0), toUInt128(1), 0)) AS r1, sum(if((a >= materialize(100, 0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t ASC Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true WITH sum(if((b != toNullable(100)) AND (c = 0), toUInt128(1), 0)) AS r1, sum(if((a >= materialize(100, 0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * toLowCardinality(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t ASC': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 631 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), materialize(toUInt128(1)), 0)) AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 632 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 633 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= materialize(0)) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC NULLS LAST Got boring AST Fuzzing step 634 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= materialize(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 635 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= materialize(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS FIRST, t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 636 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= materialize(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS FIRST, t DESC NULLS LAST Got boring AST Fuzzing step 637 out of 1000 WITH sum(if((b != toNullable(100)) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= materialize(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, divide(r1 * 100) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS FIRST, t DESC NULLS LAST Error on processing query 'WITH sum(if((b != toNullable(100)) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= materialize(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, divide(r1 * 100) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS FIRST, t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope WITH sum(if((b != toNullable(100)) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= materialize(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, divide(r1 * 100) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS FIRST, t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 638 out of 1000 WITH sum(if((b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 WITH sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)) AS r1, sum(if(greaterOrEquals(sum(if((b != toNullable(materialize(materialize(toNullable(1))), 100)) AND (c = 0), materialize(toUInt128(1)), 0)), a, 0) AND splitByChar(toLowCardinality(' '), getOSKernelVersion()) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / plus(r1) AS m FROM cluster('test_cluster_two_shards', currentDatabase()) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST, t DESC Error on processing query 'WITH sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)) AS r1, sum(if(greaterOrEquals(sum(if((b != toNullable(materialize(materialize(toNullable(1))), 100)) AND (c = 0), materialize(toUInt128(1)), 0)), a, 0) AND splitByChar(toLowCardinality(' '), getOSKernelVersion()) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / plus(r1) AS m FROM cluster('test_cluster_two_shards', currentDatabase()) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST, t DESC': Received from localhost:9000. DB::Exception: Table name was not found in function arguments. Table function 'cluster' requires from 0 to 4 parameters: [, , ] [, sharding_key]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&&) @ 0x000000002fde484a 4. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:179: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fddd80f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 640 out of 1000 WITH sum(if(notEquals(b, (sum(multiIf(s IN ('a', 'b'), toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND 1, 1, if((b != 100) AND (c > 220), toUInt256(1), toLowCardinality(0)), 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC Error on processing query 'WITH sum(if(notEquals(b, (sum(multiIf(s IN ('a', 'b'), toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND 1, 1, if((b != 100) AND (c > 220), toUInt256(1), toLowCardinality(0)), 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 1, should be 2: In scope WITH sum(if(notEquals(b, (sum(multiIf(s IN ('a', 'b'), toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND 1, 1, if((b != 100) AND (c > 220), toUInt256(1), toLowCardinality(0)), 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 641 out of 1000 WITH sum(if((b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS LAST Got boring AST Fuzzing step 642 out of 1000 WITH sum(if((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) AND (b != toUInt256(100)) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC NULLS LAST Error on processing query 'WITH sum(if((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) AND (b != toUInt256(100)) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) AND (b != toUInt256(100)) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC NULLS LAST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 27. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 643 out of 1000 WITH sum(if((b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY GROUPING SETS ((t)) WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS LAST': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343d54d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 644 out of 1000 WITH sum(if((b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND 1, 1, materialize(toUInt128(0)))) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, multiply(r1) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC Error on processing query 'WITH sum(if((b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND 1, 1, materialize(toUInt128(0)))) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, multiply(r1) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope WITH sum(if((b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND 1, 1, materialize(toUInt128(0)))) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, multiply(r1) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 645 out of 1000 WITH sum(if((b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, multiply(intDiv(toUInt32(rtime), 20)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, multiply(intDiv(toUInt32(rtime), 20)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope WITH sum(if((b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, multiply(intDiv(toUInt32(rtime), 20)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 646 out of 1000 WITH sum(if((b != 100) AND equals(0), materialize(1), 0)) AS r1, sum(if((a >= toNullable(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND equals(0), materialize(1), 0)) AS r1, sum(if((a >= toNullable(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH sum(if((b != 100) AND equals(0), materialize(1), 0)) AS r1, sum(if((a >= toNullable(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 647 out of 1000 EXPLAIN PIPELINE header = true, compact = true WITH sum(if((b != 100) AND (c = 0), materialize(multiIf(s IN ('a', 'b'), toNullable(materialize(toNullable(toNullable(1)))), toUInt256(1), 0), 1), 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE header = true, compact = true WITH sum(if((b != 100) AND (c = 0), materialize(multiIf(s IN ('a', 'b'), toNullable(materialize(toNullable(toNullable(1)))), toUInt256(1), 0), 1), 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 648 out of 1000 WITH sum(if((b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND toLowCardinality(toNullable(1)), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 649 out of 1000 WITH sum(if((b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(toLowCardinality(toLowCardinality(toUInt128(23))), if((a >= 0) AND toLowCardinality(1), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WITH TOTALS ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(toLowCardinality(toLowCardinality(toUInt128(23))), if((a >= 0) AND toLowCardinality(1), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WITH TOTALS ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function sum requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./src/AggregateFunctions/FactoryHelpers.h:27: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSum(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000002d9e0f95 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:717: ? @ 0x000000002a2b4ea3 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:211: DB::AggregateFunctionFactory::getImpl(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x00000000306e2801 7. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:124: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dcf59 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 12. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 650 out of 1000 WITH sum(if((b != 100) AND equals(c), materialize(1), 0)) AS r1, sum(if((a >= 0) AND toLowCardinality(toNullable(1)), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), materialize(toUInt128(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND equals(c), materialize(1), 0)) AS r1, sum(if((a >= 0) AND toLowCardinality(toNullable(1)), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), materialize(toUInt128(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH sum(if((b != 100) AND equals(c), materialize(1), 0)) AS r1, sum(if((a >= 0) AND toLowCardinality(toNullable(1)), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), materialize(toUInt128(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 651 out of 1000 WITH sum(if((b != 100) AND (c = 0), materialize(1), 0)) AS r1, sum(if((a >= 0) AND toLowCardinality(toNullable(1)), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 652 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND toLowCardinality(toNullable(1)), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 653 out of 1000 WITH sum(if((b != 100) AND toFixedString(toFixedString((b != toLowCardinality(100)) AND (c > 220), toNullable(23)), 23) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND toLowCardinality(toNullable(1)), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t ASC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND toFixedString(toFixedString((b != toLowCardinality(100)) AND (c > 220), toNullable(23)), 23) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND toLowCardinality(toNullable(1)), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t ASC NULLS LAST': Received from localhost:9000. DB::Exception: toFixedString is only implemented for types String and FixedString: In scope WITH sum(if((b != 100) AND toFixedString(toFixedString((b != toLowCardinality(100)) AND (c > 220), toNullable(23)), 23) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND toLowCardinality(toNullable(1)), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62b17c 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 24. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 654 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND toNullable(1), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 655 out of 1000 WITH sum(if(notEquals((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), b, 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND toNullable(1), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS LAST Error on processing query 'WITH sum(if(notEquals((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), b, 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND toNullable(1), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS LAST': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt256'. Expected 1 argument, got 2 arguments: In scope WITH sum(if(notEquals((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), b, 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND toNullable(1), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000089618ce 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000893c835 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 29. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 Fuzzing step 656 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND toNullable(1), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toFixedString('test_cluster_two_shards', 23), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND toNullable(1), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toFixedString('test_cluster_two_shards', 23), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 3, should be 2: In scope WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND toNullable(1), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toFixedString('test_cluster_two_shards', 23), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 657 out of 1000 WITH sum(if((b != 100) AND (c = 0), toLowCardinality(toFixedString('test_cluster_two_shards', 23)), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, multiply(intDiv(toUInt32(rtime), 20)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC Error on processing query 'WITH sum(if((b != 100) AND (c = 0), toLowCardinality(toFixedString('test_cluster_two_shards', 23)), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, multiply(intDiv(toUInt32(rtime), 20)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC': Received from localhost:9000. DB::Exception: Table name was not found in function arguments. Table function 'cluster' requires from 0 to 4 parameters: [, , ] [, sharding_key]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&&) @ 0x000000002fde484a 4. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:179: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fddd80f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 658 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND toNullable(1), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(materialize('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND toNullable(1), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(materialize('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize('test_cluster_two_shards'). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 8. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 659 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND toNullable(1), sum(if((b != 100) AND (c = 0), 1, 0)), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND toNullable(1), sum(if((b != 100) AND (c = 0), 1, 0)), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND toNullable(1), sum(if((b != 100) AND (c = 0), 1, 0)), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 660 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND toNullable(1), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS FIRST Got boring AST Fuzzing step 661 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND toNullable(1), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC, t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toLowCardinality(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 663 out of 1000 WITH sum(zeros(10), if((b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC NULLS FIRST Error on processing query 'WITH sum(zeros(10), if((b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function with name 'zeros' does not exist. In scope WITH sum(zeros(10), if((b != 100) AND (c = 0), 1, materialize(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000002141cd37 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3232: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b971c 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 11. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 664 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toLowCardinality(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toLowCardinality(toUInt256(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 665 out of 1000 WITH sum(if(1, 0)) AS r1, sum(if((a >= toLowCardinality(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP WITH TOTALS ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC NULLS FIRST Error on processing query 'WITH sum(if(1, 0)) AS r1, sum(if((a >= toLowCardinality(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP WITH TOTALS ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH sum(if(1, 0)) AS r1, sum(if((a >= toLowCardinality(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP WITH TOTALS ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST, t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 666 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toLowCardinality(round(divide(sum(multiIf(s IN ('a', 'b'), toLowCardinality(1), toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()) * 100), 0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toLowCardinality(toUInt128(toLowCardinality(toLowCardinality(1))), toUInt256(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toLowCardinality(round(divide(sum(multiIf(s IN ('a', 'b'), toLowCardinality(1), toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()) * 100), 0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toLowCardinality(toUInt128(toLowCardinality(toLowCardinality(1))), toUInt256(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toLowCardinality(round(divide(sum(multiIf(s IN ('a', 'b'), toLowCardinality(1), toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()) * 100), 0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toLowCardinality(toUInt128(toLowCardinality(toLowCardinality(1))), toUInt256(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC, t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 667 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toLowCardinality(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toLowCardinality(toUInt256(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC Query succeeded, using this AST as a start Fuzzing step 668 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toLowCardinality(0)) AND 1, 1, materialize(0))) IGNORE NULLS AS r2 SELECT toUInt256(23), multiply(intDiv(toUInt32(rtime), toUInt256(20)), (b != 100) AND (c = toNullable(0)), 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toLowCardinality(0)) AND 1, 1, materialize(0))) IGNORE NULLS AS r2 SELECT toUInt256(23), multiply(intDiv(toUInt32(rtime), toUInt256(20)), (b != 100) AND (c = toNullable(0)), 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC': Received from localhost:9000. DB::Exception: Table name was not found in function arguments. Table function 'cluster' requires from 0 to 4 parameters: [, , ] [, sharding_key]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&&) @ 0x000000002fde484a 4. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:179: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fddd80f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 669 out of 1000 WITH sum(if(notEquals(toNullable(' '), b, 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC Error on processing query 'WITH sum(if(notEquals(toNullable(' '), b, 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 3, should be 2: In scope WITH sum(if(notEquals(toNullable(' '), b, 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 670 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toLowCardinality(toUInt256(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 671 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(toLowCardinality(23)), intDiv(toUInt32(cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t), rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(toLowCardinality(23)), intDiv(toUInt32(cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t), rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(toLowCardinality(23)), intDiv(toUInt32(cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t), rtime), toLowCardinality(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS FIRST. Maybe you meant: ['t']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 672 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toLowCardinality(toUInt256(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST Got boring AST Fuzzing step 673 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toLowCardinality(toUInt256(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST Got boring AST Fuzzing step 674 out of 1000 WITH sum(if(notEquals(b, toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), toLowCardinality(23)), toUInt256(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toLowCardinality(toUInt256(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST Error on processing query 'WITH sum(if(notEquals(b, toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), toLowCardinality(23)), toUInt256(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toLowCardinality(toUInt256(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 3, should be 2: In scope WITH sum(if(notEquals(b, toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), toLowCardinality(23)), toUInt256(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toLowCardinality(toUInt256(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 675 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toLowCardinality(toUInt256(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 676 out of 1000 EXPLAIN PIPELINE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, t__fuzz_29, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toLowCardinality(toUInt256(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, t__fuzz_29, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toLowCardinality(toUInt256(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_29' in scope WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, t__fuzz_29, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toLowCardinality(toUInt256(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 13. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 29. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 30. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 677 out of 1000 WITH sum(if((b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toLowCardinality(toUInt256(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 678 out of 1000 WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toLowCardinality(toUInt256(20))) * 1000 AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 679 out of 1000 WITH sum(if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toLowCardinality(toUInt256(20))) * 1000 AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP WITH TOTALS ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toLowCardinality(toUInt256(20))) * 1000 AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP WITH TOTALS ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_38' in scope WITH sum(if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toLowCardinality(toUInt256(20))) * 1000 AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH ROLLUP WITH TOTALS ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 18. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 680 out of 1000 WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 681 out of 1000 WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toUInt256(23), intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * toUInt128(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 682 out of 1000 WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 683 out of 1000 WITH sum(toLowCardinality(100), if((b != 100) AND 100 AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND toUInt256(1), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase()) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), toNullable(1), 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST Error on processing query 'WITH sum(toLowCardinality(100), if((b != 100) AND 100 AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND toUInt256(1), 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase()) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), toNullable(1), 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Table name was not found in function arguments. Table function 'cluster' requires from 0 to 4 parameters: [, , ] [, sharding_key]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&&) @ 0x000000002fde484a 4. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:179: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fddd80f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 684 out of 1000 WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toNullable(23), intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, divide(r1 * 100, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, 0)) IGNORE NULLS, r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST Error on processing query 'WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toNullable(23), intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, divide(r1 * 100, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, 0)) IGNORE NULLS, r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT toNullable(23), intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, divide(r1 * 100, sum(if((b != toLowCardinality(100)) AND (c > 220), 1, 0)) IGNORE NULLS, r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 685 out of 1000 WITH sum(if(notEquals(b) AND 100 AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * 100, a, 0) AND 1, 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC Error on processing query 'WITH sum(if(notEquals(b) AND 100 AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * 100, a, 0) AND 1, 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope WITH sum(if(notEquals(b) AND 100 AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * 100, a, 0) AND 1, 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 686 out of 1000 WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase()) PREWHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase()) PREWHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Table name was not found in function arguments. Table function 'cluster' requires from 0 to 4 parameters: [, , ] [, sharding_key]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&&) @ 0x000000002fde484a 4. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:179: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fddd80f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 687 out of 1000 WITH sum(if((b != 100) AND 100 AND equals(c), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, test_alias__fuzz_32, multiply(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND 100 AND equals(c), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, test_alias__fuzz_32, multiply(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'test_alias__fuzz_32' in scope WITH sum(if((b != 100) AND 100 AND equals(c), 1, 0)) AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, test_alias__fuzz_32, multiply(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 688 out of 1000 WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 689 out of 1000 WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(test_alias__fuzz_23, 'test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(test_alias__fuzz_23, 'test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Requested cluster 'test_alias__fuzz_23' not found. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/Interpreters/Context.cpp:3961: DB::Context::getCluster(String const&) const @ 0x0000000033788761 5. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd9095 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 690 out of 1000 WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND notEquals(100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND notEquals(100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND notEquals(100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 691 out of 1000 WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND sum(if(equals(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0), day, '2022-01-01', toLowCardinality(10)), (a >= toLowCardinality(0)) AND (b != 100) AND equals(nums__fuzz_18, c, 0), 1, 0)) AND 1, toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 1, 0)) IGNORE NULLS AS r2 SELECT toNullable(23), intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST Error on processing query 'WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND sum(if(equals(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0), day, '2022-01-01', toLowCardinality(10)), (a >= toLowCardinality(0)) AND (b != 100) AND equals(nums__fuzz_18, c, 0), 1, 0)) AND 1, toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 1, 0)) IGNORE NULLS AS r2 SELECT toNullable(23), intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND sum(if(equals(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0), day, '2022-01-01', toLowCardinality(10)), (a >= toLowCardinality(0)) AND (b != 100) AND equals(nums__fuzz_18, c, 0), 1, 0)) AND 1, toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 1, 0)) IGNORE NULLS AS r2 SELECT toNullable(23), intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 29. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 Fuzzing step 692 out of 1000 WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST Got boring AST Fuzzing step 693 out of 1000 WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY (b != 100) AND (c > materialize(220)) ASC, materialize(toUInt256(toNullable(1))) ASC Error on processing query 'WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY (b != 100) AND (c > materialize(220)) ASC, materialize(toUInt256(toNullable(1))) ASC': Received from localhost:9000. DB::Exception: Column b is not under aggregate function and not in GROUP BY keys. In query WITH sum(if((b != 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), toUInt256(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t WITH ROLLUP ORDER BY (b != 100) AND (c > materialize(220)) ASC, materialize(toUInt256(toNullable(1))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 9. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 10. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 11. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000335939dc 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 694 out of 1000 WITH sum(t__fuzz_41, if((b != 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt256(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 695 out of 1000 WITH sum(t__fuzz_41, if((b != 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt256(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST Got boring AST Fuzzing step 696 out of 1000 WITH sum(t__fuzz_41, if((b != 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((220 >= a) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND notEquals(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), b, 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC Error on processing query 'WITH sum(t__fuzz_41, if((b != 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((220 >= a) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND notEquals(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), b, 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH sum(t__fuzz_41, if((b != 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((220 >= a) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND notEquals(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), b, 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 697 out of 1000 WITH sum(t__fuzz_41, if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt256(0)) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 698 out of 1000 WITH sum(t__fuzz_41, if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 699 out of 1000 WITH sum(t__fuzz_41, if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if(greaterOrEquals(a) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST Error on processing query 'WITH sum(t__fuzz_41, if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if(greaterOrEquals(a) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope WITH sum(t__fuzz_41, if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if(greaterOrEquals(a) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 700 out of 1000 WITH sum(t__fuzz_41, if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC Query succeeded, using this AST as a start Fuzzing step 701 out of 1000 WITH sum(t__fuzz_41, if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != toNullable(100)) AND 1 AND (c > 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 702 out of 1000 WITH sum(t__fuzz_41, if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32((b != 100) AND (c = 0), rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC Error on processing query 'WITH sum(t__fuzz_41, if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32((b != 100) AND (c = 0), rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt32'. Expected 1 argument, got 2 arguments: In scope WITH sum(t__fuzz_41, if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32((b != 100) AND (c = 0), rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt32, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000885c4ee 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt32, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008834755 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 703 out of 1000 WITH sum(t__fuzz_41, if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != toNullable(100)) AND 1 AND (c > 220), 1, toUInt128(0)) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST Error on processing query 'WITH sum(t__fuzz_41, if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != toNullable(100)) AND 1 AND (c > 220), 1, toUInt128(0)) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of column if(and(greaterOrEquals(__table1.a, 0_UInt8), notEquals(__table1.b, _CAST(100_Nullable(UInt8), 'Nullable(UInt8)'_String)), 1_UInt8, greater(__table1.c, 220_UInt8)), 1_UInt8, _CAST('0'_UInt128, 'UInt128'_String)) for filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000a853ded 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:46: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000003b83783e 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:0: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000003be3875c 6. ./contrib/llvm-project/libcxx/include/string:1499: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&, String&, bool&) @ 0x0000000034c6d231 7. ./build_docker/./src/Planner/Planner.cpp:360: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d275ce 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0f791 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 10. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::Planner(std::shared_ptr const&, DB::SelectQueryOptions&) @ 0x0000000034cf91d2 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:163: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceba7b 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 704 out of 1000 WITH sum(t__fuzz_41, if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != toNullable(100)) AND 1 AND (c > 220), 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS FIRST Error on processing query 'WITH sum(t__fuzz_41, if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != toNullable(100)) AND 1 AND (c > 220), 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH sum(t__fuzz_41, if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != toNullable(100)) AND 1 AND (c > 220), 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 705 out of 1000 WITH sum(t__fuzz_41, if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != toNullable(100)) AND 1 AND (c > 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS FIRST Got boring AST Fuzzing step 706 out of 1000 WITH sum(t__fuzz_41, if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', toFixedString('test_cluster_two_shards', 23, toNullable(23), 23), currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != toNullable(100)) AND 1 AND greater(c, toFixedString(' ', toUInt128(1)), 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC Error on processing query 'WITH sum(t__fuzz_41, if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', toFixedString('test_cluster_two_shards', 23, toNullable(23), 23), currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != toNullable(100)) AND 1 AND greater(c, toFixedString(' ', toUInt128(1)), 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 4, should be 2: In scope WITH sum(t__fuzz_41, if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', toFixedString('test_cluster_two_shards', 23, toNullable(23), 23), currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != toNullable(100)) AND 1 AND greater(c, toFixedString(' ', toUInt128(1)), 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 707 out of 1000 WITH sum(t__fuzz_41, sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS, if((b != toNullable(100)) AND 100 AND (c = 0), materialize(1), 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a, toUInt256(toNullable(1)), 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != toNullable(100)) AND 1 AND greater(c), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST Error on processing query 'WITH sum(t__fuzz_41, sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS, if((b != toNullable(100)) AND 100 AND (c = 0), materialize(1), 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a, toUInt256(toNullable(1)), 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != toNullable(100)) AND 1 AND greater(c), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function greater doesn't match: passed 1, should be 2: In scope WITH sum(t__fuzz_41, sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS, if((b != toNullable(100)) AND 100 AND (c = 0), materialize(1), 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a, toUInt256(toNullable(1)), 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != toNullable(100)) AND 1 AND greater(c), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 708 out of 1000 WITH sum(t__fuzz_41, if((b != toNullable(100)) AND toNullable(toUInt256(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != toNullable(100)) AND 1 AND (c > 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 709 out of 1000 WITH sum(t__fuzz_41, if((b != toNullable(100)) AND toNullable(toUInt256(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT intDiv(toUInt32(rtime), sum(multiIf(in(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23)), toLowCardinality(23)), 23), s, ('a', 'b')), materialize(1), 0)) IGNORE NULLS / count() RESPECT NULLS, 20) * toUInt128(1000) AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST Error on processing query 'WITH sum(t__fuzz_41, if((b != toNullable(100)) AND toNullable(toUInt256(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT intDiv(toUInt32(rtime), sum(multiIf(in(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23)), toLowCardinality(23)), 23), s, ('a', 'b')), materialize(1), 0)) IGNORE NULLS / count() RESPECT NULLS, 20) * toUInt128(1000) AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH sum(t__fuzz_41, if((b != toNullable(100)) AND toNullable(toUInt256(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT intDiv(toUInt32(rtime), sum(multiIf(in(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23)), toLowCardinality(23)), 23), s, ('a', 'b')), materialize(1), 0)) IGNORE NULLS / count() RESPECT NULLS, 20) * toUInt128(1000) AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0) GROUP BY t ORDER BY materialize(toUInt256(toNullable(1))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 710 out of 1000 WITH sum(t__fuzz_41, if((b != toNullable(100)) AND toNullable(toUInt256(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt256(toNullable(toNullable(1)))) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != toNullable(100)) AND 1 AND (c > 220), 1, 0) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 711 out of 1000 EXPLAIN PIPELINE WITH sum(t__fuzz_41, if((b != toNullable(100)) AND toNullable(toUInt256(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt256(toNullable(toNullable(1)))) AND 1, 1, 0)) IGNORE NULLS AS r2 SELECT 23, intDiv(toUInt32(rtime), 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE if((a >= 0) AND (b != toNullable(100)) AND 1 AND (c > 220), 1, 0) GROUP BY GROUPING SETS ((t)) ORDER BY materialize(toUInt256(toNullable(1))) ASC NULLS LAST Current AST is too long, discarding it and using the original AST as a start Fuzzing step 712 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), toLowCardinality(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), toLowCardinality(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), toLowCardinality(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 713 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(toNullable(toNullable(23)), rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY intDiv(toUInt32(rtime), toLowCardinality(20)) ASC, t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(toNullable(toNullable(23)), rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY intDiv(toUInt32(rtime), toLowCardinality(20)) ASC, t ASC': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt32'. Expected 1 argument, got 2 arguments: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(toNullable(toNullable(23)), rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY intDiv(toUInt32(rtime), toLowCardinality(20)) ASC, t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt32, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000885c4ee 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt32, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000883500a 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 714 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, multiply(r1, nums__fuzz_1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, multiply(r1, nums__fuzz_1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_1' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, multiply(r1, nums__fuzz_1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 715 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND notEquals(b, 1 AND (c > 220), 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, divide(r1 * 100, sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS, r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND notEquals(b, 1 AND (c > 220), 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, divide(r1 * 100, sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS, r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND notEquals(b, 1 AND (c > 220), 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, divide(r1 * 100, sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS, r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 716 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' WITH TOTALS ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' WITH TOTALS ORDER BY t ASC': Received from localhost:9000. DB::Exception: Column rtime is not under aggregate function and not in GROUP BY keys. In query WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' WITH TOTALS ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 9. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 10. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 11. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 12. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 13. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 14. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 15. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000335939dc 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 717 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 718 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Got boring AST Fuzzing step 719 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, multiply(toNullable(materialize(1)), r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, multiply(toNullable(materialize(1)), r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, multiply(toNullable(materialize(1)), r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 720 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 721 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND notEquals(b, if((a >= 0) AND (b != 100) AND 1 AND (c > 220), toNullable(1), toLowCardinality(0)), 100) AND (c > 220), 1, 0)) AS r2 SELECT multiply(materialize(toNullable(20))) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day) GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND notEquals(b, if((a >= 0) AND (b != 100) AND 1 AND (c > 220), toNullable(1), toLowCardinality(0)), 100) AND (c > 220), 1, 0)) AS r2 SELECT multiply(materialize(toNullable(20))) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day) GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND notEquals(b, if((a >= 0) AND (b != 100) AND 1 AND (c > 220), toNullable(1), toLowCardinality(0)), 100) AND (c > 220), 1, 0)) AS r2 SELECT multiply(materialize(toNullable(20))) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day) GROUP BY t ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 722 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(toNullable(' ', 1, 1) AND (a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime)) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(toNullable(' ', 1, 1) AND (a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime)) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(toNullable(' ', 1, 1) AND (a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime)) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 723 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if(greaterOrEquals(if(if((b != 100) AND (c > 220), 1, 0) AND (b != 100) AND (c = 0), toNullable(toLowCardinality(1)), 0), a, 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE test_alias__fuzz_45 WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if(greaterOrEquals(if(if((b != 100) AND (c > 220), 1, 0) AND (b != 100) AND (c = 0), toNullable(toLowCardinality(1)), 0), a, 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE test_alias__fuzz_45 WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if(greaterOrEquals(if(if((b != 100) AND (c > 220), 1, 0) AND (b != 100) AND (c = 0), toNullable(toLowCardinality(1)), 0), a, 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE test_alias__fuzz_45 WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 724 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND notEquals(100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND notEquals(100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND notEquals(100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 725 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 726 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Function sum does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x00000000306e43d6 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x00000000306df2f4 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc10d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 11. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 727 out of 1000 WITH sum(if((a >= toUInt128(0)) AND (b != 100) AND (c = 0), 1, 0)) RESPECT NULLS AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (a >= 0) AND (b != 100) AND equals(c), (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= toUInt128(0)) AND (b != 100) AND (c = 0), 1, 0)) RESPECT NULLS AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (a >= 0) AND (b != 100) AND equals(c), (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= toUInt128(0)) AND (b != 100) AND (c = 0), 1, 0)) RESPECT NULLS AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (a >= 0) AND (b != 100) AND equals(c), (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 728 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT multiply(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23, 23, intDiv(toUInt32(rtime), 20), toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE equals(day, if((a >= materialize(0)) AND (b != 100) AND equals(c), 1, 0), '2022-01-01') GROUP BY t ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT multiply(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23, 23, intDiv(toUInt32(rtime), 20), toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE equals(day, if((a >= materialize(0)) AND (b != 100) AND equals(c), 1, 0), '2022-01-01') GROUP BY t ORDER BY t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 5, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT multiply(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23, 23, intDiv(toUInt32(rtime), 20), toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE equals(day, if((a >= materialize(0)) AND (b != 100) AND equals(c), 1, 0), '2022-01-01') GROUP BY t ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 729 out of 1000 WITH sum(if(greaterOrEquals(0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))) ASC, t ASC NULLS FIRST Error on processing query 'WITH sum(if(greaterOrEquals(0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))) ASC, t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope WITH sum(if(greaterOrEquals(0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))) ASC, t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 730 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 731 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 732 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', test_alias) WHERE day = '2022-01-01' GROUP BY GROUPING SETS ((t)) ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Table name was not found in function arguments. Table function 'cluster' requires from 0 to 4 parameters: [, , ] [, sharding_key]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&&) @ 0x000000002fde484a 4. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:179: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fddd80f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 733 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 734 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime)) * toNullable(20)) * 1000 AS t, divide(r1 * 100, toNullable(toFixedString(' ', 1)), r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day) GROUP BY t ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime)) * toNullable(20)) * 1000 AS t, divide(r1 * 100, toNullable(toFixedString(' ', 1)), r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day) GROUP BY t ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime)) * toNullable(20)) * 1000 AS t, divide(r1 * 100, toNullable(toFixedString(' ', 1)), r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day) GROUP BY t ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 735 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20), if((b != 100) AND (c > 220), 1, toNullable(0)), toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE toLowCardinality(materialize(toLowCardinality(1))) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20), if((b != 100) AND (c > 220), 1, toNullable(0)), toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE toLowCardinality(materialize(toLowCardinality(1))) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20), if((b != 100) AND (c > 220), 1, toNullable(0)), toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE toLowCardinality(materialize(toLowCardinality(1))) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 736 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 737 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toUInt256(100)) AND (c > 220), toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)), 1, 0)) AS r2 SELECT multiply((sum(multiIf(s IN ('a', 'b'), 1, toNullable(0))) IGNORE NULLS / count()) * 100, intDiv(toUInt32(rtime), 20) * toNullable(20), 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toUInt256(100)) AND (c > 220), toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)), 1, 0)) AS r2 SELECT multiply((sum(multiIf(s IN ('a', 'b'), 1, toNullable(0))) IGNORE NULLS / count()) * 100, intDiv(toUInt32(rtime), 20) * toNullable(20), 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toUInt256(100)) AND (c > 220), toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)), 1, 0)) AS r2 SELECT multiply((sum(multiIf(s IN ('a', 'b'), 1, toNullable(0))) IGNORE NULLS / count()) * 100, intDiv(toUInt32(rtime), 20) * toNullable(20), 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 738 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 739 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / plus(c = toNullable(0), r1, r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / plus(c = toNullable(0), r1, r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function plus doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / plus(c = toNullable(0), r1, r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 740 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt256(0))) RESPECT NULLS AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt256(0))) RESPECT NULLS AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt256(0))) RESPECT NULLS AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 741 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, round((sum(multiIf(in(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), toNullable(toUInt128(1)), 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, round((sum(multiIf(in(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100), 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), toNullable(toUInt128(1)), 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function 'in' expects 2 arguments. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2859: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b788a 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 29. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 Fuzzing step 742 out of 1000 WITH sum(if(toUInt128(0), (a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if(toUInt128(0), (a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH sum(if(toUInt128(0), (a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 743 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase()) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase()) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Table name was not found in function arguments. Table function 'cluster' requires from 0 to 4 parameters: [, , ] [, sharding_key]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&&) @ 0x000000002fde484a 4. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:179: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fddd80f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 744 out of 1000 WITH sum(if((a >= 0) AND zeros(10) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS, if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' WITH TOTALS ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND zeros(10) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS, if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' WITH TOTALS ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function with name 'zeros' does not exist. In scope WITH sum(if((a >= 0) AND zeros(10) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0)) AS r1, sum(sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS, if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' WITH TOTALS ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000002141cd37 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3232: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b971c 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 16. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 745 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 746 out of 1000 EXPLAIN PIPELINE `graph=1` = true WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) RESPECT NULLS AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toFixedString('test_cluster_two_shards', 23)), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) RESPECT NULLS AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toFixedString('test_cluster_two_shards', 23)), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 747 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 748 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 749 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))) AS r1, sum(if(greaterOrEquals(a, sum(if(day = '2022-01-01', toLowCardinality(10), (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)), 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))) AS r1, sum(if(greaterOrEquals(a, sum(if(day = '2022-01-01', toLowCardinality(10), (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)), 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'Log' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))) AS r1, sum(if(greaterOrEquals(a, sum(if(day = '2022-01-01', toLowCardinality(10), (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)), 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 19. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 750 out of 1000 WITH sum(if((a >= 0) AND (b != materialize(100)) AND (c = 0), 1, toNullable(toUInt128(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS, (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != materialize(100)) AND (c = 0), 1, toNullable(toUInt128(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS, (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != materialize(100)) AND (c = 0), 1, toNullable(toUInt128(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS, (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t ASC NULLS LAST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 751 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND greater(220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND greater(220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function greater doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND greater(220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 752 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 753 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), Memory, 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), Memory, 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'Memory' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), Memory, 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 13. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 754 out of 1000 WITH sum(if((a >= 0) AND notEquals(t__fuzz_27, b, 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, toNullable(0))) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable(toNullable(toFixedString('2022-01-01', 10))) GROUP BY t ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND notEquals(t__fuzz_27, b, 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, toNullable(0))) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable(toNullable(toFixedString('2022-01-01', 10))) GROUP BY t ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_27' in scope WITH sum(if((a >= 0) AND notEquals(t__fuzz_27, b, 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, toNullable(0))) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable(toNullable(toFixedString('2022-01-01', 10))) GROUP BY t ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 18. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 755 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t ASC NULLS LAST Got boring AST Fuzzing step 756 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day) GROUP BY t ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day) GROUP BY t ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day) GROUP BY t ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 757 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 758 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if(greaterOrEquals(toFixedString('2022-01-01', toLowCardinality(10)), a, toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, multiply(100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if(greaterOrEquals(toFixedString('2022-01-01', toLowCardinality(10)), a, toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, multiply(100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if(greaterOrEquals(toFixedString('2022-01-01', toLowCardinality(10)), a, toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, multiply(100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 759 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 760 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND greater(c), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND greater(c), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function greater doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND greater(c), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 761 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(toNullable(0))) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable(nums__fuzz_41, '2022-01-01') GROUP BY t ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(toNullable(0))) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable(nums__fuzz_41, '2022-01-01') GROUP BY t ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_41' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(toNullable(0))) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable(nums__fuzz_41, '2022-01-01') GROUP BY t ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 762 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, materialize(toNullable((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(), 220)), 0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, materialize(toNullable((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(), 220)), 0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, materialize(toNullable((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(), 220)), 0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t DESC NULLS LAST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 31. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 Fuzzing step 763 out of 1000 WITH sum(cluster(currentDatabase(), test_alias), if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(cluster(currentDatabase(), test_alias), if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias' in scope WITH sum(cluster(currentDatabase(), test_alias), if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 13. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 764 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0)) AND (c = 0), 1, toNullable(toLowCardinality(toLowCardinality(toUInt128(23))), 0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), toUInt256(1), materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0)) AND (c = 0), 1, toNullable(toLowCardinality(toLowCardinality(toUInt128(23))), 0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), toUInt256(1), materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0)) AND (c = 0), 1, toNullable(toLowCardinality(toLowCardinality(toUInt128(23))), 0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), toUInt256(1), materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 28. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 31. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 Fuzzing step 765 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, toNullable(0))) AS r2 SELECT multiply(round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster(currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100), intDiv(toUInt32(rtime), 20) * 20, 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', toLowCardinality(intDiv(toUInt32(rtime), 20), toNullable(toFixedString(' ', toLowCardinality(toUInt256(1))))), currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, toNullable(0))) AS r2 SELECT multiply(round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster(currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100), intDiv(toUInt32(rtime), 20) * 20, 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', toLowCardinality(intDiv(toUInt32(rtime), 20), toNullable(toFixedString(' ', toLowCardinality(toUInt256(1))))), currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Missing columns: 'rtime' while processing query: 'toLowCardinality(intDiv(toUInt32(rtime), 20), toNullable(toFixedString(' ', toLowCardinality(toUInt256(1)))))', required columns: 'rtime' 'rtime'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 8. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825ead 9. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 766 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if(greaterOrEquals(a, (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / plus(toUInt128(220), r1, r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if(greaterOrEquals(a, (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / plus(toUInt128(220), r1, r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if(greaterOrEquals(a, (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(toNullable(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / plus(toUInt128(220), r1, r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY t DESC NULLS LAST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee Fuzzing step 767 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toNullable('2022-01-01') GROUP BY t ORDER BY t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 768 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 769 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND equals(round((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100), c, 0), toUInt128(1), 0)) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND equals(round((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100), c, 0), toUInt128(1), 0)) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND equals(round((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100), c, 0), toUInt128(1), 0)) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 770 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(toLowCardinality(1)), toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 771 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, 0)) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, 0)) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, 0)) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 772 out of 1000 EXPLAIN ESTIMATE WITH sum(if((a >= 0) AND notEquals(100) AND (c = 0), toUInt128(toLowCardinality(1)), toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE WITH sum(if((a >= 0) AND notEquals(100) AND (c = 0), toUInt128(toLowCardinality(1)), toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND notEquals(100) AND (c = 0), toUInt128(toLowCardinality(1)), toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 773 out of 1000 EXPLAIN PIPELINE `graph=1` = true WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != toLowCardinality(toNullable(100))) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= toLowCardinality(0)) AND (b != toLowCardinality(toNullable(100))) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 774 out of 1000 WITH sum(if((a >= 0) AND (b != toLowCardinality(toNullable(toUInt256(100)))) AND (c = 0), toUInt128(version_pair[toLowCardinality(1)], toLowCardinality(1)), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND greater(220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, multiply(sum(if((b != 100) AND (c > 220), 1, toNullable(0))) IGNORE NULLS, r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != toLowCardinality(toNullable(toUInt256(100)))) AND (c = 0), toUInt128(version_pair[toLowCardinality(1)], toLowCardinality(1)), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND greater(220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, multiply(sum(if((b != 100) AND (c > 220), 1, toNullable(0))) IGNORE NULLS, r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope WITH sum(if((a >= 0) AND (b != toLowCardinality(toNullable(toUInt256(100)))) AND (c = 0), toUInt128(version_pair[toLowCardinality(1)], toLowCardinality(1)), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND greater(220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, multiply(sum(if((b != 100) AND (c > 220), 1, toNullable(0))) IGNORE NULLS, r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 19. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 775 out of 1000 WITH sum(if((a >= 0) AND (b != 100), toUInt128(toLowCardinality(1)), 0)) AS r1, sum(a >= toUInt256(toNullable(1)), if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH ROLLUP ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100), toUInt128(toLowCardinality(1)), 0)) AS r1, sum(a >= toUInt256(toNullable(1)), if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH ROLLUP ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function sum requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./src/AggregateFunctions/FactoryHelpers.h:27: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSum(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000002d9e0f95 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:717: ? @ 0x000000002a2b4ea3 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:211: DB::AggregateFunctionFactory::getImpl(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x00000000306e2801 7. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc770 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 12. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 776 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(toLowCardinality(1)), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 777 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(sum(if(notEquals(b) AND (c = 0), materialize(toUInt128(1)), 0)), toLowCardinality(1)), 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (b != 100) AND (c > materialize(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE day = toFixedString('2022-01-01', 10) GROUP BY t ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(sum(if(notEquals(b) AND (c = 0), materialize(toUInt128(1)), 0)), toLowCardinality(1)), 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (b != 100) AND (c > materialize(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE day = toFixedString('2022-01-01', 10) GROUP BY t ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(sum(if(notEquals(b) AND (c = 0), materialize(toUInt128(1)), 0)), toLowCardinality(1)), 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (b != 100) AND (c > materialize(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE day = toFixedString('2022-01-01', 10) GROUP BY t ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 29. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 Fuzzing step 778 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(toLowCardinality(1)), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 779 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(toLowCardinality(1)), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals('2022-01-01') GROUP BY t ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(toLowCardinality(1)), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals('2022-01-01') GROUP BY t ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(toLowCardinality(1)), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals('2022-01-01') GROUP BY t ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 780 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(toLowCardinality(1)), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 781 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(toLowCardinality(1)), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), toLowCardinality(1), 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(toLowCardinality(1)), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), toLowCardinality(1), 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Storage Memory (table default.test_alias (e248d29b-ff83-447b-a7f3-dc434cd9c6f4)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:220: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000003360a15d 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000336096aa 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000336096aa 7. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x0000000033602c20 8. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 10. ./src/Planner/Planner.h:56: DB::InterpreterSelectQueryAnalyzer::extractQueryPlan() && @ 0x0000000034cf61b2 11. ./build_docker/./src/Processors/QueryPlan/DistributedCreateLocalPlan.cpp:45: DB::createLocalPlan(std::shared_ptr const&, DB::Block const&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long, bool) @ 0x000000003bdfd5fc 12. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:161: DB::ClusterProxy::SelectStreamFactory::createForShardImpl(DB::Cluster::ShardInfo const&, std::shared_ptr const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>, bool)::$_0::operator()() const @ 0x0000000036f92d9c 13. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:234: DB::ClusterProxy::SelectStreamFactory::createForShardImpl(DB::Cluster::ShardInfo const&, std::shared_ptr const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>, bool) @ 0x0000000036f8e5fe 14. ./build_docker/./src/Interpreters/ClusterProxy/SelectStreamFactory.cpp:0: DB::ClusterProxy::SelectStreamFactory::createForShard(DB::Cluster::ShardInfo const&, std::shared_ptr const&, DB::StorageID const&, std::shared_ptr const&, std::shared_ptr, std::vector>, std::allocator>>>&, std::vector>&, unsigned int, bool, std::function (unsigned long)>) @ 0x0000000036f93901 15. ./build_docker/./src/Interpreters/ClusterProxy/executeQuery.cpp:0: DB::ClusterProxy::executeQuery(DB::QueryPlan&, DB::Block const&, DB::QueryProcessingStage::Enum, DB::StorageID const&, std::shared_ptr const&, DB::ClusterProxy::SelectStreamFactory&, std::shared_ptr, std::shared_ptr, DB::SelectQueryInfo const&, std::shared_ptr const&, String const&, DB::DistributedSettings const&, std::function (unsigned long)>, bool) @ 0x0000000036f59aff 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000038285416 17. ./src/Processors/QueryPlan/QueryPlan.h:53: DB::(anonymous namespace)::buildQueryPlanForTableExpression(std::shared_ptr, DB::SelectQueryInfo const&, DB::SelectQueryOptions const&, std::shared_ptr&, bool, bool) @ 0x0000000034d80c82 18. ./build_docker/./src/Planner/PlannerJoinTree.cpp:1777: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x0000000034d67094 19. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0b8de 20. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 21. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 782 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(toLowCardinality(1)), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 783 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 784 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 785 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 786 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 787 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 788 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 789 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 790 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 791 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 792 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 793 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 794 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 795 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 796 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 797 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 798 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 799 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 800 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 801 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 802 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 803 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 804 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 805 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 806 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 807 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 808 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 809 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 810 out of 1000 EXPLAIN WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 811 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 812 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 813 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 814 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 815 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 816 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUIn. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 817 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 818 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 819 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 820 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 821 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 822 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 823 out of 1000 EXPLAIN AST WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 824 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 825 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 826 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 827 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 828 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 829 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUIn. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 830 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 831 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 832 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 833 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 834 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 835 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 836 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 837 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 838 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 839 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 840 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 841 out of 1000 EXPLAIN CURRENT TRANSACTION WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('sum'): sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUIn. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 842 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 843 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 844 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 845 out of 1000 EXPLAIN TABLE OVERRIDE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Error on processing query 'EXPLAIN TABLE OVERRIDE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 30 ('sum'): sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUIn. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 846 out of 1000 EXPLAIN CURRENT TRANSACTION WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('sum'): sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUIn. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 847 out of 1000 EXPLAIN SYNTAX WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 848 out of 1000 EXPLAIN QUERY TREE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 849 out of 1000 EXPLAIN ESTIMATE WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 850 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 851 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND equals(0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toNullable(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / plus(cluster(toFixedString('test_cluster_two_shards', 23), 23, 23, currentDatabase(), t), r1, r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND equals(0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toNullable(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / plus(cluster(toFixedString('test_cluster_two_shards', 23), 23, 23, currentDatabase(), t), r1, r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND equals(0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > toNullable(220)), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / plus(cluster(toFixedString('test_cluster_two_shards', 23), 23, 23, currentDatabase(), t), r1, r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 852 out of 1000 WITH sum(if((a >= 0) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH ROLLUP WITH CUBE ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (c = 0), toUInt128(1), toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH ROLLUP WITH CUBE ORDER BY t ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 351 ('CUBE'): CUBE ORDER BY t ASC. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 853 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 854 out of 1000 WITH sum(if(if((b != toNullable(100)) AND toUInt256(100) AND (c = 0), 1, 0), (a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, multiply(100) / (r1 + r2) AS m FROM cluster(materialize('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC Error on processing query 'WITH sum(if(if((b != toNullable(100)) AND toUInt256(100) AND (c = 0), 1, 0), (a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, multiply(100) / (r1 + r2) AS m FROM cluster(materialize('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize('test_cluster_two_shards'). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 8. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 855 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 856 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t ASC Got boring AST Fuzzing step 857 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 858 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(['a', 'b', 'c'], 0))) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(currentDatabase(), test_alias) WHERE equals(day) GROUP BY t WITH CUBE ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(['a', 'b', 'c'], 0))) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(currentDatabase(), test_alias) WHERE equals(day) GROUP BY t WITH CUBE ORDER BY t DESC': Received from localhost:9000. DB::Exception: Table name was not found in function arguments. Table function 'cluster' requires from 0 to 4 parameters: [, , ] [, sharding_key]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&&) @ 0x000000002fde484a 4. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:179: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fddd80f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 859 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 860 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), toUInt128(1), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32((b != 100) AND (c = toLowCardinality(toNullable(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) / count(), count()) * materialize(100), 0))), rtime), materialize(20)) * 20) * 1000 AS t, (r1 * toUInt256(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), toUInt128(1), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32((b != 100) AND (c = toLowCardinality(toNullable(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) / count(), count()) * materialize(100), 0))), rtime), materialize(20)) * 20) * 1000 AS t, (r1 * toUInt256(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), toUInt128(1), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32((b != 100) AND (c = toLowCardinality(toNullable(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) / count(), count()) * materialize(100), 0))), rtime), materialize(20)) * 20) * 1000 AS t, (r1 * toUInt256(100)) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 31. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 Fuzzing step 861 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day, (r1 * 100) / (r1 + r2), '2022-01-01') GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day, (r1 * 100) / (r1 + r2), '2022-01-01') GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day, (r1 * 100) / (r1 + r2), '2022-01-01') GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 862 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 863 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST Got boring AST Fuzzing step 864 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, sum(if((b != toLowCardinality(toLowCardinality(100))) AND (c > 220), 1, 0)) IGNORE NULLS, 0)) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, sum(if((b != toLowCardinality(toLowCardinality(100))) AND (c > 220), 1, 0)) IGNORE NULLS, 0)) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, sum(if((b != toLowCardinality(toLowCardinality(100))) AND (c > 220), 1, 0)) IGNORE NULLS, 0)) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 865 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = materialize(toLowCardinality(0))), 1, 0)) AS r1, sum(if(nums__fuzz_18, (a >= 0) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY r1 * materialize(100) ASC NULLS FIRST, t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = materialize(toLowCardinality(0))), 1, 0)) AS r1, sum(if(nums__fuzz_18, (a >= 0) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY r1 * materialize(100) ASC NULLS FIRST, t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_18' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = materialize(toLowCardinality(0))), 1, 0)) AS r1, sum(if(nums__fuzz_18, (a >= 0) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY r1 * materialize(100) ASC NULLS FIRST, t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 6. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 12. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 866 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 867 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day, toFixedString(' ', 1, 1), '2022-01-01') GROUP BY t WITH CUBE ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day, toFixedString(' ', 1, 1), '2022-01-01') GROUP BY t WITH CUBE ORDER BY t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals(day, toFixedString(' ', 1, 1), '2022-01-01') GROUP BY t WITH CUBE ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 868 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 869 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(1)), 0), a, toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(1)), 0), a, toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(1)), 0), a, toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 24. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 870 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 871 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100), (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100), (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100), (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 872 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(1, 0)) IGNORE NULLS AS r2 SELECT multiply(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(1, 0)) IGNORE NULLS AS r2 SELECT multiply(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if(1, 0)) IGNORE NULLS AS r2 SELECT multiply(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 873 out of 1000 WITH sum(if((a >= 0) AND notEquals(100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > toLowCardinality(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND notEquals(100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > toLowCardinality(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND notEquals(100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > toLowCardinality(220)), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 874 out of 1000 WITH sum(if((a >= 0) AND ((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND ((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND ((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 30. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 875 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 876 out of 1000 WITH sum(if((a >= materialize(toLowCardinality(0))) AND (b != materialize(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND greater(c, if((b != 100) AND (c > 220), 1, 0), 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), test_alias) WHERE day = materialize('2022-01-01') GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= materialize(toLowCardinality(0))) AND (b != materialize(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND greater(c, if((b != 100) AND (c > 220), 1, 0), 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), test_alias) WHERE day = materialize('2022-01-01') GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Table name was not found in function arguments. Table function 'cluster' requires from 0 to 4 parameters: [, , ] [, sharding_key]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&&) @ 0x000000002fde484a 4. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:179: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fddd80f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 877 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, divide(r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, divide(r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, divide(r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 878 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * materialize(20)) * 1000 AS t, multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0)) / (r1 * 100) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * materialize(20)) * 1000 AS t, multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0)) / (r1 * 100) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * materialize(20)) * 1000 AS t, multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0)) / (r1 * 100) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 879 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND equals(c), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), toNullable(1), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND equals(c), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), toNullable(1), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND equals(c), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), toNullable(1), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 880 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 881 out of 1000 WITH sum(if(greaterOrEquals(toFixedString(materialize(' '), 1), a, toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY t WITH CUBE ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if(greaterOrEquals(toFixedString(materialize(' '), 1), a, toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY t WITH CUBE ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 415 (','): , 10 GROUP BY t WITH CUBE ORDER BY t ASC NULLS LAST. Expected one of: token, DoubleColon, alias, AS, GROUP BY, WITH, HAVING, WINDOW, QUALIFY, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 882 out of 1000 WITH sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope WITH sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 883 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 884 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND notEquals(test_alias__fuzz_26, b, toUInt256(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= toLowCardinality(0)) AND notEquals(test_alias__fuzz_26, b, toUInt256(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_26' in scope WITH sum(if((a >= toLowCardinality(0)) AND notEquals(test_alias__fuzz_26, b, toUInt256(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 18. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 885 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 886 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 372 (','): , 10 GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST. Expected one of: token, DoubleColon, alias, AS, GROUP BY, WITH, HAVING, WINDOW, QUALIFY, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 887 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 345 (','): , 10 GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST. Expected one of: token, DoubleColon, alias, AS, GROUP BY, WITH, HAVING, WINDOW, QUALIFY, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 888 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST Got boring AST Fuzzing step 889 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND equals(if((b != toNullable(100)) AND (c = toNullable(0)), 1, 0), c, 0), 1, 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC Error on processing query 'WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND equals(if((b != toNullable(100)) AND (c = toNullable(0)), 1, 0), c, 0), 1, 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND equals(if((b != toNullable(100)) AND (c = toNullable(0)), 1, 0), c, 0), 1, 0)) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 890 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * toNullable(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0), 'test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * toNullable(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0), 'test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Missing columns: 'b' 'c' 'a' while processing query: 'toLowCardinality(toNullable(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0), 'test_cluster_two_shards'))', required columns: 'a' 'c' 'b' 'a' 'c' 'b'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 8. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 9. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 891 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 892 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(toLowCardinality(1000))) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 893 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 894 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND nums__fuzz_7 AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND nums__fuzz_7 AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_7' in scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND nums__fuzz_7 AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 895 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0), test_alias) GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0), test_alias) GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Missing columns: 'c' 'b' while processing query: 'if((b != toNullable(100)) AND 100 AND (c = 0), 1, 0)', required columns: 'b' 'c' 'b' 'c'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 8. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 9. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd5a47 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 896 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, multiply(version_pair[toLowCardinality(1)], r1, 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, multiply(version_pair[toLowCardinality(1)], r1, 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, multiply(version_pair[toLowCardinality(1)], r1, 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 897 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND (b != toNullable(100)) AND (c = materialize(0)), toUInt256(toNullable(1)), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(1000) AS t, multiply(r1) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(greaterOrEquals(0) AND (b != 100) AND (c > 220)), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= toLowCardinality(0)) AND (b != toNullable(100)) AND (c = materialize(0)), toUInt256(toNullable(1)), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(1000) AS t, multiply(r1) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(greaterOrEquals(0) AND (b != 100) AND (c > 220)), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= toLowCardinality(0)) AND (b != toNullable(100)) AND (c = materialize(0)), toUInt256(toNullable(1)), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(1000) AS t, multiply(r1) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(greaterOrEquals(0) AND (b != 100) AND (c > 220)), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 898 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 899 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)), 1, materialize(0))) IGNORE NULLS AS r1, sum(if(1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)), 1, materialize(0))) IGNORE NULLS AS r1, sum(if(1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 356 (','): , 10 GROUP BY t WITH CUBE ORDER BY t ASC NULLS FIRST. Expected one of: token, DoubleColon, alias, AS, GROUP BY, WITH, HAVING, WINDOW, QUALIFY, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 900 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(materialize(toLowCardinality(toUInt256(1000))))) AS t, (r1 * toNullable(100)) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY t WITH CUBE ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(materialize(toLowCardinality(toUInt256(1000))))) AS t, (r1 * toNullable(100)) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY t WITH CUBE ORDER BY t ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 457 (','): , 10 GROUP BY t WITH CUBE ORDER BY t ASC. Expected one of: token, DoubleColon, alias, AS, GROUP BY, WITH, HAVING, WINDOW, QUALIFY, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 901 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(materialize(toUInt256(0))))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20)) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(materialize(toUInt256(0))))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20)) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(materialize(toUInt256(0))))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20)) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 902 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = materialize(0)), 1, materialize(0))) IGNORE NULLS AS r1, sum(0, if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = materialize(0)), 1, materialize(0))) IGNORE NULLS AS r1, sum(0, if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(in(s, ('a', 'b')), 1, 0)) IGNORE NULLS is found in wrong place in query: While processing sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bc5 7. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 8. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 9. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 10. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 11. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 12. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:348: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a9a7 13. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 14. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 15. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 16. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 17. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825ead 18. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 903 out of 1000 WITH sum(if((a >= 0) AND notEquals(b) AND materialize(toNullable(materialize(toUInt256(1)))) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS, count()) * 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND notEquals(b) AND materialize(toNullable(materialize(toUInt256(1)))) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS, count()) * 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND notEquals(b) AND materialize(toNullable(materialize(toUInt256(1)))) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS, count()) * 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 904 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(nums__fuzz_41, toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(nums__fuzz_41, toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC': Received from localhost:9000. DB::Exception: Missing columns: 'nums__fuzz_41' while processing query: 'toLowCardinality(nums__fuzz_41, toNullable('test_cluster_two_shards'))', required columns: 'nums__fuzz_41' 'nums__fuzz_41'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 8. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 9. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 905 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC Error on processing query 'EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 906 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if(greaterOrEquals(a) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 907 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, divide(if((b != 100) AND (c = toNullable(0)), 1, 0), r1 * 100, r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, divide(if((b != 100) AND (c = toNullable(0)), 1, 0), r1 * 100, r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, divide(if((b != 100) AND (c = toNullable(0)), 1, 0), r1 * 100, r1 + r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 908 out of 1000 WITH sum(if((b != materialize(100)) AND (c = 0), 1, toNullable(0)), if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * toNullable(materialize(1000)) AS t, (r1 * 100) / plus(nums__fuzz_10, r1, r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC Error on processing query 'WITH sum(if((b != materialize(100)) AND (c = 0), 1, toNullable(0)), if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * toNullable(20)) * toNullable(materialize(1000)) AS t, (r1 * 100) / plus(nums__fuzz_10, r1, r2) AS m FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC': Received from localhost:9000. DB::Exception: Aggregate function sum requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./src/AggregateFunctions/FactoryHelpers.h:27: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSum(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000002d9e0f95 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:717: ? @ 0x000000002a2b4ea3 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:211: DB::AggregateFunctionFactory::getImpl(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x00000000306e2801 7. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc770 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 12. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 909 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 910 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 911 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, multiply(r1) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, multiply(r1) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 382 (','): , 10 GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST. Expected one of: token, DoubleColon, alias, AS, GROUP BY, WITH, HAVING, WINDOW, QUALIFY, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 912 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(100, rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(100, rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt32'. Expected 1 argument, got 2 arguments: In scope WITH sum(if((a >= 0) AND (b != toNullable(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(100, rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt32, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000885c4ee 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt32, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008834755 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 913 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, multiply((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, multiply((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, multiply((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), r1, 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 914 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toLowCardinality(20)) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY t WITH CUBE ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toLowCardinality(20)) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY t WITH CUBE ORDER BY t DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 380 (','): , 10 GROUP BY t WITH CUBE ORDER BY t DESC. Expected one of: token, DoubleColon, alias, AS, GROUP BY, WITH, HAVING, WINDOW, QUALIFY, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 915 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(r2, materialize(toLowCardinality(toLowCardinality(23)), 1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(version_pair[materialize(1)], '2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(r2, materialize(toLowCardinality(toLowCardinality(23)), 1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(version_pair[materialize(1)], '2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(r2, materialize(toLowCardinality(toLowCardinality(23)), 1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(version_pair[materialize(1)], '2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 916 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = materialize(0)), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS, intDiv(20), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = materialize(0)), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS, intDiv(20), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = materialize(0)), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS, intDiv(20), 20) * materialize(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 917 out of 1000 WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / plus(r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY toUInt128(1) ASC NULLS LAST, t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / plus(r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY toUInt128(1) ASC NULLS LAST, t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function plus doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / plus(r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY toUInt128(1) ASC NULLS LAST, t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 918 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', materialize(10)) GROUP BY GROUPING SETS ((t)) WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', materialize(10)) GROUP BY GROUPING SETS ((t)) WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343d54d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 919 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 920 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20), toUInt256(toNullable(1)), 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20), toUInt256(toNullable(1)), 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20), toUInt256(toNullable(1)), 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 921 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toLowCardinality('2022-01-01'), 10 GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toLowCardinality('2022-01-01'), 10 GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 376 (','): , 10 GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST. Expected one of: token, OpeningRoundBracket, FILTER, RESPECT NULLS, IGNORE NULLS, OVER, alias, AS, GROUP BY, WITH, HAVING, WINDOW, QUALIFY, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 922 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) RESPECT NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) RESPECT NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function sum does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x00000000306e43d6 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x00000000306df2f4 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc10d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 11. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 923 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) ASC NULLS LAST, t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) ASC NULLS LAST, t DESC': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) ASC NULLS LAST, t DESC. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 924 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if(greaterOrEquals(0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(round((nums__fuzz_11 / count()) * 100), toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if(greaterOrEquals(0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(round((nums__fuzz_11 / count()) * 100), toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_11' in scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if(greaterOrEquals(0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(round((nums__fuzz_11 / count()) * 100), toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 925 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), toNullable(1), materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / plus(r2) AS m FROM cluster(toLowCardinality(toLowCardinality('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toLowCardinality('2022-01-01'), 10 GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), toNullable(1), materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / plus(r2) AS m FROM cluster(toLowCardinality(toLowCardinality('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toLowCardinality('2022-01-01'), 10 GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 427 (','): , 10 GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST. Expected one of: token, OpeningRoundBracket, FILTER, RESPECT NULLS, IGNORE NULLS, OVER, alias, AS, GROUP BY, WITH, HAVING, WINDOW, QUALIFY, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 926 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND equals(c), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString(10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND equals(c), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString(10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND equals(c), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString(10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 927 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, toNullable(toNullable(1)), count()) * 100), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, toNullable(toNullable(1)), count()) * 100), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(in(s, ('a', 'b')), 1, 0)) IGNORE NULLS is found in wrong place in query: While processing sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bc5 7. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 8. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 9. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 10. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 11. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 12. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:348: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a9a7 13. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 14. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 15. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 16. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 17. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825ead 18. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 928 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), toUInt128(1), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(20)) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toLowCardinality('2022-01-01'), 10 GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), toUInt128(1), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * materialize(20)) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toLowCardinality('2022-01-01'), 10 GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 422 (','): , 10 GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST. Expected one of: token, OpeningRoundBracket, FILTER, RESPECT NULLS, IGNORE NULLS, OVER, alias, AS, GROUP BY, WITH, HAVING, WINDOW, QUALIFY, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 929 out of 1000 EXPLAIN PIPELINE header = true, compact = true WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if(greaterOrEquals(0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE header = true, compact = true WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if(greaterOrEquals(0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 930 out of 1000 EXPLAIN PIPELINE header = true WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime)) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE header = true WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime)) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 931 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, nums__fuzz_33, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, nums__fuzz_33, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_33' in scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, nums__fuzz_33, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 13. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 932 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND equals(toNullable(toNullable(toNullable(1))), c, 0), 1, materialize(toUInt128(0)))) IGNORE NULLS AS r1, sum(if(and(c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND equals(toNullable(toNullable(toNullable(1))), c, 0), 1, materialize(toUInt128(0)))) IGNORE NULLS AS r1, sum(if(and(c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND equals(toNullable(toNullable(toNullable(1))), c, 0), 1, materialize(toUInt128(0)))) IGNORE NULLS AS r1, sum(if(and(c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 20. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 933 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toLowCardinality('2022-01-01'), 10 GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toLowCardinality('2022-01-01'), 10 GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 398 (','): , 10 GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST. Expected one of: token, OpeningRoundBracket, FILTER, RESPECT NULLS, IGNORE NULLS, OVER, alias, AS, GROUP BY, WITH, HAVING, WINDOW, QUALIFY, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 934 out of 1000 WITH sum(if((a >= 0) AND notEquals(b, materialize(toLowCardinality(toFixedString(' ', 1))), toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), materialize(1), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * toNullable(materialize(1000)) AS t, multiply(sum(multiIf(s IN materialize(('a', 'b')), 1, materialize(toNullable(0)))) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS, r1, 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND notEquals(b, materialize(toLowCardinality(toFixedString(' ', 1))), toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), materialize(1), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * toNullable(materialize(1000)) AS t, multiply(sum(multiIf(s IN materialize(('a', 'b')), 1, materialize(toNullable(0)))) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS, r1, 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND notEquals(b, materialize(toLowCardinality(toFixedString(' ', 1))), toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), materialize(1), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), materialize(20)) * 20) * toNullable(materialize(1000)) AS t, multiply(sum(multiIf(s IN materialize(('a', 'b')), 1, materialize(toNullable(0)))) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS, r1, 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 935 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(('a', 'b'), intDiv(toUInt32(rtime), 20) * 20, toNullable(materialize(1000))) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(('a', 'b'), intDiv(toUInt32(rtime), 20) * 20, toNullable(materialize(1000))) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(('a', 'b'), intDiv(toUInt32(rtime), 20) * 20, toNullable(materialize(1000))) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 936 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(['a', 'b', 'c'], intDiv(toUInt32(rtime), 20) * 20, toNullable(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(['a', 'b', 'c'], intDiv(toUInt32(rtime), 20) * 20, toNullable(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(['a', 'b', 'c'], intDiv(toUInt32(rtime), 20) * 20, toNullable(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 937 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / plus(r1) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / plus(r1) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function plus doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000) AS t, (r1 * 100) / plus(r1) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 938 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 939 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(toNullable(23), rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(toNullable(23), rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt32'. Expected 1 argument, got 2 arguments: In scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(toNullable(23), rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt32, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000885c4ee 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt32, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000883500a 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 940 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(toNullable(1000))) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE equals(sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))), day, toFixedString(toLowCardinality('2022-01-01'), 10)) GROUP BY t WITH CUBE ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(toNullable(1000))) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE equals(sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))), day, toFixedString(toLowCardinality('2022-01-01'), 10)) GROUP BY t WITH CUBE ORDER BY t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(toNullable(1000))) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE equals(sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0))), day, toFixedString(toLowCardinality('2022-01-01'), 10)) GROUP BY t WITH CUBE ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 941 out of 1000 WITH sum(if((a >= materialize(0)) AND (b != toNullable(100)) AND (c = 0), toNullable(1), materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS, toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC Error on processing query 'WITH sum(if((a >= materialize(0)) AND (b != toNullable(100)) AND (c = 0), toNullable(1), materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS, toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(in(s, ('a', 'b')), toUInt128(1), 0)) IGNORE NULLS is found in wrong place in query: While processing sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bc5 7. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 8. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:348: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a9a7 9. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 10. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 11. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 12. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 13. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 14. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 942 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(toLowCardinality(0))) AND (c > 220), toUInt128(1), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(sum(if(greaterOrEquals(sum(if((b != toNullable(materialize(toNullable(1)), 100)) AND (c = 0), materialize(toUInt128(1)), 0)), a, 0) AND splitByChar(toLowCardinality(' '), getOSKernelVersion()) AND 1, 1, 0)) IGNORE NULLS, materialize(1000)) AS t, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(toUInt256(23)), currentDatabase(), t), (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY GROUPING SETS ((t)) WITH CUBE ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= materialize(toLowCardinality(0))) AND (c > 220), toUInt128(1), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(sum(if(greaterOrEquals(sum(if((b != toNullable(materialize(toNullable(1)), 100)) AND (c = 0), materialize(toUInt128(1)), 0)), a, 0) AND splitByChar(toLowCardinality(' '), getOSKernelVersion()) AND 1, 1, 0)) IGNORE NULLS, materialize(1000)) AS t, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(toUInt256(23)), currentDatabase(), t), (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY GROUPING SETS ((t)) WITH CUBE ORDER BY t DESC': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343d54d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 943 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 944 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * toNullable(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 945 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * toNullable(1000) AS t, (r1 * 100) / plus(r1) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * toNullable(1000) AS t, (r1 * 100) / plus(r1) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function plus doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * toNullable(1000) AS t, (r1 * 100) / plus(r1) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 946 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > materialize(220)), 1, 0)) IGNORE NULLS AS r2 SELECT multiply((intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) * 20) * 1000, intDiv(toUInt32(rtime), toNullable(20)), 20) * toNullable(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toLowCardinality('2022-01-01'), 10 GROUP BY t WITH CUBE ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > materialize(220)), 1, 0)) IGNORE NULLS AS r2 SELECT multiply((intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) * 20) * 1000, intDiv(toUInt32(rtime), toNullable(20)), 20) * toNullable(1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toLowCardinality('2022-01-01'), 10 GROUP BY t WITH CUBE ORDER BY t DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 575 (','): , 10 GROUP BY t WITH CUBE ORDER BY t DESC. Expected one of: token, OpeningRoundBracket, FILTER, RESPECT NULLS, IGNORE NULLS, OVER, alias, AS, GROUP BY, WITH, HAVING, WINDOW, QUALIFY, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 947 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t FROM cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString(toLowCardinality('2022-01-01'), 10) GROUP BY t WITH CUBE ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 948 out of 1000 WITH sum(if((a >= 0) AND (b != materialize(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toLowCardinality('2022-01-01'), 10 GROUP BY t WITH CUBE ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != materialize(100)) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t FROM cluster(toLowCardinality(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) WHERE day = toLowCardinality('2022-01-01'), 10 GROUP BY t WITH CUBE ORDER BY t DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 356 (','): , 10 GROUP BY t WITH CUBE ORDER BY t DESC. Expected one of: token, OpeningRoundBracket, FILTER, RESPECT NULLS, IGNORE NULLS, OVER, alias, AS, GROUP BY, WITH, HAVING, WINDOW, QUALIFY, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 949 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 950 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 951 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', materialize(toNullable(10))) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', materialize(toNullable(10))) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', materialize(toNullable(10))) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 952 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toNullable(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toNullable(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= toNullable(0)) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 953 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 954 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)) ASC, t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 955 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), rtime), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)) ASC NULLS FIRST, t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), rtime), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)) ASC NULLS FIRST, t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt32'. Expected 1 argument, got 2 arguments: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), rtime), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)) ASC NULLS FIRST, t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt32, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000885c4ee 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt32, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000883500a 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 956 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)) ASC, t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 WITH sum('2022-01-01', if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster(materialize('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)) ASC, t DESC NULLS FIRST Error on processing query 'WITH sum('2022-01-01', if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster(materialize('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)) ASC, t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize('test_cluster_two_shards'). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 8. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 958 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 0)) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY t WITH CUBE ORDER BY if((b != 100) AND (c > 220), 1, toNullable(0)) ASC, sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)) ASC, t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 0)) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01', 10 GROUP BY t WITH CUBE ORDER BY if((b != 100) AND (c > 220), 1, toNullable(0)) ASC, sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)) ASC, t DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 348 (','): , 10 GROUP BY t WITH CUBE ORDER BY if((b != 100) AND (c > 220), 1, toNullable(0)) ASC, sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)) ASC, t DES. Expected one of: token, DoubleColon, alias, AS, GROUP BY, WITH, HAVING, WINDOW, QUALIFY, ORDER BY, LIMIT, OFFSET, FETCH, SETTINGS, UNION, EXCEPT, INTERSECT, INTO OUTFILE, FORMAT, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 959 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND equals(c, toLowCardinality(1), 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)) ASC, t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 960 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND equals(c, toLowCardinality(1), 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) WITH TOTALS ORDER BY sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)) ASC, t DESC NULLS FIRST Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND equals(c, toLowCardinality(1), 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) WITH TOTALS ORDER BY sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)) ASC, t DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Column rtime is not under aggregate function and not in GROUP BY keys. In query WITH sum(if((a >= 0) AND (b != 100) AND equals(c, toLowCardinality(1), 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) WITH TOTALS ORDER BY sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)) ASC, t DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 9. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 10. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 11. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 12. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 13. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 14. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 15. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000335939dc 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 961 out of 1000 WITH sum(r1 * materialize(100), if((a >= 0) AND (b != 100) AND equals(c, toLowCardinality(1), 0), 1, 0)) IGNORE NULLS AS r1, sum(if((a >= 0) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = toFixedString('2022-01-01', 10) GROUP BY t WITH CUBE ORDER BY sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)) ASC, t DESC NULLS FIRST Current AST is too long, discarding it and using the original AST as a start Fuzzing step 962 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals('2022-01-01') GROUP BY t ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals('2022-01-01') GROUP BY t ORDER BY t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE equals('2022-01-01') GROUP BY t ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 963 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), toLowCardinality(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, toNullable(1), count()) * 100), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), toLowCardinality(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, toNullable(1), count()) * 100), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(in(s, ('a', 'b')), 1, 0)) IGNORE NULLS is found in wrong place in query: While processing sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bc5 7. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 8. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 9. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 10. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 11. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 12. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:348: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a9a7 13. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 14. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 15. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 16. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 17. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionForDatabaseName(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825ead 18. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd522a 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 964 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20) * 20) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20) * 20) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT multiply(intDiv(toUInt32(rtime), 20) * 20) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 965 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(toNullable(100))) AND (c > 220), 1, 0)) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toLowCardinality(toNullable(100))) AND (c > 220), 1, 0)) RESPECT NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Function sum does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x00000000083c110a 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x00000000306e43d6 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x00000000306df2f4 6. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:0: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000306dc10d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3249: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334ae56e 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 11. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 966 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 967 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, materialize(toLowCardinality(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE test_alias__fuzz_23 WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, materialize(toLowCardinality(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE test_alias__fuzz_23 WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'test_alias__fuzz_23' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, materialize(toLowCardinality(0)))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) PREWHERE test_alias__fuzz_23 WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 968 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Got boring AST Fuzzing step 969 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(cluster(toFixedString(toFixedString(toLowCardinality(toUInt128(23))), 23), currentDatabase(), t)), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(cluster(toFixedString(toFixedString(toLowCardinality(toUInt128(23))), 23), currentDatabase(), t)), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(cluster(toFixedString(toFixedString(toLowCardinality(toUInt128(23))), 23), currentDatabase(), t)), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 970 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt128(0)), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 971 out of 1000 WITH sum(if((a >= 0) AND cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), 23), 23), currentDatabase(t__fuzz_24), t) AND (b != 100) AND (c = toUInt128(0)), 1, materialize(toLowCardinality(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), 23), 23), currentDatabase(t__fuzz_24), t) AND (b != 100) AND (c = toUInt128(0)), 1, materialize(toLowCardinality(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), 23), 23), currentDatabase(t__fuzz_24), t) AND (b != 100) AND (c = toUInt128(0)), 1, materialize(toLowCardinality(0)))) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 29. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 Fuzzing step 972 out of 1000 WITH sum(if((b != 100) AND (c = toUInt128(0)), 1, 0)) AS r1, sum(if(1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((b != 100) AND (c = toUInt128(0)), 1, 0)) AS r1, sum(if(1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH sum(if((b != 100) AND (c = toUInt128(0)), 1, 0)) AS r1, sum(if(1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 15. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 973 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt128(0)), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 974 out of 1000 WITH sum(nums__fuzz_21, if((a >= 0) AND (b != 100) AND (c = toUInt128(0)), 1, 0)) RESPECT NULLS AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, materialize(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST Error on processing query 'WITH sum(nums__fuzz_21, if((a >= 0) AND (b != 100) AND (c = toUInt128(0)), 1, 0)) RESPECT NULLS AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, materialize(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_21' in scope WITH sum(nums__fuzz_21, if((a >= 0) AND (b != 100) AND (c = toUInt128(0)), 1, 0)) RESPECT NULLS AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, materialize(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 10. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 975 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt128(0)), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS, 1, 0)) AS r2 SELECT sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(toNullable(0)))) IGNORE NULLS, (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE equals(220, day, '2022-01-01') GROUP BY t ORDER BY t ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt128(0)), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS, 1, 0)) AS r2 SELECT sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(toNullable(0)))) IGNORE NULLS, (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE equals(220, day, '2022-01-01') GROUP BY t ORDER BY t ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt128(0)), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS, 1, 0)) AS r2 SELECT sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(toNullable(0)))) IGNORE NULLS, (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * materialize(100)) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE equals(220, day, '2022-01-01') GROUP BY t ORDER BY t ASC NULLS LAST. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 23. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 24. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 976 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt128(0)), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY t ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 977 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = toUInt128(0)), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 978 out of 1000 WITH sum(if((a >= 0) AND (b != materialize(100)) AND (c = toUInt128(0)), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(intDiv(materialize(toNullable(20)))) * 1000 AS t, (r1 * 100) / plus(r1) AS m FROM cluster(toNullable(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) GROUP BY t ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != materialize(100)) AND (c = toUInt128(0)), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(intDiv(materialize(toNullable(20)))) * 1000 AS t, (r1 * 100) / plus(r1) AS m FROM cluster(toNullable(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) GROUP BY t ORDER BY t DESC': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 1, should be 2: In scope WITH sum(if((a >= 0) AND (b != materialize(100)) AND (c = toUInt128(0)), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT multiply(intDiv(materialize(toNullable(20)))) * 1000 AS t, (r1 * 100) / plus(r1) AS m FROM cluster(toNullable(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) GROUP BY t ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 979 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(0)), 1, 0)) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, materialize(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 980 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0))), 1, 0)) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, materialize(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY t ORDER BY t DESC Query succeeded, using this AST as a start Fuzzing step 981 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(toLowCardinality(0)))), 1, 0)) AS r1, sum(if((a >= 0) AND 1 AND (b != materialize(toLowCardinality(100))) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE t__fuzz_4 GROUP BY t ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(toLowCardinality(0)))), 1, 0)) AS r1, sum(if((a >= 0) AND 1 AND (b != materialize(toLowCardinality(100))) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE t__fuzz_4 GROUP BY t ORDER BY t DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 't__fuzz_4' in scope WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(toLowCardinality(0)))), 1, 0)) AS r1, sum(if((a >= 0) AND 1 AND (b != materialize(toLowCardinality(100))) AND (c > 220), 1, 0)) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) WHERE t__fuzz_4 GROUP BY t ORDER BY t DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 982 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0))), 1, 0)) AS r1, sum(toLowCardinality(toLowCardinality(toFixedString(' ', 1))), if((a >= 0) AND (b != 100) AND (c > 220), 1, materialize(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster(toNullable((r1 * 100) / (r1 + r2), 'test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY t ORDER BY t DESC Error on processing query 'WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0))), 1, 0)) AS r1, sum(toLowCardinality(toLowCardinality(toFixedString(' ', 1))), if((a >= 0) AND (b != 100) AND (c > 220), 1, materialize(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster(toNullable((r1 * 100) / (r1 + r2), 'test_cluster_two_shards'), currentDatabase(), test_alias) GROUP BY t ORDER BY t DESC': Received from localhost:9000. DB::Exception: Missing columns: 'r2' 'r1' while processing query: 'toNullable((r1 * 100) / (r1 + r2), 'test_cluster_two_shards')', required columns: 'r1' 'r2' 'r1' 'r2'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 8. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 9. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 983 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0))), 1, 0)) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, materialize(0))) IGNORE NULLS AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 984 out of 1000 WITH sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0))), 1, materialize(0))) AS r1, sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, materialize(0))) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 985 out of 1000 WITH sum(if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(toUInt128(23))), materialize(23)), toNullable(100)) AND (c = toNullable(0)), 1, 0)) AS r1, sum(if((a >= 0) AND (b != materialize(materialize(100))) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 986 out of 1000 WITH sum(if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 987 out of 1000 EXPLAIN PIPELINE WITH sum(if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toNullable(0)) AND (b != materialize(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23), currentDatabase(), t), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE WITH sum(if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toNullable(0)) AND (b != materialize(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23), currentDatabase(), t), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope WITH sum(if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toNullable(0)) AND (b != materialize(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23), currentDatabase(), t), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST. Maybe you meant: ['t']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 988 out of 1000 WITH sum(if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH CUBE ORDER BY t DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 989 out of 1000 WITH sum(if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if((a >= toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 990 out of 1000 WITH sum(if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(a, t__fuzz_8, toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 991 out of 1000 WITH sum(if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(23), materialize(toNullable(23))), toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(a, t__fuzz_8, toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 992 out of 1000 WITH sum(toNullable(toLowCardinality(23)), if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(23), materialize(toNullable(toUInt256(23)))), toNullable(100)) AND (c = 0), 1, 0)) AS r1, sum(if(greaterOrEquals(a, t__fuzz_8, 0) AND (b != materialize(materialize(toLowCardinality(100)))) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) GROUP BY t WITH CUBE ORDER BY t DESC NULLS LAST Current AST is too long, discarding it and using the original AST as a start Fuzzing step 993 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 994 out of 1000 WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toUInt256(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' WITH TOTALS ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toUInt256(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' WITH TOTALS ORDER BY t ASC': Received from localhost:9000. DB::Exception: Column rtime is not under aggregate function and not in GROUP BY keys. In query WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != toUInt256(100)) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' WITH TOTALS ORDER BY t ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 9. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 10. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 11. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 12. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 13. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 14. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 15. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000335939dc 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 995 out of 1000 EXPLAIN optimize = true WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'EXPLAIN optimize = true WITH sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "optimize" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496cdff 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 996 out of 1000 WITH sum(if((a >= 0) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), toNullable(20)) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 997 out of 1000 WITH sum(if((a >= 0) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT multiply((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, intDiv(toUInt32(rtime), toNullable(20)) * 20, 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT multiply((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, intDiv(toUInt32(rtime), toNullable(20)) * 20, 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope WITH sum(if((a >= 0) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT multiply((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, intDiv(toUInt32(rtime), toNullable(20)) * 20, 1000) AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC. Maybe you meant: ['a']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 998 out of 1000 WITH sum(if((a >= 0) AND equals(c, 20, 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND greater(c), 1, 0)) AS r2 SELECT (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), toLowCardinality(toUInt256(1)), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Error on processing query 'WITH sum(if((a >= 0) AND equals(c, 20, 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND greater(c), 1, 0)) AS r2 SELECT (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), toLowCardinality(toUInt256(1)), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC': Received from localhost:9000. DB::Exception: Argument 'table' must be a literal with type String, got UInt256. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, std::basic_string_view>>(int, FormatStringHelperImpl::type, std::type_identity>>::type, std::type_identity>>::type>, String const&, std::basic_string_view>&&, std::basic_string_view>&&) @ 0x0000000038d43597 4. ./build_docker/./src/Storages/checkAndGetLiteralArgument.cpp:39: String DB::checkAndGetLiteralArgument(DB::ASTLiteral const&, String const&) @ 0x0000000038d4184d 5. ./build_docker/./src/Storages/checkAndGetLiteralArgument.cpp:31: String DB::checkAndGetLiteralArgument(std::shared_ptr const&, String const&) @ 0x0000000038d40cf9 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd5e8f 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 999 out of 1000 WITH sum(if((a >= 0) AND (c = 0), 1, 0)) AS r1, sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) AS r2 SELECT (intDiv(toUInt32(rtime), 20) * 20) * 1000 AS t, (r1 * 100) / (r1 + r2) AS m FROM cluster('test_cluster_two_shards', currentDatabase(), test_alias) WHERE day = '2022-01-01' GROUP BY t ORDER BY t ASC Query succeeded, using this AST as a start Fuzzing step 0 out of 1 Query succeeded, using this AST as a start DROP TABLE IF EXISTS test_alias__fuzz_0 DROP TABLE IF EXISTS test_alias__fuzz_1 DROP TABLE IF EXISTS test_alias__fuzz_2 DROP TABLE IF EXISTS test_alias__fuzz_3 DROP TABLE IF EXISTS test_alias__fuzz_4 DROP TABLE IF EXISTS test_alias__fuzz_5 DROP TABLE IF EXISTS test_alias__fuzz_6 DROP TABLE IF EXISTS test_alias__fuzz_7 DROP TABLE IF EXISTS test_alias__fuzz_8 DROP TABLE IF EXISTS test_alias__fuzz_9 DROP TABLE IF EXISTS test_alias__fuzz_10 DROP TABLE IF EXISTS test_alias__fuzz_11 DROP TABLE IF EXISTS test_alias__fuzz_12 DROP TABLE IF EXISTS test_alias__fuzz_13 DROP TABLE IF EXISTS test_alias__fuzz_14 DROP TABLE IF EXISTS test_alias__fuzz_15 DROP TABLE IF EXISTS test_alias__fuzz_16 DROP TABLE IF EXISTS test_alias__fuzz_17 DROP TABLE IF EXISTS test_alias__fuzz_18 DROP TABLE IF EXISTS test_alias__fuzz_19 DROP TABLE IF EXISTS test_alias__fuzz_20 DROP TABLE IF EXISTS test_alias__fuzz_21 DROP TABLE IF EXISTS test_alias__fuzz_22 DROP TABLE IF EXISTS test_alias__fuzz_23 DROP TABLE IF EXISTS test_alias__fuzz_24 DROP TABLE IF EXISTS test_alias__fuzz_25 DROP TABLE IF EXISTS test_alias__fuzz_26 DROP TABLE IF EXISTS test_alias__fuzz_27 DROP TABLE IF EXISTS test_alias__fuzz_28 DROP TABLE IF EXISTS test_alias__fuzz_29 DROP TABLE IF EXISTS test_alias__fuzz_30 DROP TABLE IF EXISTS test_alias__fuzz_31 DROP TABLE IF EXISTS test_alias__fuzz_32 DROP TABLE IF EXISTS test_alias__fuzz_33 DROP TABLE IF EXISTS test_alias__fuzz_34 DROP TABLE IF EXISTS test_alias__fuzz_35 DROP TABLE IF EXISTS test_alias__fuzz_36 DROP TABLE IF EXISTS test_alias__fuzz_37 DROP TABLE IF EXISTS test_alias__fuzz_38 DROP TABLE IF EXISTS test_alias__fuzz_39 DROP TABLE IF EXISTS test_alias__fuzz_40 DROP TABLE IF EXISTS test_alias__fuzz_41 DROP TABLE IF EXISTS test_alias__fuzz_42 DROP TABLE IF EXISTS test_alias__fuzz_43 DROP TABLE IF EXISTS test_alias__fuzz_44 DROP TABLE IF EXISTS test_alias__fuzz_45 DROP TABLE IF EXISTS test_alias__fuzz_46 DROP TABLE IF EXISTS test_alias__fuzz_47 DROP TABLE IF EXISTS test_alias__fuzz_48 Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), 23), toUInt8((number / 8) % 2) AS x4 FROM numbers(toNullable(16)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), 23), toUInt8((number / 8) % 2) AS x4 FROM numbers(toNullable(16))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt8) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 2 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, cluster(toNullable(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) AND (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8(modulo(toFixedString(toLowCardinality(' '), toLowCardinality(toNullable(1))), number / 8, 2)) AS x4 FROM numbers(16) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1)) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, cluster(toNullable(toNullable('test_cluster_two_shards')), currentDatabase(), test_alias) AND (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8(modulo(toFixedString(toLowCardinality(' '), toLowCardinality(toNullable(1))), number / 8, 2)) AS x4 FROM numbers(16)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8(modulo(toFixedString(toLowCardinality(' '), toLowCardinality(toNullable(1))), number / 8, 2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 4 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND (a >= toNullable(0)) AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE (xor1 != xor2) OR t__fuzz_41 OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND (a >= toNullable(0)) AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE (xor1 != xor2) OR t__fuzz_41 OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND (a >= toNullable(0)) AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE (xor1 != xor2) OR t__fuzz_41 OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 5 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE (xor1 != xor2) OR (notEquals(and1, materialize(sum(if((b != 100) AND equals(c, c = toUInt256(0), 0), materialize(toUInt128(1)), 0)), toLowCardinality(toUInt256(23))), and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE (xor1 != xor2) OR (notEquals(and1, materialize(sum(if((b != 100) AND equals(c, c = toUInt256(0), 0), materialize(toUInt128(1)), 0)), toLowCardinality(toUInt256(23))), and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x2' in scope SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE (xor1 != xor2) OR (notEquals(and1, materialize(sum(if((b != 100) AND equals(c, c = toUInt256(0), 0), materialize(toUInt128(1)), 0)), toLowCardinality(toUInt256(23))), and2) OR (or1 != or2)). Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 6 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % materialize(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Query succeeded, using this AST as a start Fuzzing step 7 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), 0), x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % materialize(2)) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), 0), x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % materialize(2)) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % materialize(2)) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 8 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Query succeeded, using this AST as a start Fuzzing step 9 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % toNullable(2)) AS x4 FROM numbers(16) WHERE t__fuzz_26 ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % toNullable(2)) AS x4 FROM numbers(16) WHERE t__fuzz_26) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression identifier 't__fuzz_26' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % toNullable(2)) AS x4 FROM numbers(16) WHERE t__fuzz_26. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 7. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 10 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8(divide(number) % toUInt256(2)) AS x4 FROM numbers(16) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8(divide(number) % toUInt256(2)) AS x4 FROM numbers(16)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8(divide(number) % toUInt256(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 11 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 12 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt128(2)) AS x2, toUInt8(modulo(number / toUInt256(4))) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt128(2)) AS x2, toUInt8(modulo(number / toUInt256(4))) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt128(2)) AS x2, toUInt8(modulo(number / toUInt256(4))) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 13 out of 1000 SELECT xor(x1, x2, x3) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)) OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(if((a >= toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220), toLowCardinality(1), 0), (number / 8) % 2) AS x4 FROM numbers(16) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)) OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(if((a >= toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220), toLowCardinality(1), 0), (number / 8) % 2) AS x4 FROM numbers(16)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(if((a >= toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220), toLowCardinality(1), 0), (number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 14 out of 1000 SELECT xor(x1, x2, x3) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(multiIf(s IN ('a', 'b'), toUInt128(1), 0), number, 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % toLowCardinality(toNullable(2))) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(multiIf(s IN ('a', 'b'), toUInt128(1), 0), number, 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % toLowCardinality(toNullable(2))) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(multiIf(s IN ('a', 'b'), toUInt128(1), 0), number, 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % toLowCardinality(toNullable(2))) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 15 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, test_alias__fuzz_32, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, test_alias__fuzz_32, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 16 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8(divide(number, if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), toLowCardinality(toUInt256(1)), 1, 0), toNullable(8)) % 2) AS x4 FROM numbers(16) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8(divide(number, if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), toLowCardinality(toUInt256(1)), 1, 0), toNullable(8)) % 2) AS x4 FROM numbers(16)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8(divide(number, if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), toLowCardinality(toUInt256(1)), 1, 0), toNullable(8)) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 17 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, and(x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, and(x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, and(x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 18 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(toLowCardinality(16)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(toLowCardinality(16))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt8) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 19 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 20 out of 1000 EXPLAIN PIPELINE header = true SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (materialize(1) AND x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE header = true SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (materialize(1) AND x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 21 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / toUInt256(4), if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, materialize(0)), 2)) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / toUInt256(4), if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, materialize(0)), 2)) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / toUInt256(4), if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, materialize(0)), 2)) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 22 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, greater(c, xor(xor(x1), xor(x3, x4)), toNullable(220)), toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, greater(c, xor(xor(x1), xor(x3, x4)), toNullable(220)), toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, greater(c, xor(xor(x1), xor(x3, x4)), toNullable(220)), toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 23 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 24 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toUInt128(2)) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toUInt128(2)) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toUInt128(2)) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 25 out of 1000 SELECT xor(x1, x2, x3) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, or(x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x2, x3) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, or(x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, or(x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 26 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR or(x3) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR or(x3) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 27 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), sum(if((b != 100) AND (c > materialize(220)), 1, 0)) IGNORE NULLS, xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), sum(if((b != 100) AND (c > materialize(220)), 1, 0)) IGNORE NULLS, xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 28 out of 1000 EXPLAIN AST SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 29 out of 1000 EXPLAIN AST SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 30 out of 1000 EXPLAIN TABLE OVERRIDE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('xor'): xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 31 out of 1000 EXPLAIN AST SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 32 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 33 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('xor'): xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 34 out of 1000 EXPLAIN SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 35 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 36 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 37 out of 1000 EXPLAIN AST SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 38 out of 1000 EXPLAIN QUERY TREE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 39 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, and(x1), (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT sum(toLowCardinality(toLowCardinality(toUInt128(23))), if((a >= 0) AND 16 AND toLowCardinality(1), 1, 0)) IGNORE NULLS, toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(nums__fuzz_12, (number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, and(x1), (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT sum(toLowCardinality(toLowCardinality(toUInt128(23))), if((a >= 0) AND 16 AND toLowCardinality(1), 1, 0)) IGNORE NULLS, toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(nums__fuzz_12, (number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT sum(toLowCardinality(toLowCardinality(toUInt128(23))), if((a >= 0) AND 16 AND toLowCardinality(1), 1, 0)) IGNORE NULLS, toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(nums__fuzz_12, (number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 40 out of 1000 EXPLAIN QUERY TREE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 41 out of 1000 EXPLAIN SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 42 out of 1000 EXPLAIN SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 43 out of 1000 EXPLAIN SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 44 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('xor'): xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 45 out of 1000 EXPLAIN SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 46 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('xor'): xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 47 out of 1000 EXPLAIN AST SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 48 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 49 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 50 out of 1000 EXPLAIN AST SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 51 out of 1000 EXPLAIN AST SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 52 out of 1000 EXPLAIN AST SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 53 out of 1000 EXPLAIN AST SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 54 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), toFixedString(' ', toUInt128(1)), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND t__fuzz_36 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(toLowCardinality(toUInt256(1)), number / 8, 2)) AS x4 FROM numbers(toLowCardinality(16)) ) GROUP BY greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), toNullable(23)), 100) AND (c = 0), (sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(nums__fuzz_21, 1))), toLowCardinality(toUInt128(1))), 0)) IGNORE NULLS / count()) * materialize(100) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), toFixedString(' ', toUInt128(1)), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND t__fuzz_36 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(toLowCardinality(toUInt256(1)), number / 8, 2)) AS x4 FROM numbers(toLowCardinality(16))) GROUP BY greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), toNullable(23)), 100) AND (c = 0), (sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(nums__fuzz_21, 1))), toLowCardinality(toUInt128(1))), 0)) IGNORE NULLS / count()) * materialize(100)': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt8) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 55 out of 1000 EXPLAIN AST SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 56 out of 1000 EXPLAIN AST SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 57 out of 1000 EXPLAIN AST SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 58 out of 1000 EXPLAIN AST SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 59 out of 1000 EXPLAIN TABLE OVERRIDE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('xor'): xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 60 out of 1000 EXPLAIN AST SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 61 out of 1000 EXPLAIN QUERY TREE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 62 out of 1000 EXPLAIN QUERY TREE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 63 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 64 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 65 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 66 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 67 out of 1000 EXPLAIN TABLE OVERRIDE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('xor'): xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 68 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 69 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 70 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 71 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 EXPLAIN ESTIMATE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 73 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 74 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 75 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('xor'): xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 76 out of 1000 EXPLAIN SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 77 out of 1000 EXPLAIN SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 78 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('xor'): xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 79 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 80 out of 1000 EXPLAIN TABLE OVERRIDE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('xor'): xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 81 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 82 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 83 out of 1000 EXPLAIN TABLE OVERRIDE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('xor'): xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 84 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 85 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 86 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 87 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 88 out of 1000 EXPLAIN SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 89 out of 1000 EXPLAIN AST SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 90 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(toFixedString(toFixedString(toFixedString(sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS, 'test_cluster_two_shards', toNullable(23)), 23), toLowCardinality(toLowCardinality(23))), number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(toFixedString(toFixedString(toFixedString(sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS, 'test_cluster_two_shards', toNullable(23)), 23), toLowCardinality(toLowCardinality(23))), number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(toFixedString(toFixedString(toFixedString(sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS, 'test_cluster_two_shards', toNullable(23)), 23), toLowCardinality(toLowCardinality(23))), number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 30. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d Fuzzing step 91 out of 1000 EXPLAIN ESTIMATE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 92 out of 1000 EXPLAIN TABLE OVERRIDE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('xor'): xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 93 out of 1000 EXPLAIN AST SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 94 out of 1000 EXPLAIN AST SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 95 out of 1000 EXPLAIN SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 96 out of 1000 EXPLAIN SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 97 out of 1000 EXPLAIN SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 98 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 99 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(if(day = '2022-01-01', 10, (a >= toLowCardinality(0)) AND (b != 100) AND (c = toNullable(0)), 1, 0), xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(if(day = '2022-01-01', 10, (a >= toLowCardinality(0)) AND (b != 100) AND (c = toNullable(0)), 1, 0), xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'day' in scope SELECT xor(x1, x2, x3, x4) AS xor1, xor(if(day = '2022-01-01', 10, (a >= toLowCardinality(0)) AND (b != 100) AND (c = toNullable(0)), 1, 0), xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 100 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) IGNORE NULLS OR (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) IGNORE NULLS OR (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) IGNORE NULLS OR (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 101 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 102 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 103 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 104 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) WHERE if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(0))) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) WHERE if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(0))))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) WHERE if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(0))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 105 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(sum(if(greaterOrEquals(a, t__fuzz_8, toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220), 1, 0)), x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(sum(if(greaterOrEquals(a, t__fuzz_8, toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220), 1, 0)), x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(sum(if(greaterOrEquals(a, t__fuzz_8, toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220), 1, 0)), x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 106 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8(nums__fuzz_21, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8(nums__fuzz_21, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_21' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8(nums__fuzz_21, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 107 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(t__fuzz_42, 16) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(t__fuzz_42, 16))': Received from localhost:9000. DB::Exception: Missing columns: 't__fuzz_42' while processing query: 't__fuzz_42', required columns: 't__fuzz_42' 't__fuzz_42'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 8. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf2e5b 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 108 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, and(x1 AND x2) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(toUInt128(2))) % 2) AS x2, toUInt8(divide(number, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23), 4) % 2) AS x3, toUInt8(38, (number / 8) % 2) AS x4 FROM numbers(16) ) GROUP BY (a >= 0) AND 1, toFixedString(' ', toLowCardinality(1)), toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23), 23), sum(t__fuzz_41, if((b != 100) AND toNullable(toUInt256(100)) AND (c = 0), 1, 0)) IGNORE NULLS Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, and(x1 AND x2) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(toUInt128(2))) % 2) AS x2, toUInt8(divide(number, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23), 4) % 2) AS x3, toUInt8(38, (number / 8) % 2) AS x4 FROM numbers(16)) GROUP BY (a >= 0) AND 1, toFixedString(' ', toLowCardinality(1)), toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23), 23), sum(t__fuzz_41, if((b != 100) AND toNullable(toUInt256(100)) AND (c = 0), 1, 0)) IGNORE NULLS': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(toUInt128(2))) % 2) AS x2, toUInt8(divide(number, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23), 4) % 2) AS x3, toUInt8(38, (number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 109 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(toUInt128(16)) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(toUInt128(16)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 110 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 111 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 112 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % 2) AS x4 FROM numbers(16) ) WHERE if((a >= 0) AND (b != 100) AND (c > 220), 1, 0) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % 2) AS x4 FROM numbers(16)) WHERE if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % 2) AS x4 FROM numbers(16)) WHERE if((a >= 0) AND (b != 100) AND (c > 220), 1, 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 113 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 114 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 115 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 116 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, (sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, (sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, (sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 30. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 Fuzzing step 117 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, and(x1) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, and(x1) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 118 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(day = toFixedString('2022-01-01', 10), (number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(day = toFixedString('2022-01-01', 10), (number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'day' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(day = toFixedString('2022-01-01', 10), (number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 119 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, and(x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, and(x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, and(x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 120 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(toUInt128(toNullable(toLowCardinality(0))), (number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(toUInt128(toNullable(toLowCardinality(0))), (number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(toUInt128(toNullable(toLowCardinality(0))), (number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000087714ea 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 121 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % materialize(toNullable(2))) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % materialize(toNullable(2))) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % materialize(toNullable(2))) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 122 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(if(and(c = 0), 1, toUInt128(0)), xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(if(and(c = 0), 1, toUInt128(0)), xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT xor(x1, x2, x3, x4) AS xor1, xor(if(and(c = 0), 1, toUInt128(0)), xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 123 out of 1000 SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, and(x1 AND x2) AS and2 FROM ( SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x2, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, and(x1 AND x2) AS and2 FROM (SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 124 out of 1000 SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 125 out of 1000 SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND and(x3) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0), (number / 8) % 2) AS x4 FROM numbers(16) GROUP BY if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND equals(t__fuzz_42, c, 0), 1, 0), greaterOrEquals(sum(if((b != toNullable(materialize(materialize(toNullable(1))), 100)) AND (c = 0), materialize(toUInt128(1)), 0)), a, 0) AND splitByChar(toLowCardinality(' '), getOSKernelVersion()) AND 1, round(divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()) * 100) ) Error on processing query 'SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND and(x3) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0), (number / 8) % 2) AS x4 FROM numbers(16) GROUP BY if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND equals(t__fuzz_42, c, 0), 1, 0), greaterOrEquals(sum(if((b != toNullable(materialize(materialize(toNullable(1))), 100)) AND (c = 0), materialize(toUInt128(1)), 0)), a, 0) AND splitByChar(toLowCardinality(' '), getOSKernelVersion()) AND 1, round(divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()) * 100))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0), (number / 8) % 2) AS x4 FROM numbers(16) GROUP BY if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND equals(t__fuzz_42, c, 0), 1, 0), greaterOrEquals(sum(if((b != toNullable(materialize(materialize(toNullable(1))), 100)) AND (c = 0), materialize(toUInt128(1)), 0)), a, 0) AND splitByChar(toLowCardinality(' '), getOSKernelVersion()) AND 1, round(divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()) * 100). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 126 out of 1000 SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR sum(if((a >= 0) AND (b != toUInt128(100)) AND (c > toUInt256(220)), 1, 0)) OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR sum(if((a >= 0) AND (b != toUInt128(100)) AND (c > toUInt256(220)), 1, 0)) OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR sum(if((a >= 0) AND (b != toUInt128(100)) AND (c > toUInt256(220)), 1, 0)) OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 127 out of 1000 SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 128 out of 1000 SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 129 out of 1000 SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND (r1 * 100) AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) PREWHERE round(divide(count()) * materialize(100)) Error on processing query 'SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND (r1 * 100) AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) PREWHERE round(divide(count()) * materialize(100))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'r1' in scope SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND (r1 * 100) AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) PREWHERE round(divide(count()) * materialize(100)). Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 130 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, and(x3 AND toLowCardinality(0) AND x4) AS and2 FROM ( SELECT toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, and(x3 AND toLowCardinality(0) AND x4) AS and2 FROM (SELECT toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('xor'): xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, a. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 131 out of 1000 SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((b != 100) AND (c > 220), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((b != 100) AND (c > 220), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((b != 100) AND (c > 220), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 132 out of 1000 SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), 23, currentDatabase(), t) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) PREWHERE toUInt128(toLowCardinality(1)) Error on processing query 'SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), 23, currentDatabase(), t) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) PREWHERE toUInt128(toLowCardinality(1))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), 23, currentDatabase(), t) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) PREWHERE toUInt128(toLowCardinality(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 134 out of 1000 SELECT xor(x1, x3, x4) AS xor1, xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 135 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 136 out of 1000 SELECT xor(xor(x1, x2), xor(if((b != 100) AND (c > 220), 1, toLowCardinality(0)), x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(if((b != 100) AND (c > 220), 1, toLowCardinality(0)), x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT xor(xor(x1, x2), xor(if((b != 100) AND (c > 220), 1, toLowCardinality(0)), x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 137 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 138 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 139 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(16) ) GROUP BY sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS, 4 Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(16)) GROUP BY sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS, 4': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(16)) GROUP BY sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS, 4. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 140 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 141 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(23), materialize(toNullable(23))), 100) AND (c = 0), 1, 0) AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(23), materialize(toNullable(23))), 100) AND (c = 0), 1, 0) AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 142 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(toFixedString((a >= 0) AND 1 AND (c > 220), 'test_cluster_two_shards', toNullable(23)), 16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(toFixedString((a >= 0) AND 1 AND (c > 220), 'test_cluster_two_shards', toNullable(23)), 16))': Received from localhost:9000. DB::Exception: Missing columns: 'c' 'a' while processing query: 'toFixedString((a >= 0) AND 1 AND (c > 220), 'test_cluster_two_shards', toNullable(23))', required columns: 'a' 'c' 'a' 'c'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 8. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf2e5b 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 143 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE sum(if((b != toNullable(100)) AND (c = toNullable(0)), 1, 0)) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE sum(if((b != toNullable(100)) AND (c = toNullable(0)), 1, 0))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE sum(if((b != toNullable(100)) AND (c = toNullable(0)), 1, 0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 144 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 145 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), number % 2) AS x1, toUInt8((number / toUInt256(2)) % 2) AS x2, toUInt8(round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), number % 2) AS x1, toUInt8((number / toUInt256(2)) % 2) AS x2, toUInt8(round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), number % 2) AS x1, toUInt8((number / toUInt256(2)) % 2) AS x2, toUInt8(round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 146 out of 1000 EXPLAIN PIPELINE compact = true SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, and(and(x3)) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, and(and(x3)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 147 out of 1000 SELECT xor(toUInt8((number / toLowCardinality(2)) % 2), xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(toUInt8((number / toLowCardinality(2)) % 2), xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT xor(toUInt8((number / toLowCardinality(2)) % 2), xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 148 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (splitByChar(' ', getOSKernelVersion()) OR x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (splitByChar(' ', getOSKernelVersion()) OR x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Illegal type (Array(String)) of 1 argument of function or: In scope SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (splitByChar(' ', getOSKernelVersion()) OR x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8a2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 149 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(if((b != 100) AND (c = toNullable(0)), materialize(1), 0), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(if((b != 100) AND (c = toNullable(0)), materialize(1), 0), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(if((b != 100) AND (c = toNullable(0)), materialize(1), 0), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 150 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) PREWHERE toFixedString(toLowCardinality(toFixedString(' ', 1)), 1) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) PREWHERE toFixedString(toLowCardinality(toFixedString(' ', 1)), 1))': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: LowCardinality(FixedString(1)). In query SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) PREWHERE toFixedString(toLowCardinality(toFixedString(' ', 1)), 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 151 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AS and1, and(x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toLowCardinality(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AS and1, and(x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toLowCardinality(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AS and1, and(x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toLowCardinality(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 152 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, and(x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, and(x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, and(x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 153 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, version_pair[materialize(materialize(1))], 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, version_pair[materialize(materialize(1))], 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, version_pair[materialize(materialize(1))], 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 154 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 155 out of 1000 SELECT xor(xor(x1, x2), xor(x3, 8, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, or(x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0)), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) PREWHERE sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(toNullable(0)))) IGNORE NULLS Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, 8, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, or(x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0)), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) PREWHERE sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(toNullable(0)))) IGNORE NULLS': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0)), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 156 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 157 out of 1000 SELECT xor(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), toNullable(23)), 23), 23), xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % toUInt128(2)) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), toNullable(23)), 23), 23), xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % toUInt128(2)) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT xor(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), toNullable(23)), 23), 23), xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % toUInt128(2)) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 158 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND (greaterOrEquals(0) AND (b != toNullable(100)) AND (c = 0)) AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND (greaterOrEquals(0) AND (b != toNullable(100)) AND (c = 0)) AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND (greaterOrEquals(0) AND (b != toNullable(100)) AND (c = 0)) AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 159 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(modulo(toLowCardinality(1), number, 2)) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(modulo(toLowCardinality(1), number, 2)) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(modulo(toLowCardinality(1), number, 2)) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 160 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, or(x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, or(x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, or(x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 161 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)), number, 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)), number, 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)), number, 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 162 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, sum(if(greaterOrEquals(materialize(' '), 1, a, toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AND (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, sum(if(greaterOrEquals(materialize(' '), 1, a, toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AND (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, sum(if(greaterOrEquals(materialize(' '), 1, a, toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AND (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 163 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR multiIf(s IN ('a', 'b'), materialize(1), 0) OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / toLowCardinality(8))) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR multiIf(s IN ('a', 'b'), materialize(1), 0) OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / toLowCardinality(8))) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / toLowCardinality(8))) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 164 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(intDiv(74, toUInt32(rtime), 20) * toNullable(20), 16) ) Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(intDiv(74, toUInt32(rtime), 20) * toNullable(20), 16))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 165 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 166 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 167 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 168 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, or(x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, or(x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, or(x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 169 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, or(x1) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8(divide(c > 220, number, 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(toLowCardinality(16)) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, or(x1) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8(divide(c > 220, number, 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(toLowCardinality(16)))': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt8) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 170 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(toNullable(materialize(toLowCardinality(toNullable(2))))) % 2) AS x2, toUInt8(toLowCardinality(toLowCardinality(toUInt128(23))), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(toNullable(materialize(toLowCardinality(toNullable(2))))) % 2) AS x2, toUInt8(toLowCardinality(toLowCardinality(toUInt128(23))), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(toNullable(materialize(toLowCardinality(toNullable(2))))) % 2) AS x2, toUInt8(toLowCardinality(toLowCardinality(toUInt128(23))), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 171 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS AND (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS AND (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, x1 AND x2 AND x3 AND x4 AS and1, sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS AND (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 172 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, materialize(toNullable(toNullable(1))) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 173 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, materialize(toNullable(1)) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(toLowCardinality(8))) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, materialize(toNullable(1)) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(toLowCardinality(8))) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(toLowCardinality(8))) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 174 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, materialize(toNullable(toNullable(1))) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), materialize(toLowCardinality(0)))), number % materialize(2)) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, materialize(toNullable(toNullable(1))) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), materialize(toLowCardinality(0)))), number % materialize(2)) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), materialize(toLowCardinality(0)))), number % materialize(2)) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 175 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, materialize(toNullable(toNullable(toFixedString(toLowCardinality(toFixedString(' ', 1)), 1), 1))) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, materialize(toNullable(toNullable(toFixedString(toLowCardinality(toFixedString(' ', 1)), 1), 1))) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, materialize(toNullable(toNullable(toFixedString(toLowCardinality(toFixedString(' ', 1)), 1), 1))) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 176 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, materialize(toNullable(toNullable(1))) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 177 out of 1000 SELECT intDiv(toUInt32(rtime), toLowCardinality(20)) * materialize(1000), xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, materialize(toNullable(toNullable(1))) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT intDiv(toUInt32(rtime), toLowCardinality(20)) * materialize(1000), xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, materialize(toNullable(toNullable(1))) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT intDiv(toUInt32(rtime), toLowCardinality(20)) * materialize(1000), xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, materialize(toNullable(toNullable(1))) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 178 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, materialize(toNullable(1)) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / toNullable(2), toLowCardinality(2), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(x3 OR x4, number / 8, 2)) AS x4 FROM numbers(16) WHERE sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, materialize(toNullable(1)) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / toNullable(2), toLowCardinality(2), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(x3 OR x4, number / 8, 2)) AS x4 FROM numbers(16) WHERE sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS)': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / toNullable(2), toLowCardinality(2), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(x3 OR x4, number / 8, 2)) AS x4 FROM numbers(16) WHERE sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 179 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(toNullable(1)) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 180 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, day = toFixedString(toLowCardinality('2022-01-01'), 10), 2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, day = toFixedString(toLowCardinality('2022-01-01'), 10), 2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'day' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, day = toFixedString(toLowCardinality('2022-01-01'), 10), 2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 181 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(toNullable(1)) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 182 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(toNullable(1)) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(sum(if(toUInt256(1) AND (c > 220), toUInt256(1), 0)), number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(toNullable(1)) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(sum(if(toUInt256(1) AND (c > 220), toUInt256(1), 0)), number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT toUInt8(sum(if(toUInt256(1) AND (c > 220), toUInt256(1), 0)), number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 183 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(toNullable(1)) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8(divide(number, (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(toNullable(1)) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8(divide(number, (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8(divide(number, (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 30. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 Fuzzing step 184 out of 1000 SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / toNullable(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT xor(xor(x1, x2), xor(x3, x4)) AS xor2, x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / toNullable(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / toNullable(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 185 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(toNullable(1)) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 186 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 187 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)) RESPECT NULLS OR x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)) RESPECT NULLS OR x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)) RESPECT NULLS OR x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 188 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT sum(if((a >= toNullable(0)) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))), toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT sum(if((a >= toNullable(0)) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))), toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT sum(if((a >= toNullable(0)) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0))), toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 189 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, 1 AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(nums__fuzz_36, (number / toNullable(toNullable(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, 1 AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(nums__fuzz_36, (number / toNullable(toNullable(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_36' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(nums__fuzz_36, (number / toNullable(toNullable(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 190 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x2' in scope SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 191 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 192 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 193 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (if((b != 100) AND (c = 0), materialize(1), 0) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) PREWHERE t__fuzz_47 Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (if((b != 100) AND (c = 0), materialize(1), 0) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) PREWHERE t__fuzz_47': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (if((b != 100) AND (c = 0), materialize(1), 0) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) PREWHERE t__fuzz_47. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 194 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (toNullable(' ') OR x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (toNullable(' ') OR x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Illegal type (Nullable(String)) of 1 argument of function or: In scope SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (toNullable(' ') OR x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AND x4 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8a2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 195 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 196 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (test_alias__fuzz_7 AND x2) AND (sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) RESPECT NULLS AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (test_alias__fuzz_7 AND x2) AND (sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) RESPECT NULLS AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_7' in scope SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (test_alias__fuzz_7 AND x2) AND (sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) RESPECT NULLS AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 197 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 198 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 199 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % toLowCardinality(2)) AS x4 FROM numbers(toNullable(16)) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % toLowCardinality(2)) AS x4 FROM numbers(toNullable(16)))': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt8) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 200 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 201 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8(modulo(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)), number / 8, toLowCardinality(2))) AS x4 FROM numbers(16) WHERE sum(multiIf(s IN ('a', 'b'), 1, 0)) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8(modulo(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)), number / 8, toLowCardinality(2))) AS x4 FROM numbers(16) WHERE sum(multiIf(s IN ('a', 'b'), 1, 0)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8(modulo(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)), number / 8, toLowCardinality(2))) AS x4 FROM numbers(16) WHERE sum(multiIf(s IN ('a', 'b'), 1, 0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 202 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 203 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, 1 AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, 1 AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x4' in scope SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, 1 AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3 FROM numbers(16)). Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 204 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR ((intDiv(toUInt32(rtime), 20) * 20) * materialize(1000)) OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0)), number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR ((intDiv(toUInt32(rtime), 20) * 20) * materialize(1000)) OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0)), number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0)), number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 205 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, or(x1 OR x2) AS or2, 1 AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0), number / toNullable(2), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, or(x1 OR x2) AS or2, 1 AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0), number / toNullable(2), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0), number / toNullable(2), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 206 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 207 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(materialize(toUInt256(1)), 2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(materialize(toUInt256(1)), 2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(materialize(toUInt256(1)), 2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 208 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 209 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(toLowCardinality(16)) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(toLowCardinality(16)))': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt8) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 210 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(x1 OR x2, 1) AND x1 AND x2 AND x3 AS and1, and(x1 AND x2) AS and2 FROM ( SELECT toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(materialize(16)) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(x1 OR x2, 1) AND x1 AND x2 AND x3 AS and1, and(x1 AND x2) AS and2 FROM (SELECT toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(materialize(16)))': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 211 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(toNullable(2)) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) GROUP BY (a >= 0) AND notEquals(b, toFixedString(toLowCardinality(23), materialize(toNullable(materialize(23)))), toNullable(100)) AND (c = 0), toLowCardinality(10), toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(23), nums__fuzz_41, toLowCardinality(1), 23), greaterOrEquals(0) AND (b != 100) AND (c > 220) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(toNullable(2)) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16)) GROUP BY (a >= 0) AND notEquals(b, toFixedString(toLowCardinality(23), materialize(toNullable(materialize(23)))), toNullable(100)) AND (c = 0), toLowCardinality(10), toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(23), nums__fuzz_41, toLowCardinality(1), 23), greaterOrEquals(0) AND (b != 100) AND (c > 220)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(toNullable(2)) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 212 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (number % 2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (number % 2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (number % 2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 213 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND if((b != toNullable(100)) AND (c = 0), materialize(t__fuzz_14, 1), 0) AND x3 AS and1, and(x3 AND x4) AS and2 FROM ( SELECT toUInt8(nums__fuzz_45, number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) GROUP BY nums__fuzz_26, nums__fuzz_41, materialize(23), (intDiv(toUInt32(rtime), 20) * 20) * 1000 ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND if((b != toNullable(100)) AND (c = 0), materialize(t__fuzz_14, 1), 0) AND x3 AS and1, and(x3 AND x4) AS and2 FROM (SELECT toUInt8(nums__fuzz_45, number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) GROUP BY nums__fuzz_26, nums__fuzz_41, materialize(23), (intDiv(toUInt32(rtime), 20) * 20) * 1000)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_45' in scope SELECT toUInt8(nums__fuzz_45, number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) GROUP BY nums__fuzz_26, nums__fuzz_41, materialize(23), (intDiv(toUInt32(rtime), 20) * 20) * 1000. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 214 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, or(x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(8)) % toLowCardinality(2), (number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8(modulo(toLowCardinality(2))) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, or(x3 OR x4) AS or2, toNullable(1) AND x1 AND x2 AND x3 AS and1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(8)) % toLowCardinality(2), (number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8(modulo(toLowCardinality(2))) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(8)) % toLowCardinality(2), (number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8(modulo(toLowCardinality(2))) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000087714ea 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 215 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / materialize(4)) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 216 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 217 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % toLowCardinality(2)) AS x3, toUInt8((number / toUInt128(8)) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 218 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 219 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 220 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 221 out of 1000 EXPLAIN PIPELINE compact = true SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 222 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, (number / materialize(4)) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, (number / materialize(4)) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, (number / materialize(4)) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 223 out of 1000 SELECT x1 OR x2 OR toLowCardinality('test_cluster_two_shards') OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR toLowCardinality('test_cluster_two_shards') OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Illegal type (String) of 3 argument of function or: In scope SELECT x1 OR x2 OR toLowCardinality('test_cluster_two_shards') OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8a2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 224 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND toFixedString('2022-01-01', 10) AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(toLowCardinality(toNullable(16))) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND toFixedString('2022-01-01', 10) AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(toLowCardinality(toNullable(16))))': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Nullable(UInt8)) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 225 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR toFixedString(toLowCardinality('2022-01-01'), 10) OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR toFixedString(toLowCardinality('2022-01-01'), 10) OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Illegal type (FixedString(10)) of 2 argument of function or: In scope SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR toFixedString(toLowCardinality('2022-01-01'), 10) OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8a2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 226 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 227 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 228 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 229 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 230 out of 1000 SELECT x2 OR x3 OR x4 AS or1, (sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100), (x1 OR x2) OR (x3 OR x4) AS or2, and(x1) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8(modulo(number / 8, toFixedString(toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), toNullable(23)), 2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x2 OR x3 OR x4 AS or1, (sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100), (x1 OR x2) OR (x3 OR x4) AS or2, and(x1) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8(modulo(number / 8, toFixedString(toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), toNullable(23)), 2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8(modulo(number / 8, toFixedString(toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), toNullable(23)), 2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 231 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 232 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8(xor(x1, x2), (number / 8) % 2) AS x4 FROM numbers((sum(multiIf(toUInt8((number / toNullable(2)) % 2), in(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100, 16) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8(xor(x1, x2), (number / 8) % 2) AS x4 FROM numbers((sum(multiIf(toUInt8((number / toNullable(2)) % 2), in(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100, 16))': Received from localhost:9000. DB::Exception: Wrong number of arguments passed to function in. Expected: 2, passed: 1: While processing in(_CAST(('a', 'b'), 'Tuple(String, String)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000a7e012a 4. ./src/Interpreters/misc.h:45: DB::MarkTableIdentifiersMatcher::visit(DB::ASTFunction&, DB::MarkTableIdentifiersMatcher::Data const&) @ 0x0000000035763114 5. ./build_docker/./src/Interpreters/MarkTableIdentifiersVisitor.cpp:48: DB::MarkTableIdentifiersMatcher::visit(std::shared_ptr&, DB::MarkTableIdentifiersMatcher::Data&) @ 0x0000000035762c16 6. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003567b6d5 7. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b985 8. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 9. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 10. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 11. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 12. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 13. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 14. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000003564d044 16. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000003565270b 17. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 18. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 19. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 20. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf2e5b 21. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 22. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 233 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 234 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 235 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 236 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 237 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), number / 8, 2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), number / 8, 2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), number / 8, 2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 238 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 239 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(toUInt256(8))) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 240 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number, toLowCardinality(0), toUInt256(8)) % 2) AS x4 FROM numbers(toNullable(toUInt128(1)), 16) ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number, toLowCardinality(0), toUInt256(8)) % 2) AS x4 FROM numbers(toNullable(toUInt128(1)), 16))': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt128) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf2e5b 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 241 out of 1000 SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23, 23, currentDatabase(), t), (number / 4) % 2) AS x3, toUInt8((number / materialize(toUInt256(8))) % 2) AS x4 FROM numbers(16) GROUP BY (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, test_alias__fuzz_1 ) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23, 23, currentDatabase(), t), (number / 4) % 2) AS x3, toUInt8((number / materialize(toUInt256(8))) % 2) AS x4 FROM numbers(16) GROUP BY (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, test_alias__fuzz_1)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23, 23, currentDatabase(), t), (number / 4) % 2) AS x3, toUInt8((number / materialize(toUInt256(8))) % 2) AS x4 FROM numbers(16) GROUP BY (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, test_alias__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 242 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(toUInt256(8))) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 243 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, t__fuzz_46 AND (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % materialize(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(toUInt256(8))) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, t__fuzz_46 AND (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % materialize(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(toUInt256(8))) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_46' in scope SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, t__fuzz_46 AND (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(number % materialize(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(toUInt256(8))) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 244 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(toUInt256(8))) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 AS or1, (x1 AND x2) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(toUInt256(8))) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(toUInt256(8))) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 245 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 246 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 247 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 248 out of 1000 SELECT x1 OR x2 OR x3 AS or1, or(x2) OR (x3 OR x4) AS or2, and(x1) AND (x3 AND x4) AS and2 FROM ( SELECT toUInt8(t__fuzz_22, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 AS or1, or(x2) OR (x3 OR x4) AS or2, and(x1) AND (x3 AND x4) AS and2 FROM (SELECT toUInt8(t__fuzz_22, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_22' in scope SELECT toUInt8(t__fuzz_22, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 249 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND and(x4) AS and2 FROM ( SELECT toUInt8(sum(if((b != toNullable(100)) AND toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toLowCardinality(23)) AND (c = 0), materialize(1), materialize(toLowCardinality(toNullable(toUInt256(0)))))), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND and(x4) AS and2 FROM (SELECT toUInt8(sum(if((b != toNullable(100)) AND toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toLowCardinality(23)) AND (c = 0), materialize(1), materialize(toLowCardinality(toNullable(toUInt256(0)))))), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(sum(if((b != toNullable(100)) AND toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toLowCardinality(23)) AND (c = 0), materialize(1), materialize(toLowCardinality(toNullable(toUInt256(0)))))), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 250 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 251 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 252 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR or(x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo((number / toLowCardinality(4)) % 2, number / toUInt256(toUInt128(8)), 2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR or(x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo((number / toLowCardinality(4)) % 2, number / toUInt256(toUInt128(8)), 2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo((number / toLowCardinality(4)) % 2, number / toUInt256(toUInt128(8)), 2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 253 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, test_alias__fuzz_33, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, test_alias__fuzz_33, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression identifier 'test_alias__fuzz_33' in scope SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, test_alias__fuzz_33, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 254 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 255 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND greaterOrEquals(a) AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND greaterOrEquals(a) AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 256 out of 1000 EXPLAIN QUERY TREE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 257 out of 1000 EXPLAIN PIPELINE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 258 out of 1000 EXPLAIN TABLE OVERRIDE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('x1'): x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, t. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 259 out of 1000 EXPLAIN AST SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 260 out of 1000 EXPLAIN AST SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 261 out of 1000 EXPLAIN AST SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 262 out of 1000 EXPLAIN AST SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 263 out of 1000 EXPLAIN PIPELINE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 264 out of 1000 EXPLAIN PIPELINE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 265 out of 1000 EXPLAIN PIPELINE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 266 out of 1000 EXPLAIN PIPELINE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 267 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('x1'): x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, t. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 268 out of 1000 EXPLAIN PIPELINE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 269 out of 1000 EXPLAIN SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 270 out of 1000 EXPLAIN PIPELINE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 271 out of 1000 EXPLAIN PIPELINE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 272 out of 1000 EXPLAIN SYNTAX SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 273 out of 1000 EXPLAIN SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 274 out of 1000 EXPLAIN QUERY TREE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 275 out of 1000 EXPLAIN QUERY TREE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 276 out of 1000 EXPLAIN QUERY TREE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 277 out of 1000 EXPLAIN QUERY TREE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 278 out of 1000 EXPLAIN QUERY TREE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 279 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(sum(if((b != 100) AND (c > 220), 1, toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), toNullable(23)), 23), toLowCardinality(0))) IGNORE NULLS, 1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) GROUP BY if((b != 100) AND (c = toLowCardinality((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0)), toLowCardinality(toNullable(1))), 8, multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(1)), toLowCardinality(toUInt128(1))), 0), materialize(x3, 4) Error on processing query 'SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(sum(if((b != 100) AND (c > 220), 1, toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), toNullable(23)), 23), toLowCardinality(0))) IGNORE NULLS, 1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16)) GROUP BY if((b != 100) AND (c = toLowCardinality((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0)), toLowCardinality(toNullable(1))), 8, multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(1)), toLowCardinality(toUInt128(1))), 0), materialize(x3, 4)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(sum(if((b != 100) AND (c > 220), 1, toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), toNullable(23)), 23), toLowCardinality(0))) IGNORE NULLS, 1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16)) GROUP BY if((b != 100) AND (c = toLowCardinality((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0)), toLowCardinality(toNullable(1))), 8, multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(1)), toLowCardinality(toUInt128(1))), 0), materialize(x3, 4). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 280 out of 1000 EXPLAIN AST SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 281 out of 1000 EXPLAIN ESTIMATE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 282 out of 1000 EXPLAIN SYNTAX SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 283 out of 1000 EXPLAIN SYNTAX SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 284 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 285 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((b != toLowCardinality(100)) AND (c > 220), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((b != toLowCardinality(100)) AND (c > 220), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((b != toLowCardinality(100)) AND (c > 220), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 286 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) GROUP BY materialize(materialize(toFixedString(toLowCardinality(' '), 1))), t__fuzz_24 ) Error on processing query 'SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) GROUP BY materialize(materialize(toFixedString(toLowCardinality(' '), 1))), t__fuzz_24)': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) GROUP BY materialize(materialize(toFixedString(toLowCardinality(' '), 1))), t__fuzz_24. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000087714ea 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 287 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 288 out of 1000 SELECT x1 OR x2 OR x3 AS or1, or(x1 OR x2) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 AS or1, or(x1 OR x2) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 289 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 290 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE nums__fuzz_7 Error on processing query 'SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE nums__fuzz_7': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_7' in scope SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE nums__fuzz_7. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 291 out of 1000 SELECT (c = 0) OR x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (c = 0) OR x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT (c = 0) OR x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 292 out of 1000 SELECT x1 OR x2 OR x3 AS or1, or(x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0), toLowCardinality(toNullable(2)))) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 AS or1, or(x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0), toLowCardinality(toNullable(2)))) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0), toLowCardinality(toNullable(2)))) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 293 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 294 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 295 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 296 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 297 out of 1000 EXPLAIN QUERY TREE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 298 out of 1000 EXPLAIN SYNTAX SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 299 out of 1000 EXPLAIN AST SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 300 out of 1000 EXPLAIN PIPELINE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 301 out of 1000 EXPLAIN TABLE OVERRIDE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('x1'): x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, t. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 302 out of 1000 EXPLAIN PIPELINE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 303 out of 1000 EXPLAIN PIPELINE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 304 out of 1000 EXPLAIN PIPELINE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 305 out of 1000 EXPLAIN PIPELINE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 306 out of 1000 EXPLAIN PIPELINE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 307 out of 1000 EXPLAIN ESTIMATE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 308 out of 1000 EXPLAIN ESTIMATE SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 309 out of 1000 EXPLAIN SYNTAX SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 310 out of 1000 EXPLAIN SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 311 out of 1000 EXPLAIN SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 312 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(0) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 313 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(0) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) WHERE (a >= 0) AND (b != 100) AND (c = 0) ) Error on processing query 'SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(0) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) WHERE (a >= 0) AND (b != 100) AND (c = 0))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) WHERE (a >= 0) AND (b != 100) AND (c = 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 314 out of 1000 SELECT x1 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 220)), 1, 0)), number / 8, 2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 220)), 1, 0)), number / 8, 2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 220)), 1, 0)), number / 8, 2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 315 out of 1000 SELECT x1 OR rtime OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(0) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR rtime OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(0) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT x1 OR rtime OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(0) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 316 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(0) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 317 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR toLowCardinality('2022-01-01') OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(0) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8(modulo(nums__fuzz_42, number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) GROUP BY sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS, xor(x1, x2), cluster(toLowCardinality(toFixedString('test_cluster_two_shards', 23)), currentDatabase(), test_alias) Error on processing query 'SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR toLowCardinality('2022-01-01') OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(0) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8(modulo(nums__fuzz_42, number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) GROUP BY sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS, xor(x1, x2), cluster(toLowCardinality(toFixedString('test_cluster_two_shards', 23)), currentDatabase(), test_alias)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_42' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8(modulo(nums__fuzz_42, number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 318 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(0) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 319 out of 1000 SELECT x1 OR x2 OR x3 AS or1, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(materialize(toNullable(0))) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 320 out of 1000 SELECT x1 OR x2 OR x3 AS or1, materialize(220) OR (x1 OR x2) OR (x3 OR x4) AS or2, day = toFixedString(toLowCardinality('2022-01-01'), 10), (x1 AND x2) AND (materialize(toNullable(0)) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT x1 OR x2 OR x3 AS or1, materialize(220) OR (x1 OR x2) OR (x3 OR x4) AS or2, day = toFixedString(toLowCardinality('2022-01-01'), 10), (x1 AND x2) AND (materialize(toNullable(0)) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'day' in scope SELECT x1 OR x2 OR x3 AS or1, materialize(220) OR (x1 OR x2) OR (x3 OR x4) AS or2, day = toFixedString(toLowCardinality('2022-01-01'), 10), (x1 AND x2) AND (materialize(toNullable(0)) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 321 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(materialize(toNullable(0))) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 322 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(materialize(toNullable(0))) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 323 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(materialize(toNullable(0))) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8(divide(if(notEquals(c = toNullable(t__fuzz_18, 0), b, 100) AND (c = toNullable(0)), materialize(1), 0), number, toNullable(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(materialize(toNullable(0))) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8(divide(if(notEquals(c = toNullable(t__fuzz_18, 0), b, 100) AND (c = toNullable(0)), materialize(1), 0), number, toNullable(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8(divide(if(notEquals(c = toNullable(t__fuzz_18, 0), b, 100) AND (c = toNullable(0)), materialize(1), 0), number, toNullable(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 324 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(materialize(0)) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % materialize(2)) AS x2, toUInt8(modulo(number / 4, test_alias__fuzz_9, 2)) AS x3, toUInt8(if(1 AND (c > 220), toUInt256(1), 0), (number / 8) % 2) AS x4 FROM numbers(16) ) PREWHERE (a >= materialize(0)) AND (b != 100) AND equals(c) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(materialize(0)) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % materialize(2)) AS x2, toUInt8(modulo(number / 4, test_alias__fuzz_9, 2)) AS x3, toUInt8(if(1 AND (c > 220), toUInt256(1), 0), (number / 8) % 2) AS x4 FROM numbers(16)) PREWHERE (a >= materialize(0)) AND (b != 100) AND equals(c)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % materialize(2)) AS x2, toUInt8(modulo(number / 4, test_alias__fuzz_9, 2)) AS x3, toUInt8(if(1 AND (c > 220), toUInt256(1), 0), (number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 325 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 326 out of 1000 EXPLAIN PIPELINE SELECT (x1 OR x2) OR or(x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE SELECT (x1 OR x2) OR or(x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT (x1 OR x2) OR or(x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 327 out of 1000 SELECT (a >= materialize(0)) OR (x1 OR x2) OR (x3 OR x4) AS or2, and(x1 AND x2) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(toUInt128(16)) ) Error on processing query 'SELECT (a >= materialize(0)) OR (x1 OR x2) OR (x3 OR x4) AS or2, and(x1 AND x2) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(toUInt128(16)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 328 out of 1000 SELECT (((number / 8) % toLowCardinality(2)) OR x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (((number / 8) % toLowCardinality(2)) OR x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT (((number / 8) % toLowCardinality(2)) OR x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 329 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 330 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(toUInt256(0))) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toNullable(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(toUInt256(0))) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toNullable(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Illegal type (Nullable(UInt256)) of 1 argument of function and: In scope SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(toUInt256(0))) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toNullable(2)) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0d0e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 331 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 332 out of 1000 SELECT or(x1) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT or(x1) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT or(x1) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 333 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) PREWHERE t__fuzz_24 ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) PREWHERE t__fuzz_24)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) PREWHERE t__fuzz_24. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 334 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toNullable(0) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, nums__fuzz_12, materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toNullable(0) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, nums__fuzz_12, materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_12' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, nums__fuzz_12, materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 335 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(cluster(toFixedString('test_cluster_two_shards', 23), 23, 23, currentDatabase(), t), (number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(cluster(toFixedString('test_cluster_two_shards', 23), 23, 23, currentDatabase(), t), (number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(cluster(toFixedString('test_cluster_two_shards', 23), 23, 23, currentDatabase(), t), (number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 336 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8(t__fuzz_26, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) GROUP BY toNullable(toLowCardinality(1)), toLowCardinality(23) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8(t__fuzz_26, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) GROUP BY toNullable(toLowCardinality(1)), toLowCardinality(23))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_26' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8(t__fuzz_26, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) GROUP BY toNullable(toLowCardinality(1)), toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 337 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(toNullable(0))) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 338 out of 1000 SELECT (x1 OR x2) OR or(x3) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(toNullable(0))) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, materialize(1), 2)) AS x4 FROM numbers(toUInt256(16)) ) Error on processing query 'SELECT (x1 OR x2) OR or(x3) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(toNullable(0))) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, materialize(1), 2)) AS x4 FROM numbers(toUInt256(16)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 339 out of 1000 SELECT (x1 OR x2) OR sum(if(greaterOrEquals(a, toNullable(toNullable(1)), 0) AND 1, 1, 0)) IGNORE NULLS OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(toNullable(0))) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % materialize(toNullable(2))) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR sum(if(greaterOrEquals(a, toNullable(toNullable(1)), 0) AND 1, 1, 0)) IGNORE NULLS OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(toNullable(0))) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % materialize(toNullable(2))) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT (x1 OR x2) OR sum(if(greaterOrEquals(a, toNullable(toNullable(1)), 0) AND 1, 1, 0)) IGNORE NULLS OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(toNullable(0))) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % materialize(toNullable(2))) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 340 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 341 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT (intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) * toUInt128(20)) * 1000, toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT (intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) * toUInt128(20)) * 1000, toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT (intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) * toUInt128(20)) * 1000, toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 342 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * materialize(100), 2)) % materialize(2)) AS x2, toUInt8(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * materialize(100), 2)) % materialize(2)) AS x2, toUInt8(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * materialize(100), 2)) % materialize(2)) AS x2, toUInt8(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 31. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 Fuzzing step 343 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 344 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), currentDatabase(), t), materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), currentDatabase(), t), materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), currentDatabase(), t), materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 345 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(2)) % 2, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(2)) % 2, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 346 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 347 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 348 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / materialize(8)) % 2) AS x4 FROM numbers(materialize(toNullable(16))) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / materialize(8)) % 2) AS x4 FROM numbers(materialize(toNullable(16))))': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize(_CAST(16, 'Nullable(UInt8)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 349 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(materialize(toLowCardinality(16))) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(materialize(toLowCardinality(16))))': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize(_CAST(16, 'LowCardinality(UInt8)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 350 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 351 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND sum(if((a >= toUInt128(0)) AND (c > 220), 1, 0)) IGNORE NULLS AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 352 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 353 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(toUInt256(8))) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 354 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toNullable(0) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 356 out of 1000 SELECT or(x1 OR x2) AS or2, (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT or(x1 OR x2) AS or2, (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT or(x1 OR x2) AS or2, (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 357 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(2) % 2) AS x2, toUInt8(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23), (number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(2) % 2) AS x2, toUInt8(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23), (number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(2) % 2) AS x2, toUInt8(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23), (number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 358 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toNullable(0) AND toLowCardinality(toUInt128(1000)) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toNullable(0) AND toLowCardinality(toUInt128(1000)) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Illegal type (UInt128) of 2 argument of function and: In scope SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toNullable(0) AND toLowCardinality(toUInt128(1000)) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0d0e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 359 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 360 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 361 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 362 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100, number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(toUInt256(8))) % toUInt128(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100, number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(toUInt256(8))) % toUInt128(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100, number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(toUInt256(8))) % toUInt128(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 363 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8(modulo(number / 4, toUInt128(1), toNullable(2))) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8(modulo(number / 4, toUInt128(1), toNullable(2))) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8(modulo(number / 4, toUInt128(1), toNullable(2))) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 364 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / toLowCardinality(8)) % toUInt128(toLowCardinality(2))) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / toLowCardinality(8)) % toUInt128(toLowCardinality(2))) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x3' in scope SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / toLowCardinality(8)) % toUInt128(toLowCardinality(2))) AS x4 FROM numbers(16)). Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 365 out of 1000 SELECT (if(greaterOrEquals(a) AND (b != materialize(100)) AND (c > 220), 1, materialize(0)) OR x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (if(greaterOrEquals(a) AND (b != materialize(100)) AND (c > 220), 1, materialize(0)) OR x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 366 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toNullable(materialize(2))) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) GROUP BY (sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * toLowCardinality(100), materialize(100) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toNullable(materialize(2))) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) GROUP BY (sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * toLowCardinality(100), materialize(100))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toNullable(materialize(2))) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) GROUP BY (sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * toLowCardinality(100), materialize(100). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 367 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(modulo(number, toNullable('test_cluster_two_shards'), 2)) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) GROUP BY multiIf(s IN ('a', 'b'), 1, toLowCardinality(0)), (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)), c > toUInt128(220), t__fuzz_43 Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(modulo(number, toNullable('test_cluster_two_shards'), 2)) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16)) GROUP BY multiIf(s IN ('a', 'b'), 1, toLowCardinality(0)), (intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)), c > toUInt128(220), t__fuzz_43': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(modulo(number, toNullable('test_cluster_two_shards'), 2)) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 368 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 369 out of 1000 SELECT sum(if(1, 0)) IGNORE NULLS, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT sum(if(1, 0)) IGNORE NULLS, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope SELECT sum(if(1, 0)) IGNORE NULLS, (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 370 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(16) WHERE round((sum(multiIf(materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * materialize(toUInt128(100))) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(16) WHERE round((sum(multiIf(materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * materialize(toUInt128(100))))': Received from localhost:9000. DB::Exception: Invalid number of arguments for function multiIf: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(16) WHERE round((sum(multiIf(materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * materialize(toUInt128(100))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::(anonymous namespace)::FunctionMultiIf::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001852617b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 371 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(16) ) PREWHERE (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100 Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(16)) PREWHERE (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(16)) PREWHERE (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 372 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, toFixedString('test_cluster_two_shards', toNullable(23)), 2) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, toFixedString('test_cluster_two_shards', toNullable(23)), 2) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, toFixedString('test_cluster_two_shards', toNullable(23)), 2) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 373 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, and(x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, and(x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 374 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 375 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (b != materialize(materialize(100))) AND (0 AND 1000 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8(modulo(divide(toUInt256(1000), number, toLowCardinality(8)))) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (b != materialize(materialize(100))) AND (0 AND 1000 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8(modulo(divide(toUInt256(1000), number, toLowCardinality(8)))) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8(modulo(divide(toUInt256(1000), number, toLowCardinality(8)))) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 377 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 378 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 379 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16) PREWHERE toLowCardinality(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toFixedString(' ', toUInt256(1))) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16) PREWHERE toLowCardinality(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toFixedString(' ', toUInt256(1))))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16) PREWHERE toLowCardinality(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toFixedString(' ', toUInt256(1))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 380 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, and(x1) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, sum(if((b != 100) AND (c > materialize(220)), 1, 0)) IGNORE NULLS, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) WHERE if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, and(x1) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, sum(if((b != 100) AND (c > materialize(220)), 1, 0)) IGNORE NULLS, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) WHERE if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, sum(if((b != 100) AND (c > materialize(220)), 1, 0)) IGNORE NULLS, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) WHERE if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 381 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8(modulo(toUInt128(2))) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8(modulo(toUInt128(2))) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8(modulo(toUInt128(2))) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 382 out of 1000 SELECT (x1 OR x2) OR ((x1 AND x2) AND (toLowCardinality(toNullable(toNullable(0))) AND 1000 AND x3 AND x4)) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(toLowCardinality(toNullable(toUInt256(8))))) % toUInt128(2)) AS x4 FROM numbers(16) WHERE t__fuzz_30 ) Error on processing query 'SELECT (x1 OR x2) OR ((x1 AND x2) AND (toLowCardinality(toNullable(toNullable(0))) AND 1000 AND x3 AND x4)) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(toLowCardinality(toNullable(toUInt256(8))))) % toUInt128(2)) AS x4 FROM numbers(16) WHERE t__fuzz_30)': Received from localhost:9000. DB::Exception: Unknown expression identifier 't__fuzz_30' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(toLowCardinality(toNullable(toUInt256(8))))) % toUInt128(2)) AS x4 FROM numbers(16) WHERE t__fuzz_30. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 7. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 383 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt128(2)) % materialize(2)) AS x2, toUInt8(divide(number) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt128(2)) % materialize(2)) AS x2, toUInt8(divide(number) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt128(2)) % materialize(2)) AS x2, toUInt8(divide(number) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 384 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(toNullable(toNullable(toNullable(1))), 2)) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(toNullable(toNullable(toNullable(1))), 2)) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(toNullable(toNullable(toNullable(1))), 2)) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 385 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toNullable(2))) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 386 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 387 out of 1000 SELECT (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 388 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 389 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toUInt256(0) AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(round(multiply(100)), number / materialize(2), 2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (toUInt256(0) AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(round(multiply(100)), number / materialize(2), 2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(round(multiply(100)), number / materialize(2), 2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 390 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 391 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 392 out of 1000 SELECT (x1 OR x2) OR or(x3) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(modulo(number, sum(if((a >= toLowCardinality(0)) AND (intDiv(toUInt32(rtime), toLowCardinality(20)) * materialize(1000)) AND (b != 100) AND (c > 220), 1, 0)) RESPECT NULLS, 2)) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR or(x3) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(modulo(number, sum(if((a >= toLowCardinality(0)) AND (intDiv(toUInt32(rtime), toLowCardinality(20)) * materialize(1000)) AND (b != 100) AND (c > 220), 1, 0)) RESPECT NULLS, 2)) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(modulo(number, sum(if((a >= toLowCardinality(0)) AND (intDiv(toUInt32(rtime), toLowCardinality(20)) * materialize(1000)) AND (b != 100) AND (c > 220), 1, 0)) RESPECT NULLS, 2)) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 393 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND ((a >= 0) AND (b != 100) AND nums__fuzz_37 AND toNullable(1) AND (c > 220)) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(t__fuzz_23, (number / materialize(2)) % materialize(2)) AS x2, toUInt8(toLowCardinality(materialize(materialize(toNullable(1)))), (number / 4) % 2) AS x3, toUInt8(b != toNullable(100), (number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND ((a >= 0) AND (b != 100) AND nums__fuzz_37 AND toNullable(1) AND (c > 220)) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(t__fuzz_23, (number / materialize(2)) % materialize(2)) AS x2, toUInt8(toLowCardinality(materialize(materialize(toNullable(1)))), (number / 4) % 2) AS x3, toUInt8(b != toNullable(100), (number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_23' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(t__fuzz_23, (number / materialize(2)) % materialize(2)) AS x2, toUInt8(toLowCardinality(materialize(materialize(toNullable(1)))), (number / 4) % 2) AS x3, toUInt8(b != toNullable(100), (number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 394 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(cluster(toFixedString(toFixedString(toFixedString(toFixedString((b != 100) AND (c > materialize(220)), 'test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23)), 23), currentDatabase(), t), 16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(cluster(toFixedString(toFixedString(toFixedString(toFixedString((b != 100) AND (c > materialize(220)), 'test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23)), 23), currentDatabase(), t), 16))': Received from localhost:9000. DB::Exception: Missing columns: 'c' 'b' while processing query: 'toFixedString(toFixedString(toFixedString(toFixedString((b != 100) AND (c > materialize(220)), 'test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23)), 23)', required columns: 'b' 'c' 'b' 'c'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825885 8. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:149: DB::evaluateConstantExpressionOrIdentifierAsLiteral(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825be3 9. ./build_docker/./src/TableFunctions/TableFunctionRemote.cpp:0: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000002fdd3b3f 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345d198 11. ./contrib/llvm-project/libcxx/include/vector:1596: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x0000000033458182 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 395 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(test_alias__fuzz_33, (number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(test_alias__fuzz_33, (number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_33' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(test_alias__fuzz_33, (number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 396 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(toUInt256(toNullable(23)), 16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM (SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(toUInt256(toNullable(23)), 16))': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf2e5b 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 397 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 398 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % materialize(2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 399 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2, (x1 AND x2) AND (0 AND 1000 AND x3 AND x4) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toNullable(4)) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 400 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toNullable(4)) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 401 out of 1000 SELECT (x1 OR x2) OR (x3 OR nums__fuzz_37 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(nums__fuzz_18, (number / 2) % 2) AS x2, toUInt8((number / toNullable(4)) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(2))) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR nums__fuzz_37 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(nums__fuzz_18, (number / 2) % 2) AS x2, toUInt8((number / toNullable(4)) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(2))) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_18' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(nums__fuzz_18, (number / 2) % 2) AS x2, toUInt8((number / toNullable(4)) % toNullable(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(2))) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 402 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toNullable(4)) % toNullable(toUInt256(2))) AS x3, toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 403 out of 1000 SELECT (x1 OR x2) OR cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', t__fuzz_42, toNullable(23)), toLowCardinality(23)), 23), currentDatabase(), t) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toNullable(4)) % toNullable(toUInt256(2))) AS x3, toUInt8((number / toLowCardinality(8)) % toLowCardinality(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', t__fuzz_42, toNullable(23)), toLowCardinality(23)), 23), currentDatabase(), t) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toNullable(4)) % toNullable(toUInt256(2))) AS x3, toUInt8((number / toLowCardinality(8)) % toLowCardinality(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_42' in scope SELECT (x1 OR x2) OR cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', t__fuzz_42, toNullable(23)), toLowCardinality(23)), 23), currentDatabase(), t) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toNullable(4)) % toNullable(toUInt256(2))) AS x3, toUInt8((number / toLowCardinality(8)) % toLowCardinality(2)) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 404 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toUInt256(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 405 out of 1000 SELECT (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), toNullable(1))), 0)) IGNORE NULLS / count() IGNORE NULLS) OR (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(greaterOrEquals(0) AND (b != 100) AND (c > 220), (number / 2) % 2) AS x2, toUInt8((number / 4) % toUInt256(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(2))) AS x4 FROM numbers(16) ) PREWHERE toUInt8((number / 8) % toUInt128(2)) Error on processing query 'SELECT (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), toNullable(1))), 0)) IGNORE NULLS / count() IGNORE NULLS) OR (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(greaterOrEquals(0) AND (b != 100) AND (c > 220), (number / 2) % 2) AS x2, toUInt8((number / 4) % toUInt256(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(2))) AS x4 FROM numbers(16)) PREWHERE toUInt8((number / 8) % toUInt128(2))': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(greaterOrEquals(0) AND (b != 100) AND (c > 220), (number / 2) % 2) AS x2, toUInt8((number / 4) % toUInt256(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(2))) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 406 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toUInt256(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(materialize(2)))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 407 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toUInt256(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(materialize(2)))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 408 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(toFixedString('test_cluster_two_shards', 23), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toUInt256(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(materialize(2)))) AS x4 FROM numbers(16) WHERE nums__fuzz_25 ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(toFixedString('test_cluster_two_shards', 23), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toUInt256(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(materialize(2)))) AS x4 FROM numbers(16) WHERE nums__fuzz_25)': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(toFixedString('test_cluster_two_shards', 23), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toUInt256(2)) AS x3, toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(materialize(2)))) AS x4 FROM numbers(16) WHERE nums__fuzz_25. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 409 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt128(4)) % toUInt256(2)) AS x3, toUInt8((number / 8) % toUInt128(materialize(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 410 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt128(4)) % toUInt256(2)) AS x3, toUInt8(sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0)), (number / 8) % toUInt128(materialize(2))) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt128(4)) % toUInt256(2)) AS x3, toUInt8(sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0)), (number / 8) % toUInt128(materialize(2))) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt128(4)) % toUInt256(2)) AS x3, toUInt8(sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0)), (number / 8) % toUInt128(materialize(2))) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 411 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt128(4)) % toUInt256(2)) AS x3, toUInt8(modulo(number / 8, (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)), toUInt128(materialize(toLowCardinality(2))))) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt128(4)) % toUInt256(2)) AS x3, toUInt8(modulo(number / 8, (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)), toUInt128(materialize(toLowCardinality(2))))) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'xor1' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt128(4)) % toUInt256(2)) AS x3, toUInt8(modulo(number / 8, (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)), toUInt128(materialize(toLowCardinality(2))))) AS x4 FROM numbers(16). Maybe you meant: ['or2']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 412 out of 1000 SELECT (x1 OR materialize(toUInt256(8)) OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(toUInt8(modulo(2)), (number / 2) % 2) AS x2, toUInt8((number / toUInt128(4)) % toUInt256(2)) AS x3, toUInt8((number / 8) % materialize(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR materialize(toUInt256(8)) OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(toUInt8(modulo(2)), (number / 2) % 2) AS x2, toUInt8((number / toUInt128(4)) % toUInt256(2)) AS x3, toUInt8((number / 8) % materialize(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(toUInt8(modulo(2)), (number / 2) % 2) AS x2, toUInt8((number / toUInt128(4)) % toUInt256(2)) AS x3, toUInt8((number / 8) % materialize(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 413 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt128(4)) % toUInt256(2)) AS x3, toUInt8(divide(toNullable(toFixedString(' ', 1, 1)), number, 8) % toUInt128(materialize(2))) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt128(4)) % toUInt256(2)) AS x3, toUInt8(divide(toNullable(toFixedString(' ', 1, 1)), number, 8) % toUInt128(materialize(2))) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt128(4)) % toUInt256(2)) AS x3, toUInt8(divide(toNullable(toFixedString(' ', 1, 1)), number, 8) % toUInt128(materialize(2))) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 414 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt256(2)) % 2) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / 8) % toUInt128(materialize(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 415 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(xor1 != xor2, modulo(number, day, 2)) AS x1, toUInt8((number / toUInt256(2)) % 2) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / 8) % materialize(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(xor1 != xor2, modulo(number, day, 2)) AS x1, toUInt8((number / toUInt256(2)) % 2) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / 8) % materialize(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'xor1' in scope SELECT toUInt8(xor1 != xor2, modulo(number, day, 2)) AS x1, toUInt8((number / toUInt256(2)) % 2) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / 8) % materialize(2)) AS x4 FROM numbers(16). Maybe you meant: ['or2']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 416 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt256(2)) % toLowCardinality(2)) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / toUInt256(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 417 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(number / 8, (number / toUInt256(2)) % toLowCardinality(2)) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(number / 8, (number / toUInt256(2)) % toLowCardinality(2)) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(number / 8, (number / toUInt256(2)) % toLowCardinality(2)) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 418 out of 1000 SELECT (x1 OR nums__fuzz_39 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt256(2)) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR nums__fuzz_39 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt256(2)) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % toUInt128(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_39' in scope SELECT (x1 OR nums__fuzz_39 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt256(2)) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % toUInt128(2)) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 419 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt256(2)) % toLowCardinality(2)) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / toUInt256(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 420 out of 1000 SELECT (x1 OR x2) OR or(x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt256(2)) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % toUInt128(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR or(x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt256(2)) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % toUInt128(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT (x1 OR x2) OR or(x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt256(2)) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % toUInt128(2)) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 421 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % toUInt128(2)) AS x4 FROM numbers(toUInt8(number % 2), 16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % toUInt128(2)) AS x4 FROM numbers(toUInt8(number % 2), 16))': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'toUInt8(number % 2)', required columns: 'number' 'number'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 8. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf2e5b 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 422 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt256(2)) % toLowCardinality(2)) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / toUInt256(8)) % toUInt128(materialize(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 423 out of 1000 SELECT (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) OR (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt256(2)) % toLowCardinality(2)) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / toUInt256(8)) % materialize(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) OR (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt256(2)) % toLowCardinality(2)) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / toUInt256(8)) % materialize(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) OR (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt256(2)) % toLowCardinality(2)) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / toUInt256(8)) % materialize(2)) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 424 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(if((b != 100) AND (c > materialize(220)), 1, 0), number % 2) AS x1, toUInt8((number / toUInt256(2)) % toLowCardinality(2)) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / toUInt256(toLowCardinality(8))) % materialize(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(if((b != 100) AND (c > materialize(220)), 1, 0), number % 2) AS x1, toUInt8((number / toUInt256(2)) % toLowCardinality(2)) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / toUInt256(toLowCardinality(8))) % materialize(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(if((b != 100) AND (c > materialize(220)), 1, 0), number % 2) AS x1, toUInt8((number / toUInt256(2)) % toLowCardinality(2)) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / toUInt256(toLowCardinality(8))) % materialize(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 425 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / toUInt256(8)) % toUInt128(materialize(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 426 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / toUInt256(materialize(toNullable(8)))) % toUInt128(materialize(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 427 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(materialize(2))) AS x4 FROM numbers(16) ) PREWHERE if((b != 100) AND (c = toNullable(0)), materialize(1), 0) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(materialize(2))) AS x4 FROM numbers(16)) PREWHERE if((b != 100) AND (c = toNullable(0)), materialize(1), 0)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(materialize(2))) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 428 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(materialize(toNullable(8)))) % toUInt128(materialize(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 429 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt128(2)) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(materialize(toNullable(8)))) % toUInt128(materialize(2))) AS x4 FROM numbers(toLowCardinality(16)) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt128(2)) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(materialize(toNullable(8)))) % toUInt128(materialize(2))) AS x4 FROM numbers(toLowCardinality(16)))': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt8) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 430 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(materialize(2))) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(materialize(2))) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(materialize(2))) AS x4 FROM numbers(16)). Maybe you meant: ['x2']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 431 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(materialize(toNullable(toNullable(8))))) % materialize(2)) AS x4 FROM numbers(16) PREWHERE toUInt8((number / toUInt128(4)) % toUInt256(2)) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(materialize(toNullable(toNullable(8))))) % materialize(2)) AS x4 FROM numbers(16) PREWHERE toUInt8((number / toUInt128(4)) % toUInt256(2)))': Received from localhost:9000. DB::Exception: Storage SystemNumbers (table _table_function.numbers) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:220: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000003360a15d 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000336096aa 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000336096aa 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000336096aa 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000336096aa 9. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000336096aa 10. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000336096aa 11. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x0000000033602c20 12. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 13. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 14. ./contrib/llvm-project/libcxx/include/__hash_table:1743: DB::(anonymous namespace)::buildQueryPlanForTableExpression(std::shared_ptr, DB::SelectQueryInfo const&, DB::SelectQueryOptions const&, std::shared_ptr&, bool, bool) @ 0x0000000034d74f61 15. ./build_docker/./src/Planner/PlannerJoinTree.cpp:1777: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x0000000034d67094 16. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0b8de 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 432 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(materialize(toNullable(8)))) % toUInt128(materialize(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 433 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(materialize(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 434 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % toUInt128(materialize(2))) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % toUInt128(materialize(2))) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % toUInt128(materialize(2))) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 435 out of 1000 EXPLAIN PIPELINE compact = true SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(2)) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 436 out of 1000 SELECT c > 220, (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(intDiv(74, toUInt32(rtime), 20) * materialize(toNullable(20)), (number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % toUInt128(materialize(2))) AS x4 FROM numbers(16) ) Error on processing query 'SELECT c > 220, (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(intDiv(74, toUInt32(rtime), 20) * materialize(toNullable(20)), (number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % toUInt128(materialize(2))) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(intDiv(74, toUInt32(rtime), 20) * materialize(toNullable(20)), (number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % toUInt128(materialize(2))) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 437 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(2)) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 438 out of 1000 SELECT or(x1) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toUInt128(2)) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT or(x1) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % toUInt128(2)) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT or(x1) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % toUInt128(2)) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 439 out of 1000 SELECT (x1 OR x2) OR (number / toNullable(8)) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR x2) OR (number / toNullable(8)) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT (x1 OR x2) OR (number / toNullable(8)) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(2)) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 440 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(materialize(toUInt256(2)))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 441 out of 1000 SELECT (x1 OR (c > toUInt256(220)) OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / toUInt256(8)) % toUInt128(materialize(toUInt256(2)))) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR (c > toUInt256(220)) OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / toUInt256(8)) % toUInt128(materialize(toUInt256(2)))) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT (x1 OR (c > toUInt256(220)) OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / toUInt256(8)) % toUInt128(materialize(toUInt256(2)))) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 442 out of 1000 SELECT (x1 OR nums__fuzz_45 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / toUInt256(toNullable(8))) % materialize(toUInt256(2))) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR nums__fuzz_45 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / toUInt256(toNullable(8))) % materialize(toUInt256(2))) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_45' in scope SELECT (x1 OR nums__fuzz_45 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / toUInt256(toNullable(8))) % materialize(toUInt256(2))) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 443 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(materialize(toUInt256(2)))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 444 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT sum(if(greaterOrEquals(sum(if(divide(count()) * 100, (b != materialize(materialize(toNullable(1))), 100) AND (c = 0), materialize(toUInt128(1)), materialize(0))), a, 0) AND splitByChar(toLowCardinality(' '), getOSKernelVersion()) AND 1, 1, 0)) IGNORE NULLS, or(x1 OR x2) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(toUInt128(2))) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % materialize(toUInt256(2))) AS x4 FROM numbers(16) ) PREWHERE toNullable(1) AND x1 AND x2 AND x3 AND x4 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT sum(if(greaterOrEquals(sum(if(divide(count()) * 100, (b != materialize(materialize(toNullable(1))), 100) AND (c = 0), materialize(toUInt128(1)), materialize(0))), a, 0) AND splitByChar(toLowCardinality(' '), getOSKernelVersion()) AND 1, 1, 0)) IGNORE NULLS, or(x1 OR x2) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(toUInt128(2))) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % materialize(toUInt256(2))) AS x4 FROM numbers(16)) PREWHERE toNullable(1) AND x1 AND x2 AND x3 AND x4': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 445 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(materialize(toUInt256(2)))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 446 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(nums__fuzz_47, (number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / toNullable(8)) % toUInt128(materialize(toUInt256(toLowCardinality(2))))) AS x4 FROM numbers(16) ) GROUP BY toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))), (number / toNullable(4)) % toNullable(toUInt256(2)) Error on processing query 'SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(nums__fuzz_47, (number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / toNullable(8)) % toUInt128(materialize(toUInt256(toLowCardinality(2))))) AS x4 FROM numbers(16)) GROUP BY toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))), (number / toNullable(4)) % toNullable(toUInt256(2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_47' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(nums__fuzz_47, (number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / toNullable(8)) % toUInt128(materialize(toUInt256(toLowCardinality(2))))) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 447 out of 1000 SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 448 out of 1000 SELECT (if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(sum(if((b != 100) AND (c = toNullable(0)), materialize(toUInt128(1)), 0)), 100)) AND (c = 0), 1, toUInt256(0)) OR x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / materialize(2)) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(sum(if((b != 100) AND (c = toNullable(0)), materialize(toUInt128(1)), 0)), 100)) AND (c = 0), 1, toUInt256(0)) OR x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / materialize(2)) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_32' in scope SELECT (if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(sum(if((b != 100) AND (c = toNullable(0)), materialize(toUInt128(1)), 0)), 100)) AND (c = 0), 1, toUInt256(0)) OR x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / materialize(2)) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 449 out of 1000 EXPLAIN PIPELINE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 450 out of 1000 SELECT or(x1 OR x2) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Error on processing query 'SELECT or(x1 OR x2) AS or2 FROM (SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT or(x1 OR x2) AS or2 FROM (SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 451 out of 1000 EXPLAIN PIPELINE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 452 out of 1000 EXPLAIN TABLE OVERRIDE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('OR'): OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2). Expected one of: token, OpeningRoundBracket, FILTER, RESPECT NULLS, IGNORE NULLS, OVER, table override declaration, COLUMNS, PARTITION BY, PRIMARY KEY, ORDER BY, SAMPLE BY, TTL, INTO OUTFILE, FORMAT, SETTINGS, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 453 out of 1000 EXPLAIN AST SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 454 out of 1000 EXPLAIN AST SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 455 out of 1000 EXPLAIN AST SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 456 out of 1000 EXPLAIN PIPELINE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 457 out of 1000 EXPLAIN PIPELINE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 458 out of 1000 EXPLAIN SYNTAX SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 459 out of 1000 EXPLAIN SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 460 out of 1000 EXPLAIN AST SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 461 out of 1000 EXPLAIN AST SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 462 out of 1000 EXPLAIN AST SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 463 out of 1000 EXPLAIN AST SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 464 out of 1000 EXPLAIN AST SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 465 out of 1000 EXPLAIN QUERY TREE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 466 out of 1000 EXPLAIN QUERY TREE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 467 out of 1000 EXPLAIN QUERY TREE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 468 out of 1000 EXPLAIN QUERY TREE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 469 out of 1000 EXPLAIN QUERY TREE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 470 out of 1000 SELECT or(x1 OR x2) AS or2 FROM ( SELECT toUInt8(sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)), number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8(divide(multiply(100), number, 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt256(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT or(x1 OR x2) AS or2 FROM (SELECT toUInt8(sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)), number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8(divide(multiply(100), number, 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt256(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)), number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8(divide(multiply(100), number, 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt256(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 471 out of 1000 EXPLAIN PIPELINE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 472 out of 1000 EXPLAIN PIPELINE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 473 out of 1000 EXPLAIN PIPELINE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 474 out of 1000 EXPLAIN PIPELINE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 475 out of 1000 EXPLAIN SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 476 out of 1000 EXPLAIN PIPELINE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 477 out of 1000 EXPLAIN SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 478 out of 1000 EXPLAIN SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 479 out of 1000 EXPLAIN AST SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 480 out of 1000 EXPLAIN AST SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 481 out of 1000 EXPLAIN AST SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 482 out of 1000 EXPLAIN AST SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 483 out of 1000 EXPLAIN SYNTAX SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 484 out of 1000 EXPLAIN ESTIMATE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 SELECT (x1 OR toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toNullable(23)), 23) OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt256(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT (x1 OR toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toNullable(23)), 23) OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt256(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT (x1 OR toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toNullable(23)), 23) OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt256(2)) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 486 out of 1000 EXPLAIN ESTIMATE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 487 out of 1000 EXPLAIN ESTIMATE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 488 out of 1000 EXPLAIN ESTIMATE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 489 out of 1000 EXPLAIN ESTIMATE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 490 out of 1000 EXPLAIN ESTIMATE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 491 out of 1000 EXPLAIN ESTIMATE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 492 out of 1000 EXPLAIN ESTIMATE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 493 out of 1000 EXPLAIN ESTIMATE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 494 out of 1000 EXPLAIN ESTIMATE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 495 out of 1000 EXPLAIN SYNTAX SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 496 out of 1000 EXPLAIN SYNTAX SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 497 out of 1000 EXPLAIN QUERY TREE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 498 out of 1000 EXPLAIN QUERY TREE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 499 out of 1000 EXPLAIN QUERY TREE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 500 out of 1000 EXPLAIN QUERY TREE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 501 out of 1000 EXPLAIN QUERY TREE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 502 out of 1000 EXPLAIN QUERY TREE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 503 out of 1000 EXPLAIN QUERY TREE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 504 out of 1000 EXPLAIN QUERY TREE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 505 out of 1000 EXPLAIN QUERY TREE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 506 out of 1000 EXPLAIN QUERY TREE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 507 out of 1000 EXPLAIN QUERY TREE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 508 out of 1000 EXPLAIN ESTIMATE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 509 out of 1000 EXPLAIN ESTIMATE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 510 out of 1000 EXPLAIN AST SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 511 out of 1000 EXPLAIN AST SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 512 out of 1000 EXPLAIN ESTIMATE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 513 out of 1000 EXPLAIN ESTIMATE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 514 out of 1000 EXPLAIN ESTIMATE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 515 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('('): (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((numbe. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 516 out of 1000 EXPLAIN ESTIMATE SELECT (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 517 out of 1000 SELECT toLowCardinality(materialize(materialize(1))), (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt256(2)) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 518 out of 1000 SELECT toLowCardinality(materialize(materialize(toLowCardinality(1)))), (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(toNullable(8))) % toUInt256(2)) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 519 out of 1000 SELECT toLowCardinality(materialize(materialize(toLowCardinality(1)))), (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % toUInt256(2)) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 520 out of 1000 SELECT toLowCardinality(materialize(materialize(number / 8, toLowCardinality(1)))), (x1 OR x2) OR (x3 OR ((and1 != and2) OR (or1 != or2)) OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % toUInt256(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT toLowCardinality(materialize(materialize(number / 8, toLowCardinality(1)))), (x1 OR x2) OR (x3 OR ((and1 != and2) OR (or1 != or2)) OR x4) AS or2 FROM (SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % toUInt256(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT toLowCardinality(materialize(materialize(number / 8, toLowCardinality(1)))), (x1 OR x2) OR (x3 OR ((and1 != and2) OR (or1 != or2)) OR x4) AS or2 FROM (SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % toUInt256(2)) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 521 out of 1000 SELECT toLowCardinality(materialize(materialize(toLowCardinality(1)))), (x1 OR x2) OR (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), toNullable(0))) OR x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8(divide(number, toLowCardinality(0), 8), (number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % toUInt256(2)) AS x4 FROM numbers(materialize(toNullable(16))) ) Error on processing query 'SELECT toLowCardinality(materialize(materialize(toLowCardinality(1)))), (x1 OR x2) OR (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), toNullable(0))) OR x3 OR x4) AS or2 FROM (SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8(divide(number, toLowCardinality(0), 8), (number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % toUInt256(2)) AS x4 FROM numbers(materialize(toNullable(16))))': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize(_CAST(16, 'Nullable(UInt8)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 522 out of 1000 SELECT toLowCardinality(materialize(materialize(toLowCardinality(1)))), (x1 OR x2) OR or(x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % toUInt256(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT toLowCardinality(materialize(materialize(toLowCardinality(1)))), (x1 OR x2) OR or(x4) AS or2 FROM (SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % toUInt256(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT toLowCardinality(materialize(materialize(toLowCardinality(1)))), (x1 OR x2) OR or(x4) AS or2 FROM (SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % toUInt256(2)) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 523 out of 1000 SELECT toLowCardinality(materialize(toLowCardinality(1))), (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 SELECT toLowCardinality(materialize(1)), (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number, (a >= toNullable(0)) AND 1 AND (c > 220), toNullable(8)) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT toLowCardinality(materialize(1)), (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number, (a >= toNullable(0)) AND 1 AND (c > 220), toNullable(8)) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number, (a >= toNullable(0)) AND 1 AND (c > 220), toNullable(8)) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 525 out of 1000 SELECT toLowCardinality(materialize(1)), (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4 FROM numbers(16) PREWHERE version_pair[toLowCardinality(1)] ) Error on processing query 'SELECT toLowCardinality(materialize(1)), (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4 FROM numbers(16) PREWHERE version_pair[toLowCardinality(1)])': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4 FROM numbers(16) PREWHERE version_pair[toLowCardinality(1)]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 526 out of 1000 SELECT toLowCardinality(materialize(1)), (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT toLowCardinality(materialize(1)), (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 527 out of 1000 SELECT toLowCardinality(materialize(toLowCardinality(1))), (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(t__fuzz_29, 8)) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT toLowCardinality(materialize(toLowCardinality(1))), (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(t__fuzz_29, 8)) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_29' in scope SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(t__fuzz_29, 8)) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 528 out of 1000 SELECT toLowCardinality(materialize(toLowCardinality(1))), (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 529 out of 1000 SELECT toLowCardinality(materialize(1)), (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 530 out of 1000 SELECT toLowCardinality(1), (x1 OR x2) OR (x3 OR x4) AS or2 FROM ( SELECT toUInt8(number % toNullable((number / 4) % 2, toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT toLowCardinality(1), (x1 OR x2) OR (x3 OR x4) AS or2 FROM (SELECT toUInt8(number % toNullable((number / 4) % 2, toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % toNullable((number / 4) % 2, toUInt128(2))) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 531 out of 1000 SELECT materialize(1) FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt256(toNullable(8)), toUInt8((number / toNullable(8)) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 532 out of 1000 SELECT materialize(1) FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / toNullable(2)) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt256(toNullable(8)), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 533 out of 1000 SELECT materialize(1) FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / toNullable(2)) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt256(toNullable(8)), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 534 out of 1000 SELECT materialize(1) FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / toNullable(2)) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt256(toNullable(8)), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 535 out of 1000 SELECT materialize(1) FROM ( SELECT toUInt8(number % toNullable(toUInt8((number / 8) % toUInt128(2)), 2)) AS x1, toUInt8((number / toNullable(2)) % toLowCardinality(2)) AS x2, toUInt8(divide(number, round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100), 4) % 2) AS x3, toNullable(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT materialize(1) FROM (SELECT toUInt8(number % toNullable(toUInt8((number / 8) % toUInt128(2)), 2)) AS x1, toUInt8((number / toNullable(2)) % toLowCardinality(2)) AS x2, toUInt8(divide(number, round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100), 4) % 2) AS x3, toNullable(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % toNullable(toUInt8((number / 8) % toUInt128(2)), 2)) AS x1, toUInt8((number / toNullable(2)) % toLowCardinality(2)) AS x2, toUInt8(divide(number, round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100), 4) % 2) AS x3, toNullable(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 536 out of 1000 SELECT materialize(1) FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt256(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 537 out of 1000 SELECT materialize(1) FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, (number / materialize(4)) % toLowCardinality(2), toUInt256(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT materialize(1) FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, (number / materialize(4)) % toLowCardinality(2), toUInt256(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, (number / materialize(4)) % toLowCardinality(2), toUInt256(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 538 out of 1000 SELECT materialize(1) FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt256(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT materialize(1) FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt256(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt256(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 539 out of 1000 SELECT materialize(1) FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 540 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(toLowCardinality(8)), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 541 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(toLowCardinality(8)), toUInt8((number / 8) % 2) AS x4 FROM numbers(c = 0, 16) GROUP BY multiIf(s IN ('a', 'b'), toUInt128(1), 0), toUInt8(modulo(sum(if(greaterOrEquals(a, toNullable(toNullable(1)), 0) AND 1, 1, 0)) RESPECT NULLS, number, toNullable(2))), count(toLowCardinality(1)) IGNORE NULLS ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(toLowCardinality(8)), toUInt8((number / 8) % 2) AS x4 FROM numbers(c = 0, 16) GROUP BY multiIf(s IN ('a', 'b'), toUInt128(1), 0), toUInt8(modulo(sum(if(greaterOrEquals(a, toNullable(toNullable(1)), 0) AND 1, 1, 0)) RESPECT NULLS, number, toNullable(2))), count(toLowCardinality(1)) IGNORE NULLS)': Received from localhost:9000. DB::Exception: Missing columns: 'c' while processing query: 'c = 0', required columns: 'c' 'c'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 8. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf2e5b 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 542 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8(divide(number, sum(if((b != 100) AND (c = 0), 1, 0)), 8) % 2) AS x4 FROM numbers(16) GROUP BY toUInt256(0), toFixedString(toLowCardinality('2022-01-01'), 10) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8(divide(number, sum(if((b != 100) AND (c = 0), 1, 0)), 8) % 2) AS x4 FROM numbers(16) GROUP BY toUInt256(0), toFixedString(toLowCardinality('2022-01-01'), 10))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8(divide(number, sum(if((b != 100) AND (c = 0), 1, 0)), 8) % 2) AS x4 FROM numbers(16) GROUP BY toUInt256(0), toFixedString(toLowCardinality('2022-01-01'), 10). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 543 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 544 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 545 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 546 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 547 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 548 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 549 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 550 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 551 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 552 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 553 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 555 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 556 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 557 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 558 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 559 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 560 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 561 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 562 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 563 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 564 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 565 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 566 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 567 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 568 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(toLowCardinality(10), modulo(number / 4)) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(toLowCardinality(10), modulo(number / 4)) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(toLowCardinality(10), modulo(number / 4)) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 569 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 570 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 571 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 572 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 573 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 574 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 575 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 576 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 577 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 578 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 579 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 580 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 581 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('1'): 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 582 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('1'): 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 583 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 584 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 585 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 586 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 587 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 588 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 589 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('1'): 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 590 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 591 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 592 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 593 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 594 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 595 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 596 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 597 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 598 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 599 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 600 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('1'): 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 601 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 602 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 603 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 604 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 605 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 606 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 607 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 608 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 609 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 610 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 611 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 612 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 613 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('1'): 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 614 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 615 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8(divide(number, sum(multiIf(s IN ('a', 'b'), toLowCardinality(toUInt128(1)), toNullable(0))) IGNORE NULLS / count(), toUInt128(4)) % toUInt256(2), (number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8(divide(number, sum(multiIf(s IN ('a', 'b'), toLowCardinality(toUInt128(1)), toNullable(0))) IGNORE NULLS / count(), toUInt128(4)) % toUInt256(2), (number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8(divide(number, sum(multiIf(s IN ('a', 'b'), toLowCardinality(toUInt128(1)), toNullable(0))) IGNORE NULLS / count(), toUInt128(4)) % toUInt256(2), (number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 30. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 Fuzzing step 616 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('1'): 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 617 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 618 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 619 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 620 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 621 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('1'): 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 622 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 623 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 624 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 625 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 626 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 627 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 628 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 629 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 630 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('1'): 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 631 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 632 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 633 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 634 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 635 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('1'): 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 636 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 637 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 638 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 639 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 640 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 641 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 642 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 643 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 644 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 645 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 646 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 647 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 648 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 649 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 650 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 651 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 652 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 653 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 654 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 655 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 656 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 657 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 658 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 659 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 660 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 661 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 663 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 664 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('1'): 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 665 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 666 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 667 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 668 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 669 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 670 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, if((a >= 0) AND materialize(1), 1, 0), 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, if((a >= 0) AND materialize(1), 1, 0), 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, if((a >= 0) AND materialize(1), 1, 0), 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 671 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 672 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 673 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 674 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 675 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(toUInt8((number / toUInt256(toNullable(8))) % toUInt256(2)), number / 2, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) GROUP BY test_alias, if((b != 100) AND (c = 0), 1, 0) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(toUInt8((number / toUInt256(toNullable(8))) % toUInt256(2)), number / 2, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) GROUP BY test_alias, if((b != 100) AND (c = 0), 1, 0))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(toUInt8((number / toUInt256(toNullable(8))) % toUInt256(2)), number / 2, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) GROUP BY test_alias, if((b != 100) AND (c = 0), 1, 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 676 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 677 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 678 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 679 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt256(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(materialize(16)) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt256(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(materialize(16)))': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 680 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 681 out of 1000 EXPLAIN PIPELINE header = true SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE header = true SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 682 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 683 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 684 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) PREWHERE sum(multiIf(s IN ('a', 'b'), 1, materialize(0))) IGNORE NULLS / count(1) IGNORE NULLS ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) PREWHERE sum(multiIf(s IN ('a', 'b'), 1, materialize(0))) IGNORE NULLS / count(1) IGNORE NULLS)': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) PREWHERE sum(multiIf(s IN ('a', 'b'), 1, materialize(0))) IGNORE NULLS / count(1) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 685 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 686 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, 8, toUInt8(materialize(materialize(toFixedString(' ', 1))), (number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, 8, toUInt8(materialize(materialize(toFixedString(' ', 1))), (number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, 8, toUInt8(materialize(materialize(toFixedString(' ', 1))), (number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 687 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 688 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, count() IGNORE NULLS, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, count() IGNORE NULLS, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Column number is not under aggregate function and not in GROUP BY keys. In query SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, count() IGNORE NULLS, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 9. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 10. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033593a48 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 689 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(toNullable(4))) % 2) AS x3, sum(if((b != 100) AND (c = 0), c > materialize(220), toNullable(1), 0)), 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(toNullable(4))) % 2) AS x3, sum(if((b != 100) AND (c = 0), c > materialize(220), toNullable(1), 0)), 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(toNullable(4))) % 2) AS x3, sum(if((b != 100) AND (c = 0), c > materialize(220), toNullable(1), 0)), 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 690 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, c = 0, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) PREWHERE t__fuzz_26 Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, c = 0, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) PREWHERE t__fuzz_26': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, c = 0, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 691 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 692 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 693 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 694 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 695 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 696 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) WHERE toUInt128(4) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) WHERE toUInt128(4))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x0000000034e16cd8 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000034e00ca0 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0eea9 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 9. ./contrib/llvm-project/libcxx/include/__hash_table:1743: DB::(anonymous namespace)::buildQueryPlanForTableExpression(std::shared_ptr, DB::SelectQueryInfo const&, DB::SelectQueryOptions const&, std::shared_ptr&, bool, bool) @ 0x0000000034d74f61 10. ./build_docker/./src/Planner/PlannerJoinTree.cpp:1777: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x0000000034d67094 11. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0b8de 12. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 13. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 697 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt256(2)) AS x2, toUInt8((number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 698 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt256(2)) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 699 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(materialize(2), (number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(materialize(2), (number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(materialize(2), (number / 4) % 2) AS x3, 8, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 700 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % toUInt256(2)) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 701 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(materialize(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 702 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8(divide((a >= 0) AND (b != toNullable(toUInt256(100))) AND equals(0), number, 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8(divide((a >= 0) AND (b != toNullable(toUInt256(100))) AND equals(0), number, 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8(divide((a >= 0) AND (b != toNullable(toUInt256(100))) AND equals(0), number, 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 703 out of 1000 SELECT toNullable(1) FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(sum(multiIf(s IN toNullable(('a', 'b')), materialize(1), toLowCardinality(0))) IGNORE NULLS / count(), number / toNullable(materialize(2)), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT toNullable(1) FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(sum(multiIf(s IN toNullable(('a', 'b')), materialize(1), toLowCardinality(0))) IGNORE NULLS / count(), number / toNullable(materialize(2)), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(sum(multiIf(s IN toNullable(('a', 'b')), materialize(1), toLowCardinality(0))) IGNORE NULLS / count(), number / toNullable(materialize(2)), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 704 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(materialize(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE toNullable(0) AND toLowCardinality(1000) AND x3 AND x4 Query succeeded, using this AST as a start Fuzzing step 705 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(materialize(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE toNullable(0) AND toLowCardinality(1000) AND x3 AND x4 GROUP BY t__fuzz_29 Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(materialize(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE toNullable(0) AND toLowCardinality(1000) AND x3 AND x4 GROUP BY t__fuzz_29': Received from localhost:9000. DB::Exception: Unknown expression identifier 't__fuzz_29' in scope SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(materialize(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE toNullable(0) AND toLowCardinality(1000) AND x3 AND x4 GROUP BY t__fuzz_29. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 706 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE toNullable(0) AND 1000 AND x3 AND x4 Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE toNullable(0) AND 1000 AND x3 AND x4': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x3' in scope SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE toNullable(0) AND 1000 AND x3 AND x4. Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 707 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) PREWHERE cluster(toFixedString(toFixedString(toFixedString(materialize(toNullable('test_cluster_two_shards')), toUInt256(23)), 23), toLowCardinality(23)), currentDatabase(), t) ) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4 Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) PREWHERE cluster(toFixedString(toFixedString(toFixedString(materialize(toNullable('test_cluster_two_shards')), toUInt256(23)), 23), toLowCardinality(23)), currentDatabase(), t)) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) PREWHERE cluster(toFixedString(toFixedString(toFixedString(materialize(toNullable('test_cluster_two_shards')), toUInt256(23)), 23), toLowCardinality(23)), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 708 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(materialize(toLowCardinality(0)), (number / materialize(2)) % 2) AS x2, toUInt8(modulo(number / 4, multiply(intDiv(toUInt32(rtime), 20)) * 1000, 2)) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE toNullable(0) AND toLowCardinality(1000) AND x3 AND x4 Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(materialize(toLowCardinality(0)), (number / materialize(2)) % 2) AS x2, toUInt8(modulo(number / 4, multiply(intDiv(toUInt32(rtime), 20)) * 1000, 2)) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE toNullable(0) AND toLowCardinality(1000) AND x3 AND x4': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(materialize(toLowCardinality(0)), (number / materialize(2)) % 2) AS x2, toUInt8(modulo(number / 4, multiply(intDiv(toUInt32(rtime), 20)) * 1000, 2)) AS x3, materialize(8), toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 709 out of 1000 SELECT materialize(toLowCardinality(1)) FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(materialize(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4 Query succeeded, using this AST as a start Fuzzing step 710 out of 1000 SELECT toLowCardinality(1) FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(materialize(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4 Query succeeded, using this AST as a start Fuzzing step 711 out of 1000 SELECT toLowCardinality(1) FROM ( SELECT nums__fuzz_29, toUInt8(number % 2) AS x1, toUInt8((number / toNullable(materialize(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4 Error on processing query 'SELECT toLowCardinality(1) FROM (SELECT nums__fuzz_29, toUInt8(number % 2) AS x1, toUInt8((number / toNullable(materialize(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_29' in scope SELECT nums__fuzz_29, toUInt8(number % 2) AS x1, toUInt8((number / toNullable(materialize(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 712 out of 1000 SELECT toLowCardinality(1) FROM ( SELECT toUInt8(c > 220, number % 2) AS x1, toUInt8((number / toNullable(materialize(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4 Error on processing query 'SELECT toLowCardinality(1) FROM (SELECT toUInt8(c > 220, number % 2) AS x1, toUInt8((number / toNullable(materialize(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT toUInt8(c > 220, number % 2) AS x1, toUInt8((number / toNullable(materialize(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 713 out of 1000 SELECT toLowCardinality(1) FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4 Query succeeded, using this AST as a start Fuzzing step 714 out of 1000 SELECT toLowCardinality(0, 1) FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt256(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT toLowCardinality(0, 1) FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt256(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt256(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 715 out of 1000 SELECT toLowCardinality(if((a >= toLowCardinality(0)) AND 1, 1, 0), 1) FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4 Error on processing query 'SELECT toLowCardinality(if((a >= toLowCardinality(0)) AND 1, 1, 0), 1) FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toLowCardinality(if((a >= toLowCardinality(0)) AND 1, 1, 0), 1) FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 716 out of 1000 SELECT toLowCardinality(1) FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4 Got boring AST Fuzzing step 717 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8(divide(number, intDiv(74, toUInt32(rtime), 20) * toNullable(20), 4) % 2) AS x3, toUInt8((number / materialize(toUInt256(8))) % 2) AS x4 FROM numbers(16) ) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4 Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8(divide(number, intDiv(74, toUInt32(rtime), 20) * toNullable(20), 4) % 2) AS x3, toUInt8((number / materialize(toUInt256(8))) % 2) AS x4 FROM numbers(16)) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8(divide(number, intDiv(74, toUInt32(rtime), 20) * toNullable(20), 4) % 2) AS x3, toUInt8((number / materialize(toUInt256(8))) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 718 out of 1000 SELECT toLowCardinality(1) FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers((number / materialize(4)) % toLowCardinality(2), 16) ) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4 Error on processing query 'SELECT toLowCardinality(1) FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers((number / materialize(4)) % toLowCardinality(2), 16)) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: '(number / materialize(4)) % toLowCardinality(2)', required columns: 'number' 'number'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 8. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf2e5b 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 719 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4 Query succeeded, using this AST as a start Fuzzing step 720 out of 1000 SELECT 1 FROM ( SELECT toUInt8(modulo(toLowCardinality(toUInt128(2)), number, 2)) AS x1, toUInt8((number / materialize(materialize(toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(toUInt128(16)) ) WHERE 0 AND 1000 AND x3 AND x4 Error on processing query 'SELECT 1 FROM (SELECT toUInt8(modulo(toLowCardinality(toUInt128(2)), number, 2)) AS x1, toUInt8((number / materialize(materialize(toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(toUInt128(16))) WHERE 0 AND 1000 AND x3 AND x4': Received from localhost:9000. DB::Exception: Illegal type UInt128 expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 721 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt128(toLowCardinality(toLowCardinality(1)), 2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) GROUP BY toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23), (number / 4) % toNullable(2) ) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4 Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt128(toLowCardinality(toLowCardinality(1)), 2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) GROUP BY toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23), (number / 4) % toNullable(2)) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt128'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt128(toLowCardinality(toLowCardinality(1)), 2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) GROUP BY toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23), (number / 4) % toNullable(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000890dd2e 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000088e5f75 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 30. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d Fuzzing step 722 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / materialize(materialize(toUInt128(2))))) AS x2, toUInt8(divide(number, if((a >= 0) AND (b != toNullable(100)), 1, 0), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4 Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / materialize(materialize(toUInt128(2))))) AS x2, toUInt8(divide(number, if((a >= 0) AND (b != toNullable(100)), 1, 0), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE 0 AND toLowCardinality(1000) AND x3 AND x4': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / materialize(materialize(toUInt128(2))))) AS x2, toUInt8(divide(number, if((a >= 0) AND (b != toNullable(100)), 1, 0), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 723 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 724 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt128(2))) % 2) AS x2, toUInt8((number / materialize(toNullable(4))) % 2) AS x3, toUInt8(modulo(number / materialize(toUInt256(8)))) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt128(2))) % 2) AS x2, toUInt8((number / materialize(toNullable(4))) % 2) AS x3, toUInt8(modulo(number / materialize(toUInt256(8)))) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt128(2))) % 2) AS x2, toUInt8((number / materialize(toNullable(4))) % 2) AS x3, toUInt8(modulo(number / materialize(toUInt256(8)))) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 725 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 726 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(modulo(toNullable(materialize(toNullable(toUInt256(1)))), number, 2)) AS x1, toUInt8(divide(materialize(materialize(toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM (SELECT toUInt8(modulo(toNullable(materialize(toNullable(toUInt256(1)))), number, 2)) AS x1, toUInt8(divide(materialize(materialize(toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(modulo(toNullable(materialize(toNullable(toUInt256(1)))), number, 2)) AS x1, toUInt8(divide(materialize(materialize(toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 25. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 26. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 727 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(cluster(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), toNullable(23), 23), 23, currentDatabase(), t), 2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(cluster(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), toNullable(23), 23), 23, currentDatabase(), t), 2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(cluster(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), toNullable(23), 23), 23, currentDatabase(), t), 2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 30. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d Fuzzing step 728 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 729 out of 1000 SELECT 1 FROM ( SELECT toUInt8((number / 8) % toUInt128(materialize(2)), number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt128(materialize(2))))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8((number / 8) % toUInt128(materialize(2)), number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt128(materialize(2))))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8((number / 8) % toUInt128(materialize(2)), number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt128(materialize(2))))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 730 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 731 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Query succeeded, using this AST as a start Fuzzing step 732 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 733 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 734 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 735 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 736 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 737 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 738 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 739 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 740 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 741 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 742 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 743 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 744 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 745 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 746 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: While processing toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4: While processing SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 23. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 24. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 26. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 28. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 30. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 Fuzzing step 747 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 748 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 749 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 750 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 31. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 Fuzzing step 751 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 752 out of 1000 SELECT toNullable(1) FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / 8) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % 2) AS x4 FROM numbers(materialize(16)) ) Error on processing query 'SELECT toNullable(1) FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / 8) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % 2) AS x4 FROM numbers(materialize(16)))': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 753 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 754 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: While processing toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4: While processing SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 23. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 24. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 26. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 28. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 30. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 Fuzzing step 755 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: While processing toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4: While processing SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 23. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 24. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 26. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 28. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 30. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 Fuzzing step 756 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 757 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 758 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 759 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 760 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 761 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 762 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 763 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 764 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 765 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 766 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) WHERE number % 2 Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)) WHERE number % 2': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 767 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 768 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 769 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 770 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 771 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 31. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 Fuzzing step 772 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 773 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 774 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 775 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 776 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 777 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 778 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 779 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 780 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 781 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 782 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 783 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: While processing toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4: While processing SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 23. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 24. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 26. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 28. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 30. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 Fuzzing step 784 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 785 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 786 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 787 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 31. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 Fuzzing step 788 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 789 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 790 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 791 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 792 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 793 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 794 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: While processing toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4: While processing SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 23. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 24. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 26. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 28. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 30. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 Fuzzing step 795 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 31. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 Fuzzing step 796 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 797 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 798 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 799 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 800 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 801 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 802 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 803 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 804 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 805 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 806 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 807 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 808 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 809 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: While processing toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4: While processing SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 23. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 24. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 26. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 28. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 30. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 Fuzzing step 810 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 811 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 812 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 813 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 814 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 815 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 816 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 817 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 31. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 Fuzzing step 818 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 819 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 820 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 821 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2))) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2))) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2))) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 822 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 823 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 824 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: While processing toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4: While processing SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 23. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 24. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 26. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 28. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 30. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 Fuzzing step 825 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: While processing toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4: While processing SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 23. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 24. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 26. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 28. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 30. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 Fuzzing step 826 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 827 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 828 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 829 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 830 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 831 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 832 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 833 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 834 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(sum(if((b != 100) AND (c > 220), materialize(1), toLowCardinality(0))) IGNORE NULLS, number / materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(sum(if((b != 100) AND (c > 220), materialize(1), toLowCardinality(0))) IGNORE NULLS, number / materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(sum(if((b != 100) AND (c > 220), materialize(1), toLowCardinality(0))) IGNORE NULLS, number / materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 835 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 836 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) PREWHERE number / materialize(toUInt128(2)) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) PREWHERE number / materialize(toUInt128(2)))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) PREWHERE number / materialize(toUInt128(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 837 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 838 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 839 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 840 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 841 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 842 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 843 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 844 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 845 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 846 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 847 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 31. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 Fuzzing step 848 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 849 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 850 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 851 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 852 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 853 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 854 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 855 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 856 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 857 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 858 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 859 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 860 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 861 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 862 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 863 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 864 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 865 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 866 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 867 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: While processing toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4: While processing SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 23. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 24. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 26. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 28. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 30. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 Fuzzing step 868 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 869 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 870 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: While processing toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4: While processing SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 23. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 24. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 26. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 28. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 30. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 Fuzzing step 871 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 872 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 873 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 874 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 875 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 876 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 877 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 878 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 879 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 880 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: While processing toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4: While processing SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 23. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 24. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 26. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 28. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 30. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 Fuzzing step 881 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 882 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 883 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 884 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 885 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 886 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 887 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: While processing toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4: While processing SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 23. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 24. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 26. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 28. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 30. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 Fuzzing step 888 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 889 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 890 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 891 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 892 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 893 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 894 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 895 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 896 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 897 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 898 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 899 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 900 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 901 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 902 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 903 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 904 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 905 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: While processing toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4: While processing SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 23. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 24. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 26. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 28. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 30. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 Fuzzing step 906 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 907 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: While processing toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4: While processing SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 23. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 24. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 26. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 28. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 30. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 Fuzzing step 908 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 909 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: While processing toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4: While processing SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 23. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 24. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 26. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 28. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 30. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 Fuzzing step 910 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 911 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 912 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % materialize(2)), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % materialize(2)), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % materialize(2)), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 913 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 914 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 915 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: While processing toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4: While processing SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 23. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 24. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 26. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 28. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 30. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 Fuzzing step 916 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 917 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 31. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 Fuzzing step 918 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 919 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 920 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 921 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 31. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 Fuzzing step 922 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 923 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 924 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 925 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 926 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, toFixedString(' ', 1), 2)) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, toFixedString(' ', 1), 2)) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, toFixedString(' ', 1), 2)) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 927 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 928 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 31. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 Fuzzing step 929 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 930 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 931 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 932 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 933 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 934 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 31. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 Fuzzing step 935 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 936 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 937 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 938 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % materialize(toUInt128(2))) AS x1, toUInt8(divide(number, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100, materialize(materialize(toUInt8(divide(number, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23, currentDatabase(), t), toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) GROUP BY greaterOrEquals(a), zeros(10), materialize(toNullable(toUInt128(1))), sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % materialize(toUInt128(2))) AS x1, toUInt8(divide(number, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100, materialize(materialize(toUInt8(divide(number, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23, currentDatabase(), t), toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) GROUP BY greaterOrEquals(a), zeros(10), materialize(toNullable(toUInt128(1))), sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS)': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % materialize(toUInt128(2))) AS x1, toUInt8(divide(number, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100, materialize(materialize(toUInt8(divide(number, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23, currentDatabase(), t), toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) GROUP BY greaterOrEquals(a), zeros(10), materialize(toNullable(toUInt128(1))), sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 31. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 Fuzzing step 939 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: While processing toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4: While processing SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 23. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 24. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 26. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 28. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 30. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 Fuzzing step 940 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 941 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 942 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 943 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 944 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 945 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 946 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 947 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: While processing toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4: While processing SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 23. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 24. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 26. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 28. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 30. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 Fuzzing step 948 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 949 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 950 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 951 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 952 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: While processing toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4: While processing SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 23. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 24. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 26. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 28. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 30. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 Fuzzing step 953 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 954 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: While processing toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4: While processing SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 23. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 24. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 26. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 28. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 30. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 Fuzzing step 955 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 956 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 957 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 958 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 31. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 Fuzzing step 959 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 960 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 961 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 962 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 963 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 964 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 965 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 31. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 Fuzzing step 966 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 967 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 968 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 969 out of 1000 EXPLAIN SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 970 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 971 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 972 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 973 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 974 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 975 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 31. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 Fuzzing step 976 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 977 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 978 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 31. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 Fuzzing step 979 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 980 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 981 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 982 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 983 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 984 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 985 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 986 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 31. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 Fuzzing step 987 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 988 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 989 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 990 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('1'): 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 991 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'EXPLAIN QUERY TREE SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 31. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 Fuzzing step 992 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 993 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 994 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 995 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 996 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % materialize(toLowCardinality(2))) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / 8) % toUInt128(materialize(2))), 2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % materialize(toLowCardinality(2))) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / 8) % toUInt128(materialize(2))), 2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % materialize(toLowCardinality(2))) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / 8) % toUInt128(materialize(2))), 2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 997 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 998 out of 1000 EXPLAIN AST SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Got boring AST Fuzzing step 999 out of 1000 SELECT 1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(2)), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16) ) Error on processing query 'SELECT 1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(2)), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(materialize(toUInt8((number / toNullable(8)) % toUInt128(2)), toUInt128(2)))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4 FROM numbers(16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 0 out of 1000 Current AST is too long, discarding it and using the original AST as a start Fuzzing step 1 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(materialize(toUInt128(2048))) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(materialize(toUInt128(2048)))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize(_CAST('2048', 'UInt128')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 2 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), number / toUInt256(2), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(c, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(toUInt8((number / 8) % toUInt128(2)), and1, and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), number / toUInt256(2), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(c, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(toUInt8((number / 8) % toUInt128(2)), and1, and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(c, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 3 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), toNullable(23)), 100) AND (c = 0), 1, 0), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(nums__fuzz_43, number, 128) % 2) AS x8, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), 0)), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY (x1 AND x2) AND (x3 AND x4), nums__fuzz_27, (x1 AND x2) AND (1000 AND x3 AND x4), x4 AND x5 Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), toNullable(23)), 100) AND (c = 0), 1, 0), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(nums__fuzz_43, number, 128) % 2) AS x8, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), 0)), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY (x1 AND x2) AND (x3 AND x4), nums__fuzz_27, (x1 AND x2) AND (1000 AND x3 AND x4), x4 AND x5': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_32' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), toNullable(23)), 100) AND (c = 0), 1, 0), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(nums__fuzz_43, number, 128) % 2) AS x8, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), 0)), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 4 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(toUInt256(20), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(toUInt256(20), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(toUInt256(20), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 5 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(toFixedString('test_cluster_two_shards', 23, 23, 23), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(toFixedString('test_cluster_two_shards', 23, 23, 23), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 4, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(toFixedString('test_cluster_two_shards', 23, 23, 23), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 6 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AND x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8((number / 2) % materialize(2), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(toUInt8((number / toNullable(2)) % 2), number, 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100) AND x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8((number / 2) % materialize(2), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(toUInt8((number / toNullable(2)) % 2), number, 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8((number / 2) % materialize(2), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(toUInt8((number / toNullable(2)) % 2), number, 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 7 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR ((sum(multiIf(s IN ('a', 'b'), toNullable(materialize(toNullable(1))), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt128(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR ((sum(multiIf(s IN ('a', 'b'), toNullable(materialize(toNullable(1))), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt128(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR ((sum(multiIf(s IN ('a', 'b'), toNullable(materialize(toNullable(1))), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt128(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 8 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 9 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), toLowCardinality(toNullable(toUInt256(0))))) IGNORE NULLS / count()) * materialize(100), 0)), x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(toUInt8((number / 2) % materialize(2)), x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR toUInt256(0) OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), toLowCardinality(toNullable(toUInt256(0))))) IGNORE NULLS / count()) * materialize(100), 0)), x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(toUInt8((number / 2) % materialize(2)), x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR toUInt256(0) OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), toLowCardinality(toNullable(toUInt256(0))))) IGNORE NULLS / count()) * materialize(100), 0)), x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(toUInt8((number / 2) % materialize(2)), x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR toUInt256(0) OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 10 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(materialize(toNullable(2048))) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(materialize(toNullable(2048)))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize(_CAST(2048, 'Nullable(UInt16)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 11 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x7 AND toUInt8((number / toUInt256(8)) % 2) AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % toLowCardinality(toNullable(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(materialize(toNullable(23)), (number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x7 AND toUInt8((number / toUInt256(8)) % 2) AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toLowCardinality(toNullable(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(materialize(toNullable(23)), (number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % toLowCardinality(toNullable(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(materialize(toNullable(23)), (number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000087714ea 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 12 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 2)) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toNullable(2)) AS x7, toUInt8(nums__fuzz_33, (number / 128) % 2) AS x8, toUInt8((number / toNullable(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 2)) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toNullable(2)) AS x7, toUInt8(nums__fuzz_33, (number / 128) % 2) AS x8, toUInt8((number / toNullable(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 2)) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toNullable(2)) AS x7, toUInt8(nums__fuzz_33, (number / 128) % 2) AS x8, toUInt8((number / toNullable(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 13 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toUInt256(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), toNullable(toUInt256(23))), toNullable(100)) AND (c = 0), 1, 0), if((a >= 0) AND (b != 100) AND (c = 0), 1, 0), toUInt256(2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toUInt256(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), toNullable(toUInt256(23))), toNullable(100)) AND (c = 0), 1, 0), if((a >= 0) AND (b != 100) AND (c = 0), 1, 0), toUInt256(2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_32' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toUInt256(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), toNullable(toUInt256(23))), toNullable(100)) AND (c = 0), 1, 0), if((a >= 0) AND (b != 100) AND (c = 0), 1, 0), toUInt256(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 14 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(('a', 'b'), x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((materialize(toNullable(toUInt256(1))) OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toLowCardinality(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(('a', 'b'), x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((materialize(toNullable(toUInt256(1))) OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toLowCardinality(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (Tuple(String, String)) of 1 argument of function xor: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(('a', 'b'), x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((materialize(toNullable(toUInt256(1))) OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toLowCardinality(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d156b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 15 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, 220, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, 220, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, 220, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 16 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, materialize(toNullable(toNullable(toLowCardinality(1)))), xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(number, x3, 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS, x2 AND x3, version_pair[materialize(1)] ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, materialize(toNullable(toNullable(toLowCardinality(1)))), xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(number, x3, 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS, x2 AND x3, version_pair[materialize(1)]) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(modulo(number, x3, 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS, x2 AND x3, version_pair[materialize(1)]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 17 out of 1000 SELECT xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(test_alias__fuzz_7, number / 8, 2)) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(test_alias__fuzz_7, number / 8, 2)) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_7' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(test_alias__fuzz_7, number / 8, 2)) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 18 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 19 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23)))), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23)))), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23)))), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 20 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 21 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo((x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and1) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo((x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and1) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo((x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 22 out of 1000 SELECT xor(x1, x2, x3, x4, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND ((intDiv(toUInt32(rtime), 20) * 20) * materialize(1000)) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(toNullable(materialize(1)), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND ((intDiv(toUInt32(rtime), 20) * 20) * materialize(1000)) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(toNullable(materialize(1)), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(toNullable(materialize(1)), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000087714ea 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 23 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(nums__fuzz_7, (number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(nums__fuzz_7, (number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(nums__fuzz_7, (number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 24 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE sum(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE sum(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE sum(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 25 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / materialize(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 26 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(' ', (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toNullable(toUInt128(2))) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(' ', (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toNullable(toUInt128(2))) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(' ', (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toNullable(toUInt128(2))) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 27 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), toFixedString(materialize(' '), 1), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(toUInt8((number / materialize(2)) % materialize(2)), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(toLowCardinality(toUInt128(23)), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(sum(toLowCardinality(toLowCardinality(23)), if((a >= 0) AND toLowCardinality(1), 1, 0)) IGNORE NULLS, number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and1, x1, and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), toFixedString(materialize(' '), 1), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(toUInt8((number / materialize(2)) % materialize(2)), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(toLowCardinality(toUInt128(23)), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(sum(toLowCardinality(toLowCardinality(23)), if((a >= 0) AND toLowCardinality(1), 1, 0)) IGNORE NULLS, number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and1, x1, and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(toUInt8((number / materialize(2)) % materialize(2)), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(toLowCardinality(toUInt128(23)), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(sum(toLowCardinality(toLowCardinality(23)), if((a >= 0) AND toLowCardinality(1), 1, 0)) IGNORE NULLS, number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 28 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8(modulo(divide(number, toFixedString(toFixedString(' ', toUInt128(1)), 1), 4))) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, b != toUInt256(toFixedString('2022-01-01', 10), 100), 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0), number % toNullable(2), materialize(toNullable(toUInt256(1))) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8(modulo(divide(number, toFixedString(toFixedString(' ', toUInt128(1)), 1), 4))) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, b != toUInt256(toFixedString('2022-01-01', 10), 100), 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0), number % toNullable(2), materialize(toNullable(toUInt256(1)))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8(modulo(divide(number, toFixedString(toFixedString(' ', toUInt128(1)), 1), 4))) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, b != toUInt256(toFixedString('2022-01-01', 10), 100), 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 29 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND ((a >= toNullable(0)) AND (b != materialize(toLowCardinality(toUInt128(100)))) AND (c > 220)) AND and(x5)) AND ((x6 AND x7) AND (greaterOrEquals(sum(if((b != toNullable(materialize(toNullable(1)), 100)) AND (c = 0), materialize(toUInt128(1)), 0)), a, 0) AND splitByChar(toLowCardinality(' '), getOSKernelVersion()) AND 1) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND ((a >= toNullable(0)) AND (b != materialize(toLowCardinality(toUInt128(100)))) AND (c > 220)) AND and(x5)) AND ((x6 AND x7) AND (greaterOrEquals(sum(if((b != toNullable(materialize(toNullable(1)), 100)) AND (c = 0), materialize(toUInt128(1)), 0)), a, 0) AND splitByChar(toLowCardinality(' '), getOSKernelVersion()) AND 1) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 30 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 31 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % materialize(toUInt256(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR or(or1 != or2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % materialize(toUInt256(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(or1 != or2)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % materialize(toUInt256(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 32 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % materialize(toNullable(toUInt128(2)))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toNullable(toUInt256(2))) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, toUInt256(100), 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % materialize(toNullable(toUInt128(2)))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toNullable(toUInt256(2))) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, toUInt256(100), 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % materialize(toNullable(toUInt128(2)))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toNullable(toUInt256(2))) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, toUInt256(100), 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 33 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR toFixedString(toFixedString(' ', toNullable(1)), 1) OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR toFixedString(toFixedString(' ', toNullable(1)), 1) OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (Nullable(FixedString(1))) of 2 argument of function or: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR toFixedString(toFixedString(' ', toNullable(1)), 1) OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8a2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 34 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (intDiv(toUInt32(rtime), materialize(20)) * 20) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND ((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0)) AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(x8, (number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(t__fuzz_18, (number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (intDiv(toUInt32(rtime), materialize(20)) * 20) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND ((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0)) AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(x8, (number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(t__fuzz_18, (number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x8' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(x8, (number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(t__fuzz_18, (number / 1024) % 2) AS x11 FROM numbers(2048). Maybe you meant: ['x8']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 35 out of 1000 EXPLAIN AST SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toUInt128(2)) AS x3, toUInt8(modulo(test_alias, number / 8, 2)) AS x4, toUInt8(divide(toFixedString(toLowCardinality('2022-01-01'), 10), number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 36 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (t__fuzz_27 OR ((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((if((a >= 0) AND (c > 220), 1, 0) AND (x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / materialize(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (t__fuzz_27 OR ((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((if((a >= 0) AND (c > 220), 1, 0) AND (x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / materialize(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (t__fuzz_27 OR ((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((if((a >= 0) AND (c > 220), 1, 0) AND (x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / materialize(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 37 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 38 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE version_pair ) WHERE (xor1 != xor2) OR (notEquals(and1, r1 + r2, and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE version_pair) WHERE (xor1 != xor2) OR (notEquals(and1, r1 + r2, and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression identifier 'version_pair' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE version_pair. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 7. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 39 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x4)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number, sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS, toLowCardinality(toNullable(512))) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x4)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number, sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS, toLowCardinality(toNullable(512))) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number, sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS, toLowCardinality(toNullable(512))) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 30. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 Fuzzing step 40 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, t__fuzz_38, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR toUInt128(toUInt256(2)) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, t__fuzz_38, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR toUInt128(toUInt256(2)) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_38' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, t__fuzz_38, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR toUInt128(toUInt256(2)) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 41 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((a >= toNullable(0)) AND (b != materialize(100)) AND (c > 220), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(toLowCardinality(1)), or1, or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((a >= toNullable(0)) AND (b != materialize(100)) AND (c > 220), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(toLowCardinality(1)), or1, or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((a >= toNullable(0)) AND (b != materialize(100)) AND (c > 220), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 42 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 43 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toUInt256(2048)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toUInt256(2048))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type UInt256 expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 44 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)) OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt256(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)) OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt256(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt256(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 45 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(toLowCardinality(1), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(equals(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16), c, 0), number, 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(toLowCardinality(1), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(equals(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16), c, 0), number, 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(toLowCardinality(1), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(equals(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16), c, 0), number, 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 46 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND sum(if(day = '2022-01-01', 10, (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) AND x6 AND x7 AND x8 AND x9 AND x10 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND sum(if(day = '2022-01-01', 10, (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) AND x6 AND x7 AND x8 AND x9 AND x10 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'day' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND sum(if(day = '2022-01-01', 10, (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) AND x6 AND x7 AND x8 AND x9 AND x10 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 47 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, t, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toNullable(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4), or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, t, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toNullable(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4), or2))': Received from localhost:9000. DB::Exception: Unknown expression identifier 't' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, t, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toNullable(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4), or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 48 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE or((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 49 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 50 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AND ((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), 0)) IGNORE NULLS WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AND ((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), 0)) IGNORE NULLS WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x6' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AND ((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), 0)) IGNORE NULLS WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 51 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, toLowCardinality(1000) AND x3 AND x4, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x2) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, toLowCardinality(1000) AND x3 AND x4, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x2) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 52 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(notEquals(b, toFixedString(toLowCardinality(23), materialize(toNullable(toUInt256(23)))), toNullable(100)), xor(xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toNullable(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers((a >= 0) AND (b != 100) AND (c = 0), 2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(notEquals(b, toFixedString(toLowCardinality(23), materialize(toNullable(toUInt256(23)))), toNullable(100)), xor(xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toNullable(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers((a >= 0) AND (b != 100) AND (c = 0), 2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Missing columns: 'b' 'c' 'a' while processing query: '(a >= 0) AND (b != 100) AND (c = 0)', required columns: 'a' 'c' 'b' 'a' 'c' 'b'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 8. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf2e5b 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 53 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 54 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, toLowCardinality(toUInt256(23)), 16) % 2) AS x5, toUInt8(modulo(number / 32, t__fuzz_40, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals(xor1, toLowCardinality(toLowCardinality(toUInt128(23))), xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, toLowCardinality(toUInt256(23)), 16) % 2) AS x5, toUInt8(modulo(number / 32, t__fuzz_40, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(xor1, toLowCardinality(toLowCardinality(toUInt128(23))), xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, toLowCardinality(toUInt256(23)), 16) % 2) AS x5, toUInt8(modulo(number / 32, t__fuzz_40, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 55 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR (number / 128) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x6) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE (a >= 0) AND (b != materialize(100)) AND (c > 220) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR (number / 128) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x6) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE (a >= 0) AND (b != materialize(100)) AND (c > 220)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE (a >= 0) AND (b != materialize(100)) AND (c > 220). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 56 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND if((a >= materialize(0)) AND (b != 100) AND equals(c), 1, 0) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND if((a >= materialize(0)) AND (b != 100) AND equals(c), 1, 0) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 57 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY sum(multiIf(s IN ('a', 'b'), 1, toNullable(0))) IGNORE NULLS / count(), (number / toLowCardinality(4)) % 2, r2 Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY sum(multiIf(s IN ('a', 'b'), 1, toNullable(0))) IGNORE NULLS / count(), (number / toLowCardinality(4)) % 2, r2': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY sum(multiIf(s IN ('a', 'b'), 1, toNullable(0))) IGNORE NULLS / count(), (number / toLowCardinality(4)) % 2, r2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 58 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(x4 OR x5, xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(number, toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, toNullable(100), 2)) AS x11 FROM numbers(2048) ) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(x4 OR x5, xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(number, toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, toNullable(100), 2)) AS x11 FROM numbers(2048))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(modulo(number, toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, toNullable(100), 2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 59 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x9)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt256(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x9)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt256(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x9)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt256(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 60 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toNullable(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 61 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(toUInt8((number / 4) % toUInt256(2)), number / 1024, 2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(toUInt8((number / 4) % toUInt256(2)), number / 1024, 2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(toUInt8((number / 4) % toUInt256(2)), number / 1024, 2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 62 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, t__fuzz_8, xor(xor(xor(x2), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(materialize(2))), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toNullable(2)) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, t__fuzz_8, xor(xor(xor(x2), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(materialize(2))), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toNullable(2)) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(materialize(2))), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toNullable(2)) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 63 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, toUInt8((number / toUInt256(8)) % toUInt128(2)), x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, toUInt8((number / toUInt256(8)) % toUInt128(2)), x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, toUInt8((number / toUInt256(8)) % toUInt128(2)), x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 64 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), 0)) IGNORE NULLS, x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (((intDiv(toUInt32(rtime), toUInt256(20)) * materialize(1000)) OR x6 OR x7) OR or(x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(toNullable(toLowCardinality(' ')), (number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), 0)) IGNORE NULLS, x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (((intDiv(toUInt32(rtime), toUInt256(20)) * materialize(1000)) OR x6 OR x7) OR or(x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(toNullable(toLowCardinality(' ')), (number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(toNullable(toLowCardinality(' ')), (number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000087714ea 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 65 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 66 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE materialize(toLowCardinality(2)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE materialize(toLowCardinality(2))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Table function storage SystemNumbers (table _table_function.numbers) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:266: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000003360584e 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 7. ./contrib/llvm-project/libcxx/include/__hash_table:1743: DB::(anonymous namespace)::buildQueryPlanForTableExpression(std::shared_ptr, DB::SelectQueryInfo const&, DB::SelectQueryOptions const&, std::shared_ptr&, bool, bool) @ 0x0000000034d74f61 8. ./build_docker/./src/Planner/PlannerJoinTree.cpp:1777: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x0000000034d67094 9. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0b8de 10. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 11. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 Fuzzing step 67 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, sum(if(toUInt8((number / toNullable(materialize(toFixedString(' ', 1)), materialize(2))) % 2) AND (b != 100) AND (c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), materialize(toLowCardinality(0))))), toLowCardinality(toNullable(1)))), x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, sum(if(toUInt8((number / toNullable(materialize(toFixedString(' ', 1)), materialize(2))) % 2) AND (b != 100) AND (c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), materialize(toLowCardinality(0))))), toLowCardinality(toNullable(1)))), x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, sum(if(toUInt8((number / toNullable(materialize(toFixedString(' ', 1)), materialize(2))) % 2) AND (b != 100) AND (c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), materialize(toLowCardinality(0))))), toLowCardinality(toNullable(1)))), x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 68 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (x10 OR ((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE toUInt256(20) WHERE (sum(multiIf(materialize(1), toLowCardinality(0))) IGNORE NULLS / count((b != toNullable(100)) AND toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23) AND 100 AND (c = 0))) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (x10 OR ((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE toUInt256(20) WHERE (sum(multiIf(materialize(1), toLowCardinality(0))) IGNORE NULLS / count((b != toNullable(100)) AND toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23) AND 100 AND (c = 0))) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 69 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(version_pair[materialize(1)], (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(version_pair[materialize(1)], (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(version_pair[materialize(1)], (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 70 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 71 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), toNullable(23)), toNullable(23)), 23) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toLowCardinality(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), toNullable(23)), toNullable(23)), 23) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toLowCardinality(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), toNullable(23)), toNullable(23)), 23) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toLowCardinality(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 72 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((if((b != 100) AND (c = 0), 1, 0) OR x2 OR x3) OR (x4 OR x5)) OR ((x6 OR cluster(toFixedString(toFixedString('test_cluster_two_shards'), 23, 23), currentDatabase(t__fuzz_24), t) OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((if((b != 100) AND (c = 0), 1, 0) OR x2 OR x3) OR (x4 OR x5)) OR ((x6 OR cluster(toFixedString(toFixedString('test_cluster_two_shards'), 23, 23), currentDatabase(t__fuzz_24), t) OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((if((b != 100) AND (c = 0), 1, 0) OR x2 OR x3) OR (x4 OR x5)) OR ((x6 OR cluster(toFixedString(toFixedString('test_cluster_two_shards'), 23, 23), currentDatabase(t__fuzz_24), t) OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 73 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(x1) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(toLowCardinality(10), divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(x1) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(toLowCardinality(10), divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(toLowCardinality(10), divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 74 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x4 OR x5) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x4)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(nums__fuzz_13, (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x4 OR x5) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x4)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(nums__fuzz_13, (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_13' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(nums__fuzz_13, (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 75 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 76 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, toUInt128(toUInt256(2)), x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, toUInt128(toUInt256(2)), x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (UInt128) of 2 argument of function xor: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, toUInt128(toUInt256(2)), x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d156b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 77 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x2) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((((number / materialize(2)) % 2) / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x2) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((((number / materialize(2)) % 2) / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((((number / materialize(2)) % 2) / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 78 out of 1000 SELECT xor(x1, x2, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and1, sum(if((a >= 0) AND (c > 220), 1, toFixedString('test_cluster_two_shards', 23), 0)) RESPECT NULLS, and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and1, sum(if((a >= 0) AND (c > 220), 1, toFixedString('test_cluster_two_shards', 23), 0)) RESPECT NULLS, and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and1, sum(if((a >= 0) AND (c > 220), 1, toFixedString('test_cluster_two_shards', 23), 0)) RESPECT NULLS, and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 79 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND t__fuzz_5 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND t__fuzz_5 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND t__fuzz_5 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 80 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x2, x3, x4, x5, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x1 OR x2 OR x3, x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND t__fuzz_8 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toLowCardinality(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x2, x3, x4, x5, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x1 OR x2 OR x3, x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND t__fuzz_8 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toLowCardinality(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('xor'): xor(x1, x2, x3, x4, x5, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x1 OR x2 OR x3, x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 81 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, count(1) IGNORE NULLS OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, count(1) IGNORE NULLS OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 82 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toLowCardinality(23)), currentDatabase(), t) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(toLowCardinality(toUInt128(2)))) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toLowCardinality(23)), currentDatabase(), t) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(toLowCardinality(toUInt128(2)))) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toLowCardinality(23)), currentDatabase(), t) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(toLowCardinality(toUInt128(2)))) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 83 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(toUInt8(divide(number, cluster(nums__fuzz_36, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), currentDatabase(), t), materialize(2)) % 2), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(toUInt8(divide(number, cluster(nums__fuzz_36, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), currentDatabase(), t), materialize(2)) % 2), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_36' in scope SELECT toUInt8(toUInt8(divide(number, cluster(nums__fuzz_36, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), currentDatabase(), t), materialize(2)) % 2), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 Fuzzing step 84 out of 1000 SELECT xor(x1, x2, x3, x4, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or(or(x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((cluster(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), toNullable(23)), 23, 23, currentDatabase(), t) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), 23), 23), currentDatabase(t__fuzz_24), t), (number / toUInt256(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or(or(x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((cluster(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), toNullable(23)), 23, 23, currentDatabase(), t) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), 23), 23), currentDatabase(t__fuzz_24), t), (number / toUInt256(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), 23), 23), currentDatabase(t__fuzz_24), t), (number / toUInt256(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 85 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, t__fuzz_38 AND x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, t__fuzz_38 AND x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 86 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, (a >= toLowCardinality(0)) AND (b != materialize(toNullable(100))) AND (c > 220), 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE (a >= toUInt256(0)) AND 1 WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, or1, or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, (a >= toLowCardinality(0)) AND (b != materialize(toNullable(100))) AND (c > 220), 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE (a >= toUInt256(0)) AND 1 WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, or1, or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, (a >= toLowCardinality(0)) AND (b != materialize(toNullable(100))) AND (c > 220), 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 87 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt128(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt128(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt128(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 88 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((nums__fuzz_46 OR x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(toUInt8((number / 2) % 2), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((toLowCardinality(toFixedString('test_cluster_two_shards', 23)) / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((nums__fuzz_46 OR x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(toUInt8((number / 2) % 2), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((toLowCardinality(toFixedString('test_cluster_two_shards', 23)) / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(toUInt8((number / 2) % 2), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((toLowCardinality(toFixedString('test_cluster_two_shards', 23)) / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 89 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 90 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / toUInt256(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(toUInt8(number % materialize(2)), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / toUInt256(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(toUInt8(number % materialize(2)), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / toUInt256(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(toUInt8(number % materialize(2)), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 91 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 92 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((number / 8) % toUInt128(2)) OR ((x2 OR x3) OR or(x4)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x2) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(sum(if((a >= 0) AND (b != 100) AND (c > 220), materialize(1), 0)) RESPECT NULLS, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((number / 8) % toUInt128(2)) OR ((x2 OR x3) OR or(x4)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x2) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(sum(if((a >= 0) AND (b != 100) AND (c > 220), materialize(1), 0)) RESPECT NULLS, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(sum(if((a >= 0) AND (b != 100) AND (c > 220), materialize(1), 0)) RESPECT NULLS, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 93 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 94 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 64) % 2) AS x7, toUInt8(nums__fuzz_22, (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number / toLowCardinality(2), number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 64) % 2) AS x7, toUInt8(nums__fuzz_22, (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number / toLowCardinality(2), number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 64) % 2) AS x7, toUInt8(nums__fuzz_22, (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number / toLowCardinality(2), number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 95 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 96 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND (toNullable(0) AND 1000 AND x3 AND x4) AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((toUInt8((number / toUInt256(8)) % toUInt128(materialize(toUInt256(2)))) AND x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY nums__fuzz_11, (b != 100) AND (c = toNullable(0)), toUInt8((number / toNullable(8)) % toUInt256(2)), if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND (toNullable(0) AND 1000 AND x3 AND x4) AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((toUInt8((number / toUInt256(8)) % toUInt128(materialize(toUInt256(2)))) AND x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY nums__fuzz_11, (b != 100) AND (c = toNullable(0)), toUInt8((number / toNullable(8)) % toUInt256(2)), if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 97 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND toUInt8((number / toLowCardinality(toLowCardinality(toUInt128(8)))) % toUInt128(2)) AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(if(and(a >= toUInt128(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0), materialize(toUInt256(0)))), 1, 0), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(xor(x6, x7), number, 512) % 2) AS x10, toUInt8(toUInt8((number / materialize(2)) % 2), (number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND toUInt8((number / toLowCardinality(toLowCardinality(toUInt128(8)))) % toUInt128(2)) AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(if(and(a >= toUInt128(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0), materialize(toUInt256(0)))), 1, 0), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(xor(x6, x7), number, 512) % 2) AS x10, toUInt8(toUInt8((number / materialize(2)) % 2), (number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(if(and(a >= toUInt128(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0), materialize(toUInt256(0)))), 1, 0), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(xor(x6, x7), number, 512) % 2) AS x10, toUInt8(toUInt8((number / materialize(2)) % 2), (number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 98 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(74, xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR (x9 OR xor(x2, x3) OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toNullable(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((a >= toNullable(0)) AND (b != materialize(100)) AND (c > 220), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(74, xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR (x9 OR xor(x2, x3) OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toNullable(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((a >= toNullable(0)) AND (b != materialize(100)) AND (c > 220), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toNullable(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((a >= toNullable(0)) AND (b != materialize(100)) AND (c > 220), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 99 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and(and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, cluster('test_cluster_two_shards', 23, toLowCardinality(23), currentDatabase(), t), 4) % 2) AS x3, toUInt8(t__fuzz_6 % (number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and(and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, cluster('test_cluster_two_shards', 23, toLowCardinality(23), currentDatabase(), t), 4) % 2) AS x3, toUInt8(t__fuzz_6 % (number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, cluster('test_cluster_two_shards', 23, toLowCardinality(23), currentDatabase(), t), 4) % 2) AS x3, toUInt8(t__fuzz_6 % (number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 100 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(intDiv(toUInt32(rtime), 20), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(a >= toLowCardinality(0), divide(toLowCardinality(1), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(intDiv(toUInt32(rtime), 20), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(a >= toLowCardinality(0), divide(toLowCardinality(1), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT toUInt8(intDiv(toUInt32(rtime), 20), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(a >= toLowCardinality(0), divide(toLowCardinality(1), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 101 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((a >= 0) AND (b != materialize(toUInt128(100))) AND 1 AND (c > toNullable(220)), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((a >= 0) AND (b != materialize(toUInt128(100))) AND 1 AND (c > toNullable(220)), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 4, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((a >= 0) AND (b != materialize(toUInt128(100))) AND 1 AND (c > toNullable(220)), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 102 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND sum(if((b != 100) AND (c = toNullable(0)), toNullable(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23, 1), materialize(0))) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, materialize(0)), 2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND sum(if((b != 100) AND (c = toNullable(0)), toNullable(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23, 1), materialize(0))) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, materialize(0)), 2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Missing columns: 'b' 'c' 'a' while processing query: 'if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, materialize(0))', required columns: 'a' 'c' 'b' 'a' 'c' 'b'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 8. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf2e5b 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 103 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toNullable(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toNullable(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toNullable(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 104 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(c = 0, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt256(512)) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(c = 0, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt256(512)) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT toUInt8(c = 0, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt256(512)) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 105 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0), x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(1024) % 2) AS x11 FROM numbers(2048) ) WHERE if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0), x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(1024) % 2) AS x11 FROM numbers(2048)) WHERE if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 106 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((c = toUInt256(0)) OR ((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number / materialize(2), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, round(materialize(toLowCardinality(toFixedString(' '))), (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100))) * 100), 2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((c = toUInt256(0)) OR ((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number / materialize(2), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, round(materialize(toLowCardinality(toFixedString(' '))), (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100))) * 100), 2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number / materialize(2), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, round(materialize(toLowCardinality(toFixedString(' '))), (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100))) * 100), 2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 107 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR Log OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals(xor1) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR Log OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(xor1) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 108 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 109 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, round(divide(count(toLowCardinality(1)) IGNORE NULLS) * 100), x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR nums__fuzz_36 OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, round(divide(count(toLowCardinality(1)) IGNORE NULLS) * 100), x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR nums__fuzz_36 OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 110 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(x1) AS and2 FROM ( SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, toNullable(materialize(toNullable(toNullable(1)))), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(x1) AS and2 FROM (SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, toNullable(materialize(toNullable(toNullable(1)))), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, toNullable(materialize(toNullable(toNullable(1)))), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 111 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(toLowCardinality(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(toLowCardinality(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(toLowCardinality(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 112 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(toUInt128(8), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(toUInt128(8), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(toUInt128(8), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 113 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(if(1 AND (c > 220), 1, 0), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(if(1 AND (c > 220), 1, 0), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(if(1 AND (c > 220), 1, 0), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 114 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(1000, x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toNullable(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 115 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 26. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 116 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(c = toUInt256(0), divide(materialize(256)), 2)) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / toUInt128(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(c = toUInt256(0), divide(materialize(256)), 2)) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / toUInt128(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(c = toUInt256(0), divide(materialize(256)), 2)) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / toUInt128(1024)) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 117 out of 1000 SELECT xor(x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(x1) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE toUInt256(materialize(x1 OR x2 OR x3, toNullable(8))) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(x1) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE toUInt256(materialize(x1 OR x2 OR x3, toNullable(8))) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(x1) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE toUInt256(materialize(x1 OR x2 OR x3, toNullable(8))) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 118 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 119 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x2 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(2)) AS x9, toUInt8(divide((a >= toLowCardinality(0)) AND 1, number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x2 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(2)) AS x9, toUInt8(divide((a >= toLowCardinality(0)) AND 1, number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(2)) AS x9, toUInt8(divide((a >= toLowCardinality(0)) AND 1, number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 120 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % toLowCardinality(toUInt256(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE or(xor1 != xor2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toLowCardinality(toUInt256(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or(xor1 != xor2)': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % toLowCardinality(toUInt256(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 121 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide((number / toLowCardinality(8)) % toUInt128(2), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide((number / toLowCardinality(8)) % toUInt128(2), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide((number / toLowCardinality(8)) % toUInt128(2), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 122 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / materialize(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(toFixedString('2022-01-01', 10), 100, divide(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23)), toLowCardinality(23)), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / materialize(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(toFixedString('2022-01-01', 10), 100, divide(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23)), toLowCardinality(23)), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / materialize(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(toFixedString('2022-01-01', 10), 100, divide(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23)), toLowCardinality(23)), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 123 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(toUInt8((number / 2) % materialize(toLowCardinality(2))), (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals(xor1, (number / toUInt256(4)) % 2, xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(toUInt8((number / 2) % materialize(toLowCardinality(2))), (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(xor1, (number / toUInt256(4)) % 2, xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(toUInt8((number / 2) % materialize(toLowCardinality(2))), (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 124 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (((number / 2) % materialize(toLowCardinality(2))) OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide((a >= 0) AND (b != 100) AND 1 AND greater(c), number, toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (((number / 2) % materialize(toLowCardinality(2))) OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide((a >= 0) AND (b != 100) AND 1 AND greater(c), number, toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide((a >= 0) AND (b != 100) AND 1 AND greater(c), number, toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 125 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(materialize(x1 OR x2 OR x3, toNullable(8)), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(materialize(x1 OR x2 OR x3, toNullable(8)), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT toUInt8(materialize(x1 OR x2 OR x3, toNullable(8)), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 126 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 30. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 Fuzzing step 127 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toLowCardinality(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 128 out of 1000 SELECT xor(x1, x2, x3, x4, (a >= 0) AND (b != 100) AND 1 AND (c > 220), x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (if((a >= 0) AND (b != toNullable(100)), 1, materialize(0)) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (multiIf(s IN ('a', 'b'), materialize(toNullable(toNullable(1))), toUInt256(1), materialize(0)) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number, cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(23))), toLowCardinality(toUInt256(23)), currentDatabase(), t), 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, (a >= 0) AND (b != 100) AND 1 AND (c > 220), x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (if((a >= 0) AND (b != toNullable(100)), 1, materialize(0)) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (multiIf(s IN ('a', 'b'), materialize(toNullable(toNullable(1))), toUInt256(1), materialize(0)) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number, cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(23))), toLowCardinality(toUInt256(23)), currentDatabase(), t), 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number, cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(23))), toLowCardinality(toUInt256(23)), currentDatabase(), t), 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 129 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND toNullable(2) AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toUInt8((number / 4) % 2), 2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND toNullable(2) AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toUInt8((number / 4) % 2), 2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'toUInt8((number / 4) % 2)', required columns: 'number' 'number'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 8. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf2e5b 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 130 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND if((a >= 0) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0) AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(toNullable(1) AND x1 AND x2 AND x3, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(23, modulo((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (x4 AND x5) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND if((a >= 0) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0) AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(toNullable(1) AND x1 AND x2 AND x3, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(23, modulo((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (x4 AND x5) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT toUInt8(toNullable(1) AND x1 AND x2 AND x3, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(23, modulo((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 131 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 132 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (materialize(toUInt128(2)) OR ((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (materialize(toUInt128(2)) OR ((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (UInt128) of 1 argument of function or: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (materialize(toUInt128(2)) OR ((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8a2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 133 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32, toNullable(sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(toLowCardinality(0)))), 1, 0)), 100), 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals(xor1) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32, toNullable(sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(toLowCardinality(0)))), 1, 0)), 100), 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(xor1) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32, toNullable(sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(toLowCardinality(0)))), 1, 0)), 100), 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 134 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x4 OR x5) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8(modulo(number / 8, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), Memory, 1, materialize(toNullable(0)))), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x4 OR x5) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8(modulo(number / 8, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), Memory, 1, materialize(toNullable(0)))), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8(modulo(number / 8, sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), Memory, 1, materialize(toNullable(0)))), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 135 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8(toUInt8((number / 8) % toLowCardinality(2)), (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(c = 0, 2048) ) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8(toUInt8((number / 8) % toLowCardinality(2)), (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(c = 0, 2048)) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Missing columns: 'c' while processing query: 'c = 0', required columns: 'c' 'c'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 8. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf2e5b 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 136 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, multiIf(s IN ('a', 'b'), 1, toLowCardinality(0)), 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, multiIf(s IN ('a', 'b'), 1, toLowCardinality(0)), 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, multiIf(s IN ('a', 'b'), 1, toLowCardinality(0)), 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 137 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x3) AND (x4 AND x5)) AND and(x6 AND x7)) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x3) AND (x4 AND x5)) AND and(x6 AND x7)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x3) AND (x4 AND x5)) AND and(x6 AND x7)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 138 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23) OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND number AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(toLowCardinality(toLowCardinality(23)), number / 64, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toNullable(materialize(2))) % 2, (number / 1024) % 2) AS x11 FROM numbers(2048) ) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23) OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND number AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(toLowCardinality(toLowCardinality(23)), number / 64, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toNullable(materialize(2))) % 2, (number / 1024) % 2) AS x11 FROM numbers(2048))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(toLowCardinality(toLowCardinality(23)), number / 64, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toNullable(materialize(2))) % 2, (number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 139 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(toFixedString('test_cluster_two_shards', 23), 23, 23, x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (nums__fuzz_8 AND x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(toUInt128(2))) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(toLowCardinality(toUInt128(materialize(2))), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(toFixedString('test_cluster_two_shards', 23), 23, 23, x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (nums__fuzz_8 AND x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(toUInt128(2))) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(toLowCardinality(toUInt128(materialize(2))), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(toUInt128(2))) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(toLowCardinality(toUInt128(materialize(2))), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 140 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(xor2, modulo(number / 1024)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (divide(toLowCardinality(8)) % toLowCardinality(toUInt128(2))) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(xor2, modulo(number / 1024)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (divide(toLowCardinality(8)) % toLowCardinality(toUInt128(2))) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(xor2, modulo(number / 1024)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (divide(toLowCardinality(8)) % toLowCardinality(toUInt128(2))) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::QueryAnalyzer::tryResolveIdentifierInParentScopes(DB::IdentifierLookup const&, DB::IdentifierResolveScope&) @ 0x0000000033486e25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000334849c9 12. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 141 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((version_pair[toLowCardinality(materialize(1))]) AND (x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))), 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100, 2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((version_pair[toLowCardinality(materialize(1))]) AND (x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))), 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100, 2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Wrong number of arguments passed to function in. Expected: 2, passed: 1: While processing in(s). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000a7e012a 4. ./src/Interpreters/misc.h:45: DB::MarkTableIdentifiersMatcher::visit(DB::ASTFunction&, DB::MarkTableIdentifiersMatcher::Data const&) @ 0x0000000035763114 5. ./build_docker/./src/Interpreters/MarkTableIdentifiersVisitor.cpp:48: DB::MarkTableIdentifiersMatcher::visit(std::shared_ptr&, DB::MarkTableIdentifiersMatcher::Data&) @ 0x0000000035762c16 6. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003567b6d5 7. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b985 8. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 9. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 10. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 11. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 12. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 13. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 14. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003567b990 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000003564d044 16. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000003565270b 17. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 18. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 19. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 20. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf2e5b 21. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 22. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 142 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((if((a >= toUInt256(0)) AND 1, 1, 0) AND (x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND if((a >= materialize(0)) AND notEquals(b, notEquals(and1, materialize(toNullable(materialize(toUInt256(1)))), and2), 100) AND equals(c), 1, 0) AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((if((a >= toUInt256(0)) AND 1, 1, 0) AND (x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND if((a >= materialize(0)) AND notEquals(b, notEquals(and1, materialize(toNullable(materialize(toUInt256(1)))), and2), 100) AND equals(c), 1, 0) AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((if((a >= toUInt256(0)) AND 1, 1, 0) AND (x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND if((a >= materialize(0)) AND notEquals(b, notEquals(and1, materialize(toNullable(materialize(toUInt256(1)))), and2), 100) AND equals(c), 1, 0) AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 143 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4), (number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toNullable(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4), (number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toNullable(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x2' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4), (number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toNullable(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Maybe you meant: ['x2']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 144 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(number / 8, xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(number / 8, xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 145 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23) OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23) OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 146 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8((b != 100) AND equals(toNullable(0)), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(test_alias__fuzz_39, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8((b != 100) AND equals(toNullable(0)), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(test_alias__fuzz_39, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8((b != 100) AND equals(toNullable(0)), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(test_alias__fuzz_39, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 147 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, numbers(materialize(toUInt128(2048))), 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(toNullable(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, numbers(materialize(toUInt128(2048))), 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(toNullable(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Function with name 'numbers' does not exist. In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, numbers(materialize(toUInt128(2048))), 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(toNullable(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000002141cd37 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3232: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b971c 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 148 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, materialize(toLowCardinality(2)), 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, x3, 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number, nums__fuzz_8, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE or((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, materialize(toLowCardinality(2)), 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, x3, 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number, nums__fuzz_8, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, materialize(toLowCardinality(2)), 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, x3, 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number, nums__fuzz_8, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 149 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 128) % 2, (number / 4) % 2) AS x3, toUInt8(modulo(number / 8, toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), toLowCardinality(23)), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 128) % 2, (number / 4) % 2) AS x3, toUInt8(modulo(number / 8, toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), toLowCardinality(23)), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 128) % 2, (number / 4) % 2) AS x3, toUInt8(modulo(number / 8, toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), toLowCardinality(23)), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 150 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY sum(if((a >= 0) AND notEquals(b) AND 1 AND (c > 220), 1, 0)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY sum(if((a >= 0) AND notEquals(b) AND 1 AND (c > 220), 1, 0))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY sum(if((a >= 0) AND notEquals(b) AND 1 AND (c > 220), 1, 0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 151 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(x6 OR x7, and1, and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(x6 OR x7, and1, and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(x6 OR x7, and1, and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 152 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 153 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR count(toLowCardinality(1)) IGNORE NULLS OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((intDiv(toUInt32(rtime), 20) * toLowCardinality(1000)) OR (x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE toNullable(0) AND 1000 AND x3 AND x4 ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR count(toLowCardinality(1)) IGNORE NULLS OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((intDiv(toUInt32(rtime), 20) * toLowCardinality(1000)) OR (x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE toNullable(0) AND 1000 AND x3 AND x4) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR count(toLowCardinality(1)) IGNORE NULLS OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((intDiv(toUInt32(rtime), 20) * toLowCardinality(1000)) OR (x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE toNullable(0) AND 1000 AND x3 AND x4) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 154 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x6) AND and(x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x6) AND and(x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 155 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR getOSKernelVersion() OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32, toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR getOSKernelVersion() OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32, toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32, toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23), 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 156 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo((a >= 0) AND (b != 100) AND toLowCardinality(1) AND (c > toUInt128(220)), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, x2, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, materialize(toLowCardinality(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toUInt128(23))), 23), toNullable(23)), 23, currentDatabase(), t), 0)), 2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo((a >= 0) AND (b != 100) AND toLowCardinality(1) AND (c > toUInt128(220)), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, x2, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, materialize(toLowCardinality(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toUInt128(23))), 23), toNullable(23)), 23, currentDatabase(), t), 0)), 2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo((a >= 0) AND (b != 100) AND toLowCardinality(1) AND (c > toUInt128(220)), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, x2, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, materialize(toLowCardinality(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toUInt128(23))), 23), toNullable(23)), 23, currentDatabase(), t), 0)), 2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 157 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 158 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, test_alias__fuzz_7, 2)) AS x11 FROM numbers(2048) ) WHERE notEquals(xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, test_alias__fuzz_7, 2)) AS x11 FROM numbers(2048)) WHERE notEquals(xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_7' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, test_alias__fuzz_7, 2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 159 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % materialize(toLowCardinality(2))) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(toFixedString('2022-01-01', 10), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR nums__fuzz_8 OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % materialize(toLowCardinality(2))) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(toFixedString('2022-01-01', 10), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR nums__fuzz_8 OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % materialize(toLowCardinality(2))) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(toFixedString('2022-01-01', 10), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 160 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND toUInt256(toLowCardinality(1)) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(x11, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % materialize(toUInt128(2))) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(toLowCardinality(toUInt256(23)), modulo((a >= 0) AND (c > 220), number / 64, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND toUInt256(toLowCardinality(1)) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(x11, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % materialize(toUInt128(2))) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(toLowCardinality(toUInt256(23)), modulo((a >= 0) AND (c > 220), number / 64, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(x11, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % materialize(toUInt128(2))) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(toLowCardinality(toUInt256(23)), modulo((a >= 0) AND (c > 220), number / 64, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 161 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (t__fuzz_27 OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (t__fuzz_27 OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 162 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(or(x4 OR x5) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(or(x4 OR x5) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(or(x4 OR x5) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 163 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (((number / 2) % 2) AND x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (((number / 2) % 2) AND x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (((number / 2) % 2) AND x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 31. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 Fuzzing step 164 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 165 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(materialize(materialize(toUInt128(toUInt8((number / toNullable(8)) % toUInt128(2)), 1000))), modulo((a >= 0) AND (c > 220), number / 4, 2)) AS x3, toUInt8(modulo(number / 8, (a >= 0) AND 1 AND (c > 220), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(toUInt256(128))) % 2) AS x8, toUInt8(divide(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(materialize(materialize(toUInt128(toUInt8((number / toNullable(8)) % toUInt128(2)), 1000))), modulo((a >= 0) AND (c > 220), number / 4, 2)) AS x3, toUInt8(modulo(number / 8, (a >= 0) AND 1 AND (c > 220), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(toUInt256(128))) % 2) AS x8, toUInt8(divide(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt128'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(materialize(materialize(toUInt128(toUInt8((number / toNullable(8)) % toUInt128(2)), 1000))), modulo((a >= 0) AND (c > 220), number / 4, 2)) AS x3, toUInt8(modulo(number / 8, (a >= 0) AND 1 AND (c > 220), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(toUInt256(128))) % 2) AS x8, toUInt8(divide(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000890dd2e 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000088e682a 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 166 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR splitByChar(toLowCardinality(' '), getOSKernelVersion()) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR splitByChar(toLowCardinality(' '), getOSKernelVersion()) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048))': Received from localhost:9000. DB::Exception: Illegal type (Array(String)) of 2 argument of function or: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR splitByChar(toLowCardinality(' '), getOSKernelVersion()) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8a2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 167 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(toUInt128(23))), 23), currentDatabase(), t), x7), xor(x8, xor(xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND materialize(toUInt256(2)) AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(toUInt128(23))), 23), currentDatabase(), t), x7), xor(x8, xor(xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND materialize(toUInt256(2)) AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x7' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(toUInt128(23))), 23), currentDatabase(), t), x7), xor(x8, xor(xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND materialize(toUInt256(2)) AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 168 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toUInt128(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(toUInt128(2))) AS x8, toUInt8(multiply(toNullable(materialize(test_alias__fuzz_9, 1)), intDiv(20), toNullable(20)), (number / 256) % 2) AS x9, toUInt8((number / toUInt128(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toUInt128(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(toUInt128(2))) AS x8, toUInt8(multiply(toNullable(materialize(test_alias__fuzz_9, 1)), intDiv(20), toNullable(20)), (number / 256) % 2) AS x9, toUInt8((number / toUInt128(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_9' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toUInt128(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(toUInt128(2))) AS x8, toUInt8(multiply(toNullable(materialize(test_alias__fuzz_9, 1)), intDiv(20), toNullable(20)), (number / 256) % 2) AS x9, toUInt8((number / toUInt128(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 169 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))), x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (divide(t__fuzz_16, number, toNullable(2)) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, t__fuzz_40, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))), x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (divide(t__fuzz_16, number, toNullable(2)) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, t__fuzz_40, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, t__fuzz_40, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 170 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), xor(x10, x11)))))) AS xor2, x1 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(t__fuzz_12, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, toUInt8((number / toNullable(8)) % toUInt128(materialize(2))), xor(x10, x11)))))) AS xor2, x1 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(t__fuzz_12, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_12' in scope SELECT toUInt8(t__fuzz_12, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 171 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(xor(x10, x11)))))) AS xor2, x1 OR x2 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo((a >= toLowCardinality(0)) AND 1, number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(xor(x10, x11)))))) AS xor2, x1 OR x2 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo((a >= toLowCardinality(0)) AND 1, number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo((a >= toLowCardinality(0)) AND 1, number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 172 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt256(2)) AS x2, toUInt8((number / toLowCardinality(8)) % toLowCardinality(2)), toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(toLowCardinality(8))) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 173 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 174 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(x3, xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((t__fuzz_35 / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(x3, xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((t__fuzz_35 / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_35' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((t__fuzz_35 / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 175 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(toNullable(toLowCardinality(' ')), x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(toNullable(toLowCardinality(' ')), x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (String) of 1 argument of function xor: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(toNullable(toLowCardinality(' ')), x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d156b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 176 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(sum(multiIf(s IN ('a', 'b'), 1, 0)), number / 64, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(sum(multiIf(s IN ('a', 'b'), 1, 0)), number / 64, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(sum(multiIf(s IN ('a', 'b'), 1, 0)), number / 64, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 177 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (((a >= 0) AND (b != materialize(100)) AND (c > 220)) OR x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (((a >= 0) AND (b != materialize(100)) AND (c > 220)) OR x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 178 out of 1000 SELECT xor(x1, x2, x3, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 179 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 180 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, x9, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % materialize(toNullable(2))) AS x10, toUInt8(divide(toFixedString('2022-01-01', toLowCardinality(10)), number, 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, x9, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % materialize(toNullable(2))) AS x10, toUInt8(divide(toFixedString('2022-01-01', toLowCardinality(10)), number, 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, x9, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % materialize(toNullable(2))) AS x10, toUInt8(divide(toFixedString('2022-01-01', toLowCardinality(10)), number, 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 181 out of 1000 SELECT xor(x1, number / 512, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x10))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, number / 512, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x10))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT xor(x1, number / 512, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x10))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 182 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toNullable(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toNullable(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or2))': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toNullable(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 183 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, divide(number, (a >= toNullable(0)) AND 1 AND (c > 220), toNullable(8)) % 2, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, divide(number, (a >= toNullable(0)) AND 1 AND (c > 220), toNullable(8)) % 2, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, divide(number, (a >= toNullable(0)) AND 1 AND (c > 220), toNullable(8)) % 2, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 30. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 Fuzzing step 184 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 185 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR sum(if((b != toNullable(toNullable(100))) AND (c = 0), 1, 0)) IGNORE NULLS OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR and1 OR (nums__fuzz_10 OR x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / materialize(16)) % 2) AS x5, toUInt8((number / 8) % toUInt128(2), (number / 32) % 2) AS x6, toUInt8((number / toNullable(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR sum(if((b != toNullable(toNullable(100))) AND (c = 0), 1, 0)) IGNORE NULLS OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR and1 OR (nums__fuzz_10 OR x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / materialize(16)) % 2) AS x5, toUInt8((number / 8) % toUInt128(2), (number / 32) % 2) AS x6, toUInt8((number / toNullable(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / materialize(16)) % 2) AS x5, toUInt8((number / 8) % toUInt128(2), (number / 32) % 2) AS x6, toUInt8((number / toNullable(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 186 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND ((toNullable(0) AND toLowCardinality(1000) AND x3 AND x4) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS) * 100, number / materialize(8), 2)) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toUInt256(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND ((toNullable(0) AND toLowCardinality(1000) AND x3 AND x4) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS) * 100, number / materialize(8), 2)) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toUInt256(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS) * 100, number / materialize(8), 2)) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toUInt256(1024)) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 30. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 Fuzzing step 187 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(if((a >= toUInt128(0)) AND (c > 220), 1, 0), number, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(x1 AND x2 AND x3 AND x4 AND x5 AND divide(count()) AND x6 AND x7 AND x8 AND x9 AND x10 AND x11, number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(if((a >= toUInt128(0)) AND (c > 220), 1, 0), number, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(x1 AND x2 AND x3 AND x4 AND x5 AND divide(count()) AND x6 AND x7 AND x8 AND x9 AND x10 AND x11, number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(if((a >= toUInt128(0)) AND (c > 220), 1, 0), number, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(x1 AND x2 AND x3 AND x4 AND x5 AND divide(count()) AND x6 AND x7 AND x8 AND x9 AND x10 AND x11, number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 188 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo((a >= 0) AND (b != toUInt128(100)) AND equals(c), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo((a >= 0) AND (b != toUInt128(100)) AND equals(c), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo((a >= 0) AND (b != toUInt128(100)) AND equals(c), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 189 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), nums__fuzz_13, xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), nums__fuzz_13, xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_13' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), nums__fuzz_13, xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 23. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 24. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 190 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, ((number / 64) % 2) AND x1 AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(toUInt128(0) AND toLowCardinality(1000) AND x3 AND x4, (number / toNullable(512)) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, ((number / 64) % 2) AND x1 AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(toUInt128(0) AND toLowCardinality(1000) AND x3 AND x4, (number / toNullable(512)) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (UInt128) of 1 argument of function and: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(toUInt128(0) AND toLowCardinality(1000) AND x3 AND x4, (number / toNullable(512)) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0d0e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 191 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and1, nums__fuzz_29, and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and1, nums__fuzz_29, and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_29' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and1, nums__fuzz_29, and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 192 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(0)), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(0)), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(0)), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 193 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (((a >= 0) AND notEquals(toLowCardinality(100)) AND toNullable(1) AND (c > 220)) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (sum(if((a >= 0) AND (b != toNullable(toUInt128(100))) AND (c > 220), 1, 0)) AND (x6 AND x7) AND (sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt128(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE a >= toUInt256(toNullable(toNullable(1))) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (((a >= 0) AND notEquals(toLowCardinality(100)) AND toNullable(1) AND (c > 220)) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (sum(if((a >= 0) AND (b != toNullable(toUInt128(100))) AND (c > 220), 1, 0)) AND (x6 AND x7) AND (sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt128(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE a >= toUInt256(toNullable(toNullable(1)))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt128(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE a >= toUInt256(toNullable(toNullable(1))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 194 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR (x6 AND x7) OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (toUInt8((number / 8) % toLowCardinality(2)) OR (and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR (x6 AND x7) OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (toUInt8((number / 8) % toLowCardinality(2)) OR (and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 195 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(if((a >= 0) AND toLowCardinality(1), 1, 0), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(if((a >= 0) AND toLowCardinality(1), 1, 0), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(if((a >= 0) AND toLowCardinality(1), 1, 0), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 196 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor((number / toUInt256(materialize(x1 OR x2 OR x3, 8))) % toUInt128(materialize(2)), x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND if((a >= materialize(0)) AND (b != 100) AND equals(c), 1, 0) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR or(and1 != and2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor((number / toUInt256(materialize(x1 OR x2 OR x3, 8))) % toUInt128(materialize(2)), x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND if((a >= materialize(0)) AND (b != 100) AND equals(c), 1, 0) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(and1 != and2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor((number / toUInt256(materialize(x1 OR x2 OR x3, 8))) % toUInt128(materialize(2)), x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND if((a >= materialize(0)) AND (b != 100) AND equals(c), 1, 0) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(and1 != and2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 197 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR materialize(toNullable(23)) OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, r1 * 100, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toNullable(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR materialize(toNullable(23)) OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, r1 * 100, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toNullable(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'r1' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, r1 * 100, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toNullable(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048). Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 198 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / materialize(toLowCardinality(8)), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), 23), materialize(23)), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / materialize(toLowCardinality(8)), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), 23), materialize(23)), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / materialize(toLowCardinality(8)), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), 23), materialize(23)), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 199 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x4)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt128(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR or(or1 != or2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x4)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt128(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(or1 != or2)': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x4)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(2)) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt128(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(or1 != or2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 200 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(if(and(a >= 0), 1, 0), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR if((a >= 0) AND 1, 1, 0) OR or(and1 != and2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(if(and(a >= 0), 1, 0), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR if((a >= 0) AND 1, 1, 0) OR or(and1 != and2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(if(and(a >= 0), 1, 0), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 201 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0)) OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0)) OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR if((b != 100) AND (c = toNullable(0)), toNullable(1), materialize(0)) OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 202 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(toFixedString(' ', toLowCardinality(toUInt256(1))), x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(toFixedString(' ', toLowCardinality(toUInt256(1))), x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (FixedString(1)) of 1 argument of function xor: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(toFixedString(' ', toLowCardinality(toUInt256(1))), x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d156b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 203 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x2 AND x3) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x2 AND x3) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x2 AND x3) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 Fuzzing step 204 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND toFixedString('test_cluster_two_shards', toNullable(23)) AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND toFixedString('test_cluster_two_shards', toNullable(23)) AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (Nullable(FixedString(23))) of 2 argument of function and: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND toFixedString('test_cluster_two_shards', toNullable(23)) AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0d0e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 205 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, multiply(intDiv(toUInt32(rtime), 20) * 20, sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count(1) IGNORE NULLS, materialize(1000)), materialize(2))) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, multiply(intDiv(toUInt32(rtime), 20) * 20, sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count(1) IGNORE NULLS, materialize(1000)), materialize(2))) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, multiply(intDiv(toUInt32(rtime), 20) * 20, sum(multiIf(s IN ('a', 'b'), 1, 0)) RESPECT NULLS / count(1) IGNORE NULLS, materialize(1000)), materialize(2))) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 206 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt256(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * materialize(100)), number / 512, 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt256(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * materialize(100)), number / 512, 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt256(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * materialize(100)), number / 512, 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 207 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(if((a >= 0) AND (b != 100) AND 1 AND greater(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23, 23, c, toNullable(220)), 1, toLowCardinality(0)), xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt256(2)) AS x2, toUInt8(round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1 AND (c > 220), cluster('test_cluster_two_shards', currentDatabase(toUInt8((number / toLowCardinality(8)) % 2)), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100), divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toNullable(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(if((a >= 0) AND (b != 100) AND 1 AND greater(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23, 23, c, toNullable(220)), 1, toLowCardinality(0)), xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt256(2)) AS x2, toUInt8(round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1 AND (c > 220), cluster('test_cluster_two_shards', currentDatabase(toUInt8((number / toLowCardinality(8)) % 2)), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100), divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toNullable(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt256(2)) AS x2, toUInt8(round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1 AND (c > 220), cluster('test_cluster_two_shards', currentDatabase(toUInt8((number / toLowCardinality(8)) % 2)), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100), divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toNullable(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 30. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 Fuzzing step 208 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR ((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(toLowCardinality(toLowCardinality(20)), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % materialize(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo((number / 32) % 2, number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR ((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(toLowCardinality(toLowCardinality(20)), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % materialize(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo((number / 32) % 2, number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(toLowCardinality(toLowCardinality(20)), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % materialize(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo((number / 32) % 2, number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 209 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR sum(multiIf(s IN ('a', 'b'), 1, toUInt128(toNullable(1)), toNullable(0))) IGNORE NULLS OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, toUInt8((number / 8) % toUInt128(2)), toNullable(2))) AS x5, toUInt8((number / 32) % toLowCardinality(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR sum(multiIf(s IN ('a', 'b'), 1, toUInt128(toNullable(1)), toNullable(0))) IGNORE NULLS OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, toUInt8((number / 8) % toUInt128(2)), toNullable(2))) AS x5, toUInt8((number / 32) % toLowCardinality(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, toUInt8((number / 8) % toUInt128(2)), toNullable(2))) AS x5, toUInt8((number / 32) % toLowCardinality(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 210 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR ((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(materialize(toLowCardinality(toFixedString(materialize(' '), toNullable(1)))), 100)) OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0)), 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR ((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(materialize(toLowCardinality(toFixedString(materialize(' '), toNullable(1)))), 100)) OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0)), 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0)), 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 211 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / materialize(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(materialize(2048)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / materialize(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(materialize(2048))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 212 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, x8 AND (x9 AND (x10 AND x11)), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % materialize(toNullable(2))) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, if(day = '2022-01-01', toLowCardinality(10), (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0), toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY materialize(toLowCardinality(toFixedString(if((b != 100) AND (c = 0), materialize(toNullable(1)), 0), ' ', 1))), toUInt256(2) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, x8 AND (x9 AND (x10 AND x11)), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % materialize(toNullable(2))) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, if(day = '2022-01-01', toLowCardinality(10), (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0), toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY materialize(toLowCardinality(toFixedString(if((b != 100) AND (c = 0), materialize(toNullable(1)), 0), ' ', 1))), toUInt256(2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, x8 AND (x9 AND (x10 AND x11)), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % materialize(toNullable(2))) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, if(day = '2022-01-01', toLowCardinality(10), (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0), toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY materialize(toLowCardinality(toFixedString(if((b != 100) AND (c = 0), materialize(toNullable(1)), 0), ' ', 1))), toUInt256(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 213 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(materialize(toUInt128(1000)), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(sum(multiIf(s IN ('a', 'b'), toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS, (number / 128) % materialize(toLowCardinality(toUInt128(2)))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(materialize(toUInt128(1000)), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(sum(multiIf(s IN ('a', 'b'), toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS, (number / 128) % materialize(toLowCardinality(toUInt128(2)))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(materialize(toUInt128(1000)), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(sum(multiIf(s IN ('a', 'b'), toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS, (number / 128) % materialize(toLowCardinality(toUInt128(2)))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 214 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt128(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(x9 OR (x10 OR x11), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt128(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(x9 OR (x10 OR x11), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt128(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(x9 OR (x10 OR x11), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 215 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / materialize(toLowCardinality(toUInt128(256)))) % 2) AS x9, toUInt8((number / toNullable(toUInt256(512))) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / materialize(toLowCardinality(toUInt128(256)))) % 2) AS x9, toUInt8((number / toNullable(toUInt256(512))) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / materialize(toLowCardinality(toUInt128(256)))) % 2) AS x9, toUInt8((number / toNullable(toUInt256(512))) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 216 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND toUInt8((number / 4) % materialize(2)) AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(0))), modulo(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(23), materialize(toUInt256(23))), 100) AND (c = 0), number, 2)) AS x1, toUInt8((number / 2) % toLowCardinality(toNullable(toUInt128(2)))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND toUInt8((number / 4) % materialize(2)) AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(0))), modulo(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(23), materialize(toUInt256(23))), 100) AND (c = 0), number, 2)) AS x1, toUInt8((number / 2) % toLowCardinality(toNullable(toUInt128(2)))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(0))), modulo(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(23), materialize(toUInt256(23))), 100) AND (c = 0), number, 2)) AS x1, toUInt8((number / 2) % toLowCardinality(toNullable(toUInt128(2)))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 217 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11, x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1 FROM ( SELECT toUInt8(modulo(number, toFixedString(toFixedString('2022-01-01', 10), 10), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(divide(128))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(toUInt128(toNullable(1)), number, 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11, x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1 FROM (SELECT toUInt8(modulo(number, toFixedString(toFixedString('2022-01-01', 10), 10), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(divide(128))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(toUInt128(toNullable(1)), number, 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(modulo(number, toFixedString(toFixedString('2022-01-01', 10), 10), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(divide(128))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(toUInt128(toNullable(1)), number, 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 218 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 219 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(toNullable('test_cluster_two_shards'), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt128(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % toLowCardinality(toUInt256(2))) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(toNullable('test_cluster_two_shards'), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt128(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % toLowCardinality(toUInt256(2))) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt128(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % toLowCardinality(toUInt256(2))) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 220 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, toUInt256(0), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(version_pair[materialize(materialize(toNullable(materialize(1))))], number / toLowCardinality(8), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, toUInt256(0), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(version_pair[materialize(materialize(toNullable(materialize(1))))], number / toLowCardinality(8), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(version_pair[materialize(materialize(toNullable(materialize(1))))], number / toLowCardinality(8), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 221 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((if((a >= 0) AND (b != 100) AND (c > 220), 1, 0) AND (x2 AND x3)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((if((a >= 0) AND (b != 100) AND (c > 220), 1, 0) AND (x2 AND x3)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((if((a >= 0) AND (b != 100) AND (c > 220), 1, 0) AND (x2 AND x3)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 222 out of 1000 SELECT xor(x1, x2, x3, x4, ('a', 'b'), x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR (c = toNullable(0)) OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(number, toUInt8((number / toNullable(2)) % toLowCardinality(2)), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, (and1 != and2) OR notEquals(or2), toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, ('a', 'b'), x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR (c = toNullable(0)) OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(number, toUInt8((number / toNullable(2)) % toLowCardinality(2)), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, (and1 != and2) OR notEquals(or2), toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(modulo(number, toUInt8((number / toNullable(2)) % toLowCardinality(2)), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, (and1 != and2) OR notEquals(or2), toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 223 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toNullable(toUInt256(4))) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE (sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * 100 ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toNullable(toUInt256(4))) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE (sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * 100) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toNullable(toUInt256(4))) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE (sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * 100. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 22. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 224 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4)), xor(xor(x6, x7), xor(x8, xor(x9, xor(toUInt256(8), x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, 64, 2) % 2) AS x2, toUInt8(divide(number, greaterOrEquals(256, a, 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0))), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4)), xor(xor(x6, x7), xor(x8, xor(x9, xor(toUInt256(8), x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, 64, 2) % 2) AS x2, toUInt8(divide(number, greaterOrEquals(256, a, 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0))), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, 64, 2) % 2) AS x2, toUInt8(divide(number, greaterOrEquals(256, a, 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0))), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 225 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8(test_alias__fuzz_39, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8(test_alias__fuzz_39, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8(test_alias__fuzz_39, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 226 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or(or(x2) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toNullable(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or(or(x2) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toNullable(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toNullable(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 227 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND materialize(toNullable(toNullable(1))) AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND multiply(100) AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number, sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)), 8) % 2) AS x4, toUInt8(modulo(number / 16, round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND materialize(toNullable(toNullable(1))) AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND multiply(100) AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number, sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)), 8) % 2) AS x4, toUInt8(modulo(number / 16, round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number, sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)), 8) % 2) AS x4, toUInt8(modulo(number / 16, round((sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) * 100), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 228 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), (sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100, xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, and1 != and2, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), (sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100, xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, and1 != and2, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), (sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100, xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, and1 != and2, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::QueryAnalyzer::tryResolveIdentifierInParentScopes(DB::IdentifierLookup const&, DB::IdentifierResolveScope&) @ 0x0000000033486e25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000334849c9 12. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 229 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (sum(if((a >= 0) AND toNullable(1), 1, 0)) IGNORE NULLS AND x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toNullable(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals(xor1) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (sum(if((a >= 0) AND toNullable(1), 1, 0)) IGNORE NULLS AND x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toNullable(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(xor1) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (sum(if((a >= 0) AND toNullable(1), 1, 0)) IGNORE NULLS AND x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toNullable(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(xor1) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 230 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(toUInt256(0), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toLowCardinality(toNullable(2))) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (toNullable(0) OR (and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(toUInt256(0), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toLowCardinality(toNullable(2))) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10 FROM numbers(2048)) WHERE (xor1 != xor2) OR (toNullable(0) OR (and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(toUInt256(0), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toLowCardinality(toNullable(2))) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 231 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toNullable(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE toUInt8(number % 2) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toNullable(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE toUInt8(number % 2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toNullable(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE toUInt8(number % 2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 232 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, toNullable(' '), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR nums__fuzz_36 OR (x4 OR x5)) OR ((sum(if((a >= 0) AND (b != materialize(materialize(100))) AND (c > 220), 1, 0)) OR x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt128(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, toNullable(' '), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR nums__fuzz_36 OR (x4 OR x5)) OR ((sum(if((a >= 0) AND (b != materialize(materialize(100))) AND (c > 220), 1, 0)) OR x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt128(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (String) of 2 argument of function xor: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, toNullable(' '), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR nums__fuzz_36 OR (x4 OR x5)) OR ((sum(if((a >= 0) AND (b != materialize(materialize(100))) AND (c > 220), 1, 0)) OR x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt128(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d156b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 233 out of 1000 EXPLAIN AST SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(toUInt128(2))) AS x4, toUInt8((number / materialize(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toNullable(toUInt128(2))) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(intDiv(toUInt32(rtime), toNullable(multiply((a >= 0) AND (b != 100) AND (c > toNullable(220)), sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS, toNullable(100)), 20)), number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals(xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 234 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x4 OR x5) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x4 OR x5) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 235 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8(divide(number, if((a >= toUInt256(0)) AND 1, 1, 0), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8(divide(number, if((a >= toUInt256(0)) AND 1, 1, 0), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8(divide(number, if((a >= toUInt256(0)) AND 1, 1, 0), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 236 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(splitByChar(' ', getOSKernelVersion()), x2, x3), xor(x4, x5)), xor(xor(sum(multiIf(s IN ('a', 'b'), 1, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100), toNullable(0))) IGNORE NULLS / count(), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), toNullable(100)) AND (c = 0), 1, 0) AND (x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide((number / toLowCardinality(4)) % 2, number, 2) % 2) AS x2, toUInt8((number / toLowCardinality(toUInt256(4))) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE count() WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(splitByChar(' ', getOSKernelVersion()), x2, x3), xor(x4, x5)), xor(xor(sum(multiIf(s IN ('a', 'b'), 1, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100), toNullable(0))) IGNORE NULLS / count(), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), toNullable(100)) AND (c = 0), 1, 0) AND (x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide((number / toLowCardinality(4)) % 2, number, 2) % 2) AS x2, toUInt8((number / toLowCardinality(toUInt256(4))) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE count() WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide((number / toLowCardinality(4)) % 2, number, 2) % 2) AS x2, toUInt8((number / toLowCardinality(toUInt256(4))) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 237 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, number, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0), or1, or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, number, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0), or1, or2))': Received from localhost:9000. DB::Exception: Unknown expression identifier 'number' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, number, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0), or1, or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 238 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), 23), materialize(23)), currentDatabase(t__fuzz_24), t) AND x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / materialize(64)) % 2) AS x7, toUInt8((number / 8) % toUInt128(2), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), 23), materialize(23)), currentDatabase(t__fuzz_24), t) AND x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / materialize(64)) % 2) AS x7, toUInt8((number / 8) % toUInt128(2), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / materialize(64)) % 2) AS x7, toUInt8((number / 8) % toUInt128(2), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 239 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), 2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), 2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Nullable(FixedString(23))) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf2e5b 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 240 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 241 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(a >= toLowCardinality(0), number / 1024, 2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(a >= toLowCardinality(0), number / 1024, 2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(a >= toLowCardinality(0), number / 1024, 2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 242 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR toFixedString(toFixedString(toNullable('test_cluster_two_shards'), if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0), 23), 23) OR x7) OR x10 OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(toUInt256(4))) % materialize(toNullable(2))) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR or(and1 != and2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR toFixedString(toFixedString(toNullable('test_cluster_two_shards'), if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0), 23), 23) OR x7) OR x10 OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(toUInt256(4))) % materialize(toNullable(2))) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(and1 != and2)': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR toFixedString(toFixedString(toNullable('test_cluster_two_shards'), if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0), 23), 23) OR x7) OR x10 OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(toUInt256(4))) % materialize(toNullable(2))) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(and1 != and2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 243 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(test_alias__fuzz_8, x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(test_alias__fuzz_8, x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 244 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x4 OR x5) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % toUInt256(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x4 OR x5) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toUInt256(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % toUInt256(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 245 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 246 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, (x1 AND x2) AND (b != materialize(materialize(1000), materialize(100))) AND (0 AND 1000 AND x4), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, (x1 AND x2) AND (b != materialize(materialize(1000), materialize(100))) AND (0 AND 1000 AND x4), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, (x1 AND x2) AND (b != materialize(materialize(1000), materialize(100))) AND (0 AND 1000 AND x4), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 247 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 248 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (intDiv(20) * materialize(materialize(1000))) OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR toUInt8((number / 1024) % 2) OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (intDiv(20) * materialize(materialize(1000))) OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR toUInt8((number / 1024) % 2) OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (intDiv(20) * materialize(materialize(1000))) OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR toUInt8((number / 1024) % 2) OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 249 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR t__fuzz_28 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(toUInt128(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % materialize(toUInt256(2))) AS x7, toUInt8((number / materialize(toLowCardinality(128))) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, (number / toUInt256(8)) % 2, or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR t__fuzz_28 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(toUInt128(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % materialize(toUInt256(2))) AS x7, toUInt8((number / materialize(toLowCardinality(128))) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, (number / toUInt256(8)) % 2, or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_28' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR t__fuzz_28 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(toUInt128(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % materialize(toUInt256(2))) AS x7, toUInt8((number / materialize(toLowCardinality(128))) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, (number / toUInt256(8)) % 2, or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 250 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 251 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(if((a >= 0) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0) % (number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(if((a >= 0) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0) % (number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(if((a >= 0) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0) % (number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 252 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR or(and1 != and2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(and1 != and2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x5' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(and1 != and2). Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 253 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x6 AND x7)) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x6 AND x7)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x6 AND x7)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 254 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((41 AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toNullable(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals(xor1, (number / 2) % 2, xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((41 AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toNullable(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(xor1, (number / 2) % 2, xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toNullable(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 25. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 26. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 255 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(materialize(2048)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(materialize(2048))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 256 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND toUInt8((number / toUInt256(4)) % 2) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toNullable(2)) AS x6, toUInt8((number / materialize(64)) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND toUInt8((number / toUInt256(4)) % 2) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toNullable(2)) AS x6, toUInt8((number / materialize(64)) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toNullable(2)) AS x6, toUInt8((number / materialize(64)) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 257 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (materialize(toLowCardinality(8)) AND x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (materialize(toLowCardinality(8)) AND x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (materialize(toLowCardinality(8)) AND x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 258 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals(xor1, toLowCardinality(10), xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(xor1, toLowCardinality(10), xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 3, should be 2: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(xor1, toLowCardinality(10), xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 259 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (((sum(multiIf(s IN toLowCardinality(('a', 'b')), toUInt128(1))) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) OR x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, b, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (((sum(multiIf(s IN toLowCardinality(('a', 'b')), toUInt128(1))) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) OR x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, b, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 260 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 261 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(if((a >= 0) AND toLowCardinality(1), 1, 0), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(toLowCardinality(1024))) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(if((a >= 0) AND toLowCardinality(1), 1, 0), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(toLowCardinality(1024))) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(if((a >= 0) AND toLowCardinality(1), 1, 0), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(toLowCardinality(1024))) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 262 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(256) % 2) AS x9, toUInt8((number / toLowCardinality(toUInt256(512))) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toLowCardinality(toUInt128(2048))) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(256) % 2) AS x9, toUInt8((number / toLowCardinality(toUInt256(512))) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toLowCardinality(toUInt128(2048)))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt128) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 263 out of 1000 SELECT xor(x1, x2, x3, x4, toFixedString('2022-01-01'), x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (sum(sum(if((a >= 0) AND (b != toUInt128(100)) AND (c > toUInt256(220)), 1, 0)), if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, 0)) RESPECT NULLS OR (x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, toFixedString('2022-01-01'), x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (sum(sum(if((a >= 0) AND (b != toUInt128(100)) AND (c > toUInt256(220)), 1, 0)), if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, 0)) RESPECT NULLS OR (x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 264 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor((number / toUInt256(toNullable(8))) % toUInt128(2), x6, x7), xor(x8, xor(x9))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR round((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor((number / toUInt256(toNullable(8))) % toUInt128(2), x6, x7), xor(x8, xor(x9))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR round((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor((number / toUInt256(toNullable(8))) % toUInt128(2), x6, x7), xor(x8, xor(x9))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR round((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100) OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 265 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND (x4 OR x5) AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AND ((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and1, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11, and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND (x4 OR x5) AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS AND ((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and1, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11, and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 266 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (toLowCardinality(100) OR (x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 267 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals(xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 268 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(toUInt8((number / 8) % toUInt128(2)), x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(toUInt8((number / 8) % toUInt128(2)), x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(toUInt8((number / 8) % toUInt128(2)), x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 31. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 Fuzzing step 269 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % toUInt128(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % toUInt128(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % toUInt128(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 270 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 271 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(t__fuzz_4, (number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(8)) % 2, (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(t__fuzz_4, (number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(8)) % 2, (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_4' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(t__fuzz_4, (number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(8)) % 2, (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 272 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toNullable(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 273 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt128(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt128(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt128(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 26. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 274 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23)), 23) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23)), 23) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (Nullable(FixedString(23))) of 2 argument of function or: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23)), 23) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8a2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 275 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (materialize(materialize(toUInt128(2))) OR or(x2 OR toUInt8((number / 4) % 2) OR x3) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, x8 AND (x9 AND (x10 AND x11)), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (materialize(materialize(toUInt128(2))) OR or(x2 OR toUInt8((number / 4) % 2) OR x3) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, x8 AND (x9 AND (x10 AND x11)), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, x8 AND (x9 AND (x10 AND x11)), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 276 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 277 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(toNullable(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512, 64, 2)) AS x10, toUInt8((number / 1024) % toNullable(toUInt256(2))) AS x11 FROM numbers(2048) GROUP BY materialize(2) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(toNullable(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512, 64, 2)) AS x10, toUInt8((number / 1024) % toNullable(toUInt256(2))) AS x11 FROM numbers(2048) GROUP BY materialize(2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(toNullable(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512, 64, 2)) AS x10, toUInt8((number / 1024) % toNullable(toUInt256(2))) AS x11 FROM numbers(2048) GROUP BY materialize(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 278 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100)) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100)) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100)) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 279 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()) OR (and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()) OR (and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()) OR (and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 280 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(t__fuzz_27, number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(modulo(divide(number), toUInt8((number / toLowCardinality(0)) % 2), 2), number / 1024, 2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(t__fuzz_27, number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(modulo(divide(number), toUInt8((number / toLowCardinality(0)) % 2), 2), number / 1024, 2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_27' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(t__fuzz_27, number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(modulo(divide(number), toUInt8((number / toLowCardinality(0)) % 2), 2), number / 1024, 2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 281 out of 1000 EXPLAIN AST graph = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR 1024 OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN AST graph = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR 1024 OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "graph" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495f93b 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 282 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY sum(if(and(b != 100), 1, toNullable(0))) IGNORE NULLS, number / toLowCardinality(8) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY sum(if(and(b != 100), 1, toNullable(0))) IGNORE NULLS, number / toLowCardinality(8)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY sum(if(and(b != 100), 1, toNullable(0))) IGNORE NULLS, number / toLowCardinality(8). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 283 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toNullable(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 284 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (toUInt128(1) AND (x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toNullable(64)) % 2) AS x7, toUInt8((number / 128) % materialize(toLowCardinality(2))) AS x8, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY if((a >= 0) AND toNullable(1), 1, 0), sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(materialize(toFixedString(' ', 1)), toLowCardinality(toUInt128(1)))), 0)) IGNORE NULLS / count(), sum(if(greaterOrEquals(toFixedString(materialize(' '), 1), a, toLowCardinality(0)) AND notEquals(toUInt8((number / 4) % toLowCardinality(2)), b, 100) AND (c = 0), 1, 0)) IGNORE NULLS, if((b != materialize(toNullable(toUInt128(100)))) AND 100 AND equals(c, t__fuzz_38, 0), 1, 0) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (toUInt128(1) AND (x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toNullable(64)) % 2) AS x7, toUInt8((number / 128) % materialize(toLowCardinality(2))) AS x8, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY if((a >= 0) AND toNullable(1), 1, 0), sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(materialize(toFixedString(' ', 1)), toLowCardinality(toUInt128(1)))), 0)) IGNORE NULLS / count(), sum(if(greaterOrEquals(toFixedString(materialize(' '), 1), a, toLowCardinality(0)) AND notEquals(toUInt8((number / 4) % toLowCardinality(2)), b, 100) AND (c = 0), 1, 0)) IGNORE NULLS, if((b != materialize(toNullable(toUInt128(100)))) AND 100 AND equals(c, t__fuzz_38, 0), 1, 0)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toNullable(64)) % 2) AS x7, toUInt8((number / 128) % materialize(toLowCardinality(2))) AS x8, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY if((a >= 0) AND toNullable(1), 1, 0), sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(materialize(toFixedString(' ', 1)), toLowCardinality(toUInt128(1)))), 0)) IGNORE NULLS / count(), sum(if(greaterOrEquals(toFixedString(materialize(' '), 1), a, toLowCardinality(0)) AND notEquals(toUInt8((number / 4) % toLowCardinality(2)), b, 100) AND (c = 0), 1, 0)) IGNORE NULLS, if((b != materialize(toNullable(toUInt128(100)))) AND 100 AND equals(c, t__fuzz_38, 0), 1, 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 285 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 286 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((((toLowCardinality(1000) AND x3 AND x4) AND x2) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8(modulo(number / 1024, (number / 64) % 2, 2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((((toLowCardinality(1000) AND x3 AND x4) AND x2) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8(modulo(number / 1024, (number / 64) % 2, 2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8(modulo(number / 1024, (number / 64) % 2, 2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 287 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8(toLowCardinality(100), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8(toLowCardinality(100), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8(toLowCardinality(100), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 288 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(materialize(2048)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(materialize(2048))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 289 out of 1000 EXPLAIN actions = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM ( SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toUInt256(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN actions = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM (SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toUInt256(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "actions" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496cdff 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 290 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((((number / 2) % 2) OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND cluster('test_cluster_two_shards', currentDatabase(), t) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, if(notEquals(b) AND (c = toNullable(0)), materialize(1), 0), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(number / 256, (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((((number / 2) % 2) OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND cluster('test_cluster_two_shards', currentDatabase(), t) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, if(notEquals(b) AND (c = toNullable(0)), materialize(1), 0), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(number / 256, (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, if(notEquals(b) AND (c = toNullable(0)), materialize(1), 0), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(number / 256, (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 291 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((t__fuzz_19 OR x6 OR x7) OR (x8 OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toNullable(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((t__fuzz_19 OR x6 OR x7) OR (x8 OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toNullable(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_19' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((t__fuzz_19 OR x6 OR x7) OR (x8 OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toNullable(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 292 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % materialize(toUInt128(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 293 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(toUInt128(toUInt256(2)), (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(toUInt128(toUInt256(2)), (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(toUInt128(toUInt256(2)), (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 294 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), toUInt256(2), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR ((sum(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))), multiIf(in(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(toUInt128(2))) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), toUInt256(2), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR ((sum(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))), multiIf(in(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(toUInt128(2))) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (UInt256) of 2 argument of function xor: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), toUInt256(2), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR ((sum(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))), multiIf(in(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(toUInt128(2))) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d156b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 295 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x2) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % materialize(toLowCardinality(2))) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x2) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % materialize(toLowCardinality(2))) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x2) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % materialize(toLowCardinality(2))) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 296 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % materialize(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % materialize(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % materialize(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 297 out of 1000 SELECT xor(x1, x2, (sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x8 AND (x9 AND (x10 AND x11)), x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (r1 OR (and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, (sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x8 AND (x9 AND (x10 AND x11)), x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (r1 OR (and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT xor(x1, x2, (sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x8 AND (x9 AND (x10 AND x11)), x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (r1 OR (and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 298 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor((a >= 0) AND (b != materialize(100)) AND (c > 220), x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, (number / 4) % toLowCardinality(2), toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(sum(if((b != 100) AND (c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0))), toLowCardinality(1))), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor((a >= 0) AND (b != materialize(100)) AND (c > 220), x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, (number / 4) % toLowCardinality(2), toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(sum(if((b != 100) AND (c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0))), toLowCardinality(1))), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, (number / 4) % toLowCardinality(2), toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(sum(if((b != 100) AND (c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0))), toLowCardinality(1))), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 299 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, sum(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0)), x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR toUInt256(100) OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toUInt128(23))), toLowCardinality(toLowCardinality(toNullable(23)))), 23), currentDatabase(), t), number / 2, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, sum(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0)), x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR toUInt256(100) OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toUInt128(23))), toLowCardinality(toLowCardinality(toNullable(23)))), 23), currentDatabase(), t), number / 2, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 300 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR sum(if((b != 100) AND equals(c, toNullable(1), toNullable(0)), materialize(1), materialize(0))) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR sum(if((b != 100) AND equals(c, toNullable(1), toNullable(0)), materialize(1), materialize(0))) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR sum(if((b != 100) AND equals(c, toNullable(1), toNullable(0)), materialize(1), materialize(0))) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 301 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % toUInt256(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % toUInt256(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('xor'): xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 302 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR toUInt8((number / 8) % 2) OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toLowCardinality(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR toUInt8((number / 8) % 2) OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toLowCardinality(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toLowCardinality(1024)) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 303 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8(modulo(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR ((a >= toLowCardinality(0)) AND 1) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8(modulo(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR ((a >= toLowCardinality(0)) AND 1) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8(modulo(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 304 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(c = toUInt256(0), number, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(c = toUInt256(0), number, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(c = toUInt256(0), number, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 305 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(toNullable(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(toNullable(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(toNullable(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 306 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (if((b != 100) AND (c > 220), 1, 0) OR (x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (if((b != 100) AND (c > 220), 1, 0) OR (x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 307 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(toNullable(16)) % 2) AS x5, toUInt8(modulo(toUInt8((number / toNullable(4)) % toNullable(2)), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(toNullable(16)) % 2) AS x5, toUInt8(modulo(toUInt8((number / toNullable(4)) % toNullable(2)), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(toNullable(16)) % 2) AS x5, toUInt8(modulo(toUInt8((number / toNullable(4)) % toNullable(2)), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 308 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, (sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(1)), toLowCardinality(toUInt128(1))), materialize(0))) IGNORE NULLS / count()) * materialize(100), x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (((number / 8) % toUInt128(materialize(2))) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(toLowCardinality(toLowCardinality(toUInt128(23))), number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, (sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(1)), toLowCardinality(toUInt128(1))), materialize(0))) IGNORE NULLS / count()) * materialize(100), x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (((number / 8) % toUInt128(materialize(2))) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(toLowCardinality(toLowCardinality(toUInt128(23))), number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(toLowCardinality(toLowCardinality(toUInt128(23))), number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 309 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 310 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x4)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(toUInt128(4))) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 256) % toUInt256(2)) AS x9, toUInt8((number / 512) % toNullable(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x4)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(toUInt128(4))) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 256) % toUInt256(2)) AS x9, toUInt8((number / 512) % toNullable(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x8' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x4)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(toUInt128(4))) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 256) % toUInt256(2)) AS x9, toUInt8((number / 512) % toNullable(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 311 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(materialize(toNullable(toNullable(1))), x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toLowCardinality(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(materialize(toNullable(toNullable(1))), x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toLowCardinality(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(materialize(toNullable(toNullable(1))), x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toLowCardinality(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 26. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 312 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, c = toUInt128(toNullable(toLowCardinality(0))), x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, x4 OR x5, toUInt8(divide(64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toNullable(2048)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, c = toUInt128(toNullable(toLowCardinality(0))), x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, x4 OR x5, toUInt8(divide(64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toNullable(2048))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt16) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 313 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 314 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND (or(x3) OR (x4 OR x5)) AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt128(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR toFixedString('test_cluster_two_shards', 23, toNullable(toLowCardinality(23))) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND (or(x3) OR (x4 OR x5)) AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt128(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR toFixedString('test_cluster_two_shards', 23, toNullable(toLowCardinality(23))) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND (or(x3) OR (x4 OR x5)) AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt128(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR toFixedString('test_cluster_two_shards', 23, toNullable(toLowCardinality(23))) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 315 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / materialize(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / materialize(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / materialize(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 316 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x4)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), 23), 23), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x4)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), 23), 23), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), 23), 23), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 317 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (((and1 != and2) OR (or1 != or2)) OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, intDiv(toUInt32(test_alias__fuzz_37, rtime), 20) * materialize(1000), 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY toUInt8(divide(number, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(materialize(23))), currentDatabase(), t), materialize(2)) % 2), count(1) IGNORE NULLS, (number / 128) % 2 Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (((and1 != and2) OR (or1 != or2)) OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, intDiv(toUInt32(test_alias__fuzz_37, rtime), 20) * materialize(1000), 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY toUInt8(divide(number, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(materialize(23))), currentDatabase(), t), materialize(2)) % 2), count(1) IGNORE NULLS, (number / 128) % 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_37' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, intDiv(toUInt32(test_alias__fuzz_37, rtime), 20) * materialize(1000), 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 318 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 319 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(toFixedString('test_cluster_two_shards'), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(greaterOrEquals(0) AND (b != 100) AND (c > 220), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(toFixedString('test_cluster_two_shards'), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(greaterOrEquals(0) AND (b != 100) AND (c > 220), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(toFixedString('test_cluster_two_shards'), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(greaterOrEquals(0) AND (b != 100) AND (c > 220), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 320 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR 76 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(if((b != toNullable(100)) AND (c = toNullable(0)), 1, 0), number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE or(cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards')), 23), 23), currentDatabase(), t) OR (and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR 76 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(if((b != toNullable(100)) AND (c = toNullable(0)), 1, 0), number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or(cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards')), 23), 23), currentDatabase(), t) OR (and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(if((b != toNullable(100)) AND (c = toNullable(0)), 1, 0), number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 321 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((sum(if(1, materialize(toLowCardinality(0)))) IGNORE NULLS AND (x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, (a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4), toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((sum(if(1, materialize(toLowCardinality(0)))) IGNORE NULLS AND (x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, (a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4), toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, (a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4), toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 322 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(toNullable(toNullable(toUInt256(1))), x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, test_alias__fuzz_14, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), number / materialize(x1 OR x2 OR x3, toNullable(8)), 1, toLowCardinality(0)), (number / 512) % 2) AS x10, toUInt8(divide(number, materialize(toUInt256(toNullable(1))), 1024) % 2) AS x11 FROM numbers(toUInt256(2048)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(toNullable(toNullable(toUInt256(1))), x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, test_alias__fuzz_14, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), number / materialize(x1 OR x2 OR x3, toNullable(8)), 1, toLowCardinality(0)), (number / 512) % 2) AS x10, toUInt8(divide(number, materialize(toUInt256(toNullable(1))), 1024) % 2) AS x11 FROM numbers(toUInt256(2048))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type UInt256 expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 323 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, test_alias__fuzz_0, 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, test_alias__fuzz_0, 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_0' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, test_alias__fuzz_0, 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 324 out of 1000 SELECT xor(x1, x2, x3, number / 2, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo((intDiv(toUInt32(rtime), toNullable(number / materialize(materialize(toUInt128(2))), multiply(toLowCardinality(1000) AND x3 AND x4, sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS, toNullable(100)), 20)) * 20) * 1000, number / 64, 2)) AS x7, toUInt8(divide(16, number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toNullable(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, number / 2, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo((intDiv(toUInt32(rtime), toNullable(number / materialize(materialize(toUInt128(2))), multiply(toLowCardinality(1000) AND x3 AND x4, sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS, toNullable(100)), 20)) * 20) * 1000, number / 64, 2)) AS x7, toUInt8(divide(16, number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toNullable(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo((intDiv(toUInt32(rtime), toNullable(number / materialize(materialize(toUInt128(2))), multiply(toLowCardinality(1000) AND x3 AND x4, sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS, toNullable(100)), 20)) * 20) * 1000, number / 64, 2)) AS x7, toUInt8(divide(16, number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toNullable(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 325 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR ((intDiv(toUInt32(rtime), 20) * 20) * 1000) OR x11))))) AS or2, x1 AND toFixedString('2022-01-01', 10) AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(toLowCardinality(toNullable(toNullable(0))) AND 1000 AND x3 AND x4, number, 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 64, number / 128, toNullable(2))) AS x8, toUInt8(version_pair[toLowCardinality(materialize(1))], (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR ((intDiv(toUInt32(rtime), 20) * 20) * 1000) OR x11))))) AS or2, x1 AND toFixedString('2022-01-01', 10) AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(toLowCardinality(toNullable(toNullable(0))) AND 1000 AND x3 AND x4, number, 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 64, number / 128, toNullable(2))) AS x8, toUInt8(version_pair[toLowCardinality(materialize(1))], (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x4' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(toLowCardinality(toNullable(toNullable(0))) AND 1000 AND x3 AND x4, number, 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 64, number / 128, toNullable(2))) AS x8, toUInt8(version_pair[toLowCardinality(materialize(1))], (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Maybe you meant: ['x4']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 326 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR ((b != 100) AND (c = toNullable(0))) OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY x8 OR (x9 OR (x10 OR x11)), (a >= materialize(0)) AND (b != 100) AND equals(c), count(materialize(1)) IGNORE NULLS, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23, currentDatabase(), t) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR ((b != 100) AND (c = toNullable(0))) OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY x8 OR (x9 OR (x10 OR x11)), (a >= materialize(0)) AND (b != 100) AND equals(c), count(materialize(1)) IGNORE NULLS, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23, currentDatabase(), t)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY x8 OR (x9 OR (x10 OR x11)), (a >= materialize(0)) AND (b != 100) AND equals(c), count(materialize(1)) IGNORE NULLS, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23, currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 327 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 328 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23)), 23), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(toLowCardinality(10), number / 1024, 2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23)), 23), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(toLowCardinality(10), number / 1024, 2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt8(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23)), 23), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(toLowCardinality(10), number / 1024, 2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 329 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toLowCardinality(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 330 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, (b != toNullable(toLowCardinality(toNullable(100)))) AND equals(c), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals(xor1) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, (b != toNullable(toLowCardinality(toNullable(100)))) AND equals(c), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(xor1) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, (b != toNullable(toLowCardinality(toNullable(100)))) AND equals(c), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 331 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / materialize(toNullable(64)), toUInt8(sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0)), (number / 8) % toUInt128(materialize('test_cluster_two_shards', 2))), 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE if((a >= materialize(0)) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / materialize(toNullable(64)), toUInt8(sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0)), (number / 8) % toUInt128(materialize('test_cluster_two_shards', 2))), 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE if((a >= materialize(0)) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / materialize(toNullable(64)), toUInt8(sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0)), (number / 8) % toUInt128(materialize('test_cluster_two_shards', 2))), 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 332 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (toFixedString(' ', toUInt128(1)) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (toFixedString(' ', toUInt128(1)) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (toFixedString(' ', toUInt128(1)) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 333 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32, (x1 AND x2) AND (toLowCardinality(0) AND toLowCardinality(1000) AND x3 AND x4), 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE sum(if((a >= 0) AND (b != 100) AND (c = toUInt128(0)), 1, 0)) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32, (x1 AND x2) AND (toLowCardinality(0) AND toLowCardinality(1000) AND x3 AND x4), 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE sum(if((a >= 0) AND (b != 100) AND (c = toUInt128(0)), 1, 0)) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32, (x1 AND x2) AND (toLowCardinality(0) AND toLowCardinality(1000) AND x3 AND x4), 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 334 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((number / toLowCardinality(8)) OR (and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((number / toLowCardinality(8)) OR (and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((number / toLowCardinality(8)) OR (and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 335 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, number % 2, 2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, number % 2, 2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, number % 2, 2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 336 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 337 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE or((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 338 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(toNullable(materialize(1000)), x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor((xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)), xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((toUInt256(220) OR x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() RESPECT NULLS, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toNullable(2048)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(toNullable(materialize(1000)), x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor((xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)), xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((toUInt256(220) OR x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() RESPECT NULLS, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toNullable(2048))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt16) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 339 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND ((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() RESPECT NULLS) * 100) AND x3) AND (if((b != 100) AND (c = 0), 1, 0) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE number / 8 ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND ((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() RESPECT NULLS) * 100) AND x3) AND (if((b != 100) AND (c = 0), 1, 0) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE number / 8) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND ((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() RESPECT NULLS) * 100) AND x3) AND (if((b != 100) AND (c = 0), 1, 0) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE number / 8) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 31. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 Fuzzing step 340 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(x1) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(greaterOrEquals(a, toUInt256(toNullable(1)), 0) AND 1, number, 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE (number / 4) % toNullable(2) WHERE or((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(x1) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(greaterOrEquals(a, toUInt256(toNullable(1)), 0) AND 1, number, 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE (number / 4) % toNullable(2) WHERE or((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(greaterOrEquals(a, toUInt256(toNullable(1)), 0) AND 1, number, 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 341 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 342 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((nums__fuzz_17 AND x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR toUInt8((number / 1024) % 2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((nums__fuzz_17 AND x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR toUInt8((number / 1024) % 2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 343 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23, 23), toLowCardinality(23)), xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % materialize(toUInt256(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, (number / materialize(materialize(toUInt128(2)))) % 2, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23, 23), toLowCardinality(23)), xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % materialize(toUInt256(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, (number / materialize(materialize(toUInt128(2)))) % 2, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % materialize(toUInt256(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, (number / materialize(materialize(toUInt128(2)))) % 2, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 344 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (((a >= materialize(0)) AND (b != toLowCardinality(100)) AND (c = 0)) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(toLowCardinality(1024))) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (((a >= materialize(0)) AND (b != toLowCardinality(100)) AND (c = 0)) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(toLowCardinality(1024))) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (((a >= materialize(0)) AND (b != toLowCardinality(100)) AND (c = 0)) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(toLowCardinality(1024))) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 345 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR 23 OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, x3 AND x4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(toUInt128(128))) % 2) AS x8, toUInt8(divide(number, toUInt256(materialize(toLowCardinality(toUInt128(1)))), 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toNullable(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR 23 OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, x3 AND x4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(toUInt128(128))) % 2) AS x8, toUInt8(divide(number, toUInt256(materialize(toLowCardinality(toUInt128(1)))), 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toNullable(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x3' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, x3 AND x4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(toUInt128(128))) % 2) AS x8, toUInt8(divide(number, toUInt256(materialize(toLowCardinality(toUInt128(1)))), 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toNullable(2)) AS x11 FROM numbers(2048). Maybe you meant: ['x3']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 346 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 347 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND (((intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000))) AND x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(toFixedString(toLowCardinality(toFixedString(' ', 1)), 1), number / 16, 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND (((intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000))) AND x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(toFixedString(toLowCardinality(toFixedString(' ', 1)), 1), number / 16, 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(toFixedString(toLowCardinality(toFixedString(' ', 1)), 1), number / 16, 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 348 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), number / 64, xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, xor(xor(x2, x3), xor(x4, x5)), 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt256(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), number / 64, xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, xor(xor(x2, x3), xor(x4, x5)), 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt256(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, xor(xor(x2, x3), xor(x4, x5)), 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt256(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 349 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), toLowCardinality(1000) AND x3 AND x4, xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0) AND x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), toLowCardinality(1000) AND x3 AND x4, xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0) AND x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), toLowCardinality(1000) AND x3 AND x4, xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0) AND x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 350 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 351 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR ((version_pair[1]) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 8) % toUInt128(2)), toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR ((version_pair[1]) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 8) % toUInt128(2)), toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR ((version_pair[1]) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 8) % toUInt128(2)), toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 352 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), 23, currentDatabase(), t), xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, 3, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) Error on processing query 'EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), 23, currentDatabase(), t), xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, 3, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, 3, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 28. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 29. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 353 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, number / toNullable(2), x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (sum(if(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS AND (b != 100) AND (c = materialize(0)), 1, toUInt128(0))) AND (x6 AND x7) AND (x8 AND and(x9)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(materialize(toNullable(1)) AND x1 AND x2 AND x3 AND x4, (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, number / toNullable(2), x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (sum(if(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS AND (b != 100) AND (c = materialize(0)), 1, toUInt128(0))) AND (x6 AND x7) AND (x8 AND and(x9)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(materialize(toNullable(1)) AND x1 AND x2 AND x3 AND x4, (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(materialize(toNullable(1)) AND x1 AND x2 AND x3 AND x4, (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000087714ea 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 354 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, 1 AND (c > 220), x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(t__fuzz_19, (number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt128(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY c = toUInt256(0), multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, 1 AND (c > 220), x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(t__fuzz_19, (number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt128(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY c = toUInt256(0), multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_19' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(t__fuzz_19, (number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt128(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY c = toUInt256(0), multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 355 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE sum(t__fuzz_41, if(notEquals(intDiv(toUInt32(rtime), toUInt256(20)) * materialize(1000), b, 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE sum(t__fuzz_41, if(notEquals(intDiv(toUInt32(rtime), toUInt256(20)) * materialize(1000), b, 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE sum(t__fuzz_41, if(notEquals(intDiv(toUInt32(rtime), toUInt256(20)) * materialize(1000), b, 100) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 356 out of 1000 EXPLAIN indexes = true, optimize = true, json = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR toFixedString(toNullable('test_cluster_two_shards'), 23) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN indexes = true, optimize = true, json = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR toFixedString(toNullable('test_cluster_two_shards'), 23) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "indexes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496cdff 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 357 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS, number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS, number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS, number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 358 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(if((a >= 0) AND notEquals(b) AND (c > toUInt256(220)), 1, 0), number, 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(if((a >= 0) AND notEquals(b) AND (c > toUInt256(220)), 1, 0), number, 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(modulo(if((a >= 0) AND notEquals(b) AND (c > toUInt256(220)), 1, 0), number, 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 359 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x6) AND and(x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(sum(multiIf(s IN ('a', 'b'), 1, 0))) * 100, (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x6) AND and(x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(sum(multiIf(s IN ('a', 'b'), 1, 0))) * 100, (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(sum(multiIf(s IN ('a', 'b'), 1, 0))) * 100, (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 360 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toUInt128(2)) AS x5, toUInt8(toLowCardinality(2), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toUInt128(2)) AS x5, toUInt8(toLowCardinality(2), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toUInt128(2)) AS x5, toUInt8(toLowCardinality(2), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 361 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((((divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) % 2) OR x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((((divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) % 2) OR x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((((divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) % 2) OR x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 362 out of 1000 SELECT xor(x1, x2, toFixedString('test_cluster_two_shards', 23), x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR toNullable(2) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))), (number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toLowCardinality(2048)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, toFixedString('test_cluster_two_shards', 23), x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR toNullable(2) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))), (number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toLowCardinality(2048))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt16) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 363 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(toLowCardinality(materialize(2)), x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND if((b != 100) AND (c > 220), 1, toNullable(0)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo((intDiv(toUInt32(rtime), toNullable(20)) * 20) * toNullable(1000), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(toLowCardinality(materialize(2)), x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND if((b != 100) AND (c > 220), 1, toNullable(0)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo((intDiv(toUInt32(rtime), toNullable(20)) * 20) * toNullable(1000), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo((intDiv(toUInt32(rtime), toNullable(20)) * 20) * toNullable(1000), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 364 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR ((divide(number, toLowCardinality(0), toUInt256(8)) % 2) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % materialize(toLowCardinality(2))) AS x5, toUInt8((number / 32) % toLowCardinality(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR sum(if((a >= 0) AND toNullable(1), 1, 0)) IGNORE NULLS OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR ((divide(number, toLowCardinality(0), toUInt256(8)) % 2) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % materialize(toLowCardinality(2))) AS x5, toUInt8((number / 32) % toLowCardinality(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR sum(if((a >= 0) AND toNullable(1), 1, 0)) IGNORE NULLS OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR ((divide(number, toLowCardinality(0), toUInt256(8)) % 2) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % materialize(toLowCardinality(2))) AS x5, toUInt8((number / 32) % toLowCardinality(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR sum(if((a >= 0) AND toNullable(1), 1, 0)) IGNORE NULLS OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 365 out of 1000 EXPLAIN optimize = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(t__fuzz_40, number, 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0), 2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN optimize = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(t__fuzz_40, number, 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0), 2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "optimize" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496cdff 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 366 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % toLowCardinality(toUInt256(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 367 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR toLowCardinality(toUInt256(1)) OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((number / 2) % 2) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(multiIf(s IN ('a', 'b'), 1, 0), modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))), toUInt8(divide((a >= 0) AND (b != 100) AND (c > 220), number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR toLowCardinality(toUInt256(1)) OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((number / 2) % 2) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(multiIf(s IN ('a', 'b'), 1, 0), modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))), toUInt8(divide((a >= 0) AND (b != 100) AND (c > 220), number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(multiIf(s IN ('a', 'b'), 1, 0), modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))), toUInt8(divide((a >= 0) AND (b != 100) AND (c > 220), number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 368 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(toLowCardinality(materialize(materialize(toLowCardinality(1)))), x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt256(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 369 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number, (number / 64) % 2, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2048, number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number, (number / 64) % 2, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2048, number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number, (number / 64) % 2, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2048, number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 370 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(x8 AND (x9 AND (x10 AND x11)), xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(toLowCardinality(2))) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 371 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(materialize(8), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(materialize(8), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(materialize(8), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 372 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, toUInt256(materialize(toLowCardinality(toUInt128(1)))), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(xor(x10, x11)))))) AS xor2, (number / toLowCardinality(4)) % 2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, toUInt256(materialize(toLowCardinality(toUInt128(1)))), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(xor(x10, x11)))))) AS xor2, (number / toLowCardinality(4)) % 2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, toUInt256(materialize(toLowCardinality(toUInt128(1)))), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(xor(x10, x11)))))) AS xor2, (number / toLowCardinality(4)) % 2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 26. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 373 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR or(and1 != and2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(and1 != and2)': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(and1 != and2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 374 out of 1000 EXPLAIN PIPELINE compact = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(x9, number / 4, 2)) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals(number / 2, xor1, xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(x9, number / 4, 2)) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(number / 2, xor1, xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 375 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x10))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toUInt256(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x10))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toUInt256(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 376 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x4)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(toNullable(toUInt128(1024)))) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals((number / 512) % 2, and1, and2) OR notEquals((sum(multiIf(s IN ('a', 'b'), materialize(toNullable(1)), 0)) IGNORE NULLS / count()) * 100, or1, or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x4)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(toNullable(toUInt128(1024)))) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals((number / 512) % 2, and1, and2) OR notEquals((sum(multiIf(s IN ('a', 'b'), materialize(toNullable(1)), 0)) IGNORE NULLS / count()) * 100, or1, or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x4)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(toNullable(toUInt128(1024)))) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals((number / 512) % 2, and1, and2) OR notEquals((sum(multiIf(s IN ('a', 'b'), materialize(toNullable(1)), 0)) IGNORE NULLS / count()) * 100, or1, or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 377 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % materialize(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % materialize(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % materialize(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 26. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 378 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), Memory, 1, materialize(0)), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), Memory, 1, materialize(0)), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), Memory, 1, materialize(0)), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 379 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR cluster(toFixedString(toFixedString(toLowCardinality(toUInt128(23))), 23), currentDatabase(), t) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % materialize(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR cluster(toFixedString(toFixedString(toLowCardinality(toUInt128(23))), 23), currentDatabase(), t) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % materialize(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR cluster(toFixedString(toFixedString(toLowCardinality(toUInt128(23))), 23), currentDatabase(), t) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % materialize(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 380 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 381 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toUInt128(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 382 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (t__fuzz_27 AND ((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (t__fuzz_27 AND ((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 383 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (a >= toLowCardinality(0)) OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(xor(x1, x2, x3, x4), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toUInt256(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (a >= toLowCardinality(0)) OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(xor(x1, x2, x3, x4), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toUInt256(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x4' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(xor(x1, x2, x3, x4), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toUInt256(2)) AS x11 FROM numbers(2048). Maybe you meant: ['x4']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 384 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(t__fuzz_8, x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), toUInt128(100))) AND 1 AND (c > 220), toUInt128(1), 0)) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), number, materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(t__fuzz_8, x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), toUInt128(100))) AND 1 AND (c > 220), toUInt128(1), 0)) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), number, materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), number, materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 385 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(sum(if((a >= 0) AND (b != 100) AND equals(c, toLowCardinality(1), 0), 1, 0)) IGNORE NULLS, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(sum(if((a >= 0) AND (b != 100) AND equals(c, toLowCardinality(1), 0), 1, 0)) IGNORE NULLS, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(sum(if((a >= 0) AND (b != 100) AND equals(c, toLowCardinality(1), 0), 1, 0)) IGNORE NULLS, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 386 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), toNullable(23)) AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND t__fuzz_46 AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), toNullable(23)) AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND t__fuzz_46 AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (Nullable(FixedString(23))) of 9 argument of function and: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), toNullable(23)) AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND t__fuzz_46 AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0d0e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 387 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND sum(if((b != 100) AND equals(c, (a >= toNullable(0)) AND (b != materialize(100)) AND (c > 220), 0), materialize(toNullable(1)), 0)) IGNORE NULLS AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toNullable(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(toFixedString('test_cluster_two_shards', 23, 23), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND sum(if((b != 100) AND equals(c, (a >= toNullable(0)) AND (b != materialize(100)) AND (c > 220), 0), materialize(toNullable(1)), 0)) IGNORE NULLS AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toNullable(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(toFixedString('test_cluster_two_shards', 23, 23), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toNullable(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(toFixedString('test_cluster_two_shards', 23, 23), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 388 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(toLowCardinality(10), number, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(toLowCardinality(10), number, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(toLowCardinality(10), number, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 389 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 390 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS) * 100, materialize(2)) % 2) AS x2, toUInt8(divide(number, (number / toLowCardinality(8)) % toUInt128(2), 4) % 2) AS x3, toUInt8(modulo(if((b != materialize(toLowCardinality(100))) AND (c = 0), toNullable(1), materialize(toLowCardinality(0))), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(toNullable(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt256(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE t__fuzz_12 ) WHERE (xor1 != xor2) OR s OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS) * 100, materialize(2)) % 2) AS x2, toUInt8(divide(number, (number / toLowCardinality(8)) % toUInt128(2), 4) % 2) AS x3, toUInt8(modulo(if((b != materialize(toLowCardinality(100))) AND (c = 0), toNullable(1), materialize(toLowCardinality(0))), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(toNullable(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt256(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE t__fuzz_12) WHERE (xor1 != xor2) OR s OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS) * 100, materialize(2)) % 2) AS x2, toUInt8(divide(number, (number / toLowCardinality(8)) % toUInt128(2), 4) % 2) AS x3, toUInt8(modulo(if((b != materialize(toLowCardinality(100))) AND (c = 0), toNullable(1), materialize(toLowCardinality(0))), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(toNullable(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt256(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE t__fuzz_12. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 31. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 Fuzzing step 391 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32)) AS x6, toUInt8(divide(number, sum(if((b != 100) AND (c > 220), 1, toNullable(0))) IGNORE NULLS, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048) PREWHERE if(day = '2022-01-01', toLowCardinality(10), (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32)) AS x6, toUInt8(divide(number, sum(if((b != 100) AND (c > 220), 1, toNullable(0))) IGNORE NULLS, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048) PREWHERE if(day = '2022-01-01', toLowCardinality(10), (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32)) AS x6, toUInt8(divide(number, sum(if((b != 100) AND (c > 220), 1, toNullable(0))) IGNORE NULLS, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048) PREWHERE if(day = '2022-01-01', toLowCardinality(10), (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 392 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 393 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'or2' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Maybe you meant: ['xor2']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 394 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND ((b != 100) AND (c > 220)) AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, toUInt8((number / toUInt128(4)) % toUInt256(2)), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128, (number / toUInt256(2)) % 2, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND ((b != 100) AND (c > 220)) AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, toUInt8((number / toUInt128(4)) % toUInt256(2)), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128, (number / toUInt256(2)) % 2, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, toUInt8((number / toUInt128(4)) % toUInt256(2)), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128, (number / toUInt256(2)) % 2, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 395 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND and2 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND and2 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 396 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toUInt128(2048)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toUInt128(2048))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type UInt128 expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 397 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(8, (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048) ) WHERE notEquals(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t), xor1, xor2) OR or(and1 != and2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(8, (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048)) WHERE notEquals(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t), xor1, xor2) OR or(and1 != and2)': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(8, (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 398 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR ((number / materialize(materialize(toUInt128(2)))) % 2) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x6) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, x7, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR ((number / materialize(materialize(toUInt128(2)))) % 2) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x6) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, x7, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x7' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, x7, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Maybe you meant: ['x7']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 399 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, toLowCardinality(0))) IGNORE NULLS % number) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(toUInt128(512))) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, toLowCardinality(0))) IGNORE NULLS % number) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(toUInt128(512))) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, toLowCardinality(0))) IGNORE NULLS % number) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(toUInt128(512))) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 400 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, test_alias__fuzz_28, or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, test_alias__fuzz_28, or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_28' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, test_alias__fuzz_28, or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 401 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR t__fuzz_22 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)), 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE if((a >= toLowCardinality(0)) AND 1, 1, 0) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR t__fuzz_22 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)), 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE if((a >= toLowCardinality(0)) AND 1, 1, 0) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)), 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 402 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(toNullable(2))) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(divide(number))) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(toNullable(toLowCardinality(' ')), and1, and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(toNullable(2))) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(divide(number))) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(toNullable(toLowCardinality(' ')), and1, and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 403 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(8, number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(number / 64, (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toUInt128(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE c = toNullable(0) WHERE (xor1 != xor2) OR (notEquals(and1, toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(8, number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(number / 64, (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toUInt128(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE c = toNullable(0) WHERE (xor1 != xor2) OR (notEquals(and1, toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(8, number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(number / 64, (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toUInt128(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 404 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and1) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and1) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and1) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 405 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toNullable(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and1, (a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toLowCardinality(0))), and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toNullable(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and1, (a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toLowCardinality(0))), and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toNullable(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and1, (a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toLowCardinality(0))), and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 406 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(23, (number / 8) % materialize(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR or(or1 != or2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(23, (number / 8) % materialize(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(or1 != or2)': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(23, (number / 8) % materialize(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 407 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((sum(if((a >= 0) AND 1 AND (c > 220), toUInt256(1), 0)) OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((sum(if((a >= 0) AND 1 AND (c > 220), toUInt256(1), 0)) OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 408 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(materialize(materialize(toNullable(1))), x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or((or(x2) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(t__fuzz_25, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(round((sum(multiIf(in(s, toFixedString(toFixedString('test_cluster_two_shards', 23), 23), ('a', 'b')), toUInt128(1), 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(toUInt256(512))) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0), toUInt8((number / toUInt256(4)) % 2), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(23)))) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(materialize(materialize(toNullable(1))), x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or((or(x2) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(t__fuzz_25, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(round((sum(multiIf(in(s, toFixedString(toFixedString('test_cluster_two_shards', 23), 23), ('a', 'b')), toUInt128(1), 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(toUInt256(512))) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0), toUInt8((number / toUInt256(4)) % 2), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(23))))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_25' in scope SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(t__fuzz_25, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(round((sum(multiIf(in(s, toFixedString(toFixedString('test_cluster_two_shards', 23), 23), ('a', 'b')), toUInt128(1), 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(toUInt256(512))) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0), toUInt8((number / toUInt256(4)) % 2), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(23)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 409 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo((x1 AND x2) AND (x3 AND x4), number / toLowCardinality(64), 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo((x1 AND x2) AND (x3 AND x4), number / toLowCardinality(64), 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo((x1 AND x2) AND (x3 AND x4), number / toLowCardinality(64), 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 410 out of 1000 SELECT xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR 1024 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(x8 AND (x9 AND (x10 AND x11)), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR 1024 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(x8 AND (x9 AND (x10 AND x11)), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(x8 AND (x9 AND (x10 AND x11)), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 411 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x2 AND x3) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 256, number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, x10 OR x11, or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x2 AND x3) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 256, number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, x10 OR x11, or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 256, number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 412 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(toUInt128(32))) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8(r1 * toLowCardinality(100), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toNullable(2048)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(toUInt128(32))) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8(r1 * toLowCardinality(100), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toNullable(2048))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt16) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 413 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(multiply(intDiv(toUInt32(rtime), 20)), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(multiply(intDiv(toUInt32(rtime), 20)), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(multiply(intDiv(toUInt32(rtime), 20)), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 414 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(toUInt256(8))) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(toLowCardinality('test_cluster_two_shards'), (number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY sum(if((a >= 0) AND (b != 100) AND equals(c, toLowCardinality(1), 0), 1, 0)) IGNORE NULLS ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(toUInt256(8))) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(toLowCardinality('test_cluster_two_shards'), (number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY sum(if((a >= 0) AND (b != 100) AND equals(c, toLowCardinality(1), 0), 1, 0)) IGNORE NULLS) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(toUInt256(8))) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(toLowCardinality('test_cluster_two_shards'), (number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY sum(if((a >= 0) AND (b != 100) AND equals(c, toLowCardinality(1), 0), 1, 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 415 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 416 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE round((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE round((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE round((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 417 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % materialize(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % materialize(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'or2' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % materialize(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Maybe you meant: ['xor2']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 418 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt128(512)) % 2) AS x10, toUInt8(toNullable(toLowCardinality(1000)), (number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR 512 OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt128(512)) % 2) AS x10, toUInt8(toNullable(toLowCardinality(1000)), (number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR 512 OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt128(512)) % 2) AS x10, toUInt8(toNullable(toLowCardinality(1000)), (number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000087714ea 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 419 out of 1000 SELECT xor(sum(multiIf(in(cluster('test_cluster_two_shards', currentDatabase(), t), s, ('a', 'b')), 0)) IGNORE NULLS / count() IGNORE NULLS, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(toUInt256(nums__fuzz_31, toNullable(23)), x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, materialize(0))) OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % toNullable(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(toNullable(toLowCardinality(1)), number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE r1 * materialize(100) ) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(sum(multiIf(in(cluster('test_cluster_two_shards', currentDatabase(), t), s, ('a', 'b')), 0)) IGNORE NULLS / count() IGNORE NULLS, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(toUInt256(nums__fuzz_31, toNullable(23)), x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, materialize(0))) OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % toNullable(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(toNullable(toLowCardinality(1)), number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE r1 * materialize(100)) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % toNullable(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(toNullable(toLowCardinality(1)), number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE r1 * materialize(100). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 420 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((toNullable('2022-01-01') OR x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS, (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11, (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((toNullable('2022-01-01') OR x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS, (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11, (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS, (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11, (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 421 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / materialize(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / materialize(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / materialize(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 422 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, toNullable('2022-01-01') OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000) AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, toNullable('2022-01-01') OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000) AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (Nullable(String)) of 1 argument of function or: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, toNullable('2022-01-01') OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000) AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8a2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 423 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 424 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(sum(if((a >= toLowCardinality(0)) AND notEquals(b) AND (c = 0), 1, 0)) RESPECT NULLS, number / 1024, 2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(sum(if((a >= toLowCardinality(0)) AND notEquals(b) AND (c = 0), 1, 0)) RESPECT NULLS, number / 1024, 2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(sum(if((a >= toLowCardinality(0)) AND notEquals(b) AND (c = 0), 1, 0)) RESPECT NULLS, number / 1024, 2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 425 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND toNullable(materialize(toNullable(1))) AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt128(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and1) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND toNullable(materialize(toNullable(1))) AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt128(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and1) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt128(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 426 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, (intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000) AND x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE or(notEquals(toUInt8((number / 2) % 2), xor1, xor2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, (intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000) AND x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or(notEquals(toUInt8((number / 2) % 2), xor1, xor2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, (intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000) AND x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or(notEquals(toUInt8((number / 2) % 2), xor1, xor2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 427 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt128(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt128(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt128(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 428 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % materialize(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 429 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (nums__fuzz_21 OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt128(2)) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toUInt128(2)) AS x8, toUInt8(divide(number, materialize(materialize(toLowCardinality(1))), 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toUInt256(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (nums__fuzz_21 OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt128(2)) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toUInt128(2)) AS x8, toUInt8(divide(number, materialize(materialize(toLowCardinality(1))), 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toUInt256(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt128(2)) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toUInt128(2)) AS x8, toUInt8(divide(number, materialize(materialize(toLowCardinality(1))), 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toUInt256(1024)) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 430 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(materialize(materialize(toUInt128(1000))), number % 2) AS x1, toUInt8(divide(2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM (SELECT toUInt8(materialize(materialize(toUInt128(1000))), number % 2) AS x1, toUInt8(divide(2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(materialize(materialize(toUInt128(1000))), number % 2) AS x1, toUInt8(divide(2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 431 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)) OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR ((number / toUInt128(4)) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((t__fuzz_12 AND (x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8(modulo(number / 8, sum(multiIf(s IN ('a', 'b'), materialize(cluster(currentDatabase(), test_alias), toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS, 2)) AS x4, toUInt8(b != 100, (number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY (number / toLowCardinality(toNullable(toUInt256(2)))) % 2, if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)) OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR ((number / toUInt128(4)) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((t__fuzz_12 AND (x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8(modulo(number / 8, sum(multiIf(s IN ('a', 'b'), materialize(cluster(currentDatabase(), test_alias), toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS, 2)) AS x4, toUInt8(b != 100, (number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY (number / toLowCardinality(toNullable(toUInt256(2)))) % 2, if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8(modulo(number / 8, sum(multiIf(s IN ('a', 'b'), materialize(cluster(currentDatabase(), test_alias), toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS, 2)) AS x4, toUInt8(b != 100, (number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 432 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (multiIf(s IN ('a', 'b'), toLowCardinality(1), 0) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(toLowCardinality(2))) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (multiIf(s IN ('a', 'b'), toLowCardinality(1), 0) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(toLowCardinality(2))) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(toLowCardinality(2))) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 433 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (if((a >= 0) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), toNullable(toUInt256(23)), 0) AND (x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(materialize(materialize(toUInt128(1000))), (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE or(xor1 != xor2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (if((a >= 0) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), toNullable(toUInt256(23)), 0) AND (x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(materialize(materialize(toUInt128(1000))), (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or(xor1 != xor2)': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(materialize(materialize(toUInt128(1000))), (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 434 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR toFixedString(toFixedString('test_cluster_two_shards'), toLowCardinality(23)) OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128)) AS x8, toUInt8(divide(number, sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0)), 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR toFixedString(toFixedString('test_cluster_two_shards'), toLowCardinality(23)) OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128)) AS x8, toUInt8(divide(number, sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0)), 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128)) AS x8, toUInt8(divide(number, sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0)), 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 435 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), toNullable(toLowCardinality(1)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, sum(if(greaterOrEquals(toFixedString(materialize(toLowCardinality(' ')), 1), a, toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS, 4) % 2) AS x3, toUInt8((number / 8) % materialize(2)) AS x4, toUInt8((number / toUInt256(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), toNullable(toLowCardinality(1)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, sum(if(greaterOrEquals(toFixedString(materialize(toLowCardinality(' ')), 1), a, toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS, 4) % 2) AS x3, toUInt8((number / 8) % materialize(2)) AS x4, toUInt8((number / toUInt256(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, sum(if(greaterOrEquals(toFixedString(materialize(toLowCardinality(' ')), 1), a, toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS, 4) % 2) AS x3, toUInt8((number / 8) % materialize(2)) AS x4, toUInt8((number / toUInt256(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 436 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0)) OR x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(23), materialize(toNullable(23))), toNullable(100)) AND (c = 0), 1, 0) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(toNullable(8))) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(divide(number, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)), 8) % toUInt128(2), number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0)) OR x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(23), materialize(toNullable(23))), toNullable(100)) AND (c = 0), 1, 0) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(toNullable(8))) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(divide(number, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)), 8) % toUInt128(2), number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(toNullable(8))) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(divide(number, sum(if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)), 8) % toUInt128(2), number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 437 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(toUInt8((number / 8) % 2), xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, toLowCardinality(8), xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(toUInt8((number / 8) % 2), xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, toLowCardinality(8), xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(toUInt8((number / 8) % 2), xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, toLowCardinality(8), xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 438 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt256(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY toUInt256(23), round((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100), sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, 0)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt256(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY toUInt256(23), round((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100), sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, 0))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt256(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY toUInt256(23), round((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100), sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, 0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 439 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(toUInt256(2))) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8((number / 16) % materialize(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((materialize(toLowCardinality(1)) / number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY round(materialize(toLowCardinality(toFixedString(' '))), (sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100), round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * materialize(toLowCardinality(toFixedString(materialize(' '), toNullable(1)))), 100), sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)), sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(toUInt256(2))) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8((number / 16) % materialize(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((materialize(toLowCardinality(1)) / number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY round(materialize(toLowCardinality(toFixedString(' '))), (sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100), round((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * materialize(toLowCardinality(toFixedString(materialize(' '), toNullable(1)))), 100), sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)), sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(toUInt256(2))) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8((number / 16) % materialize(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((materialize(toLowCardinality(1)) / number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 440 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, toUInt8((number / 8) % toUInt128(2)), x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(sum(multiIf(in(('a', 'b')), materialize(1), materialize(0))) IGNORE NULLS / count() IGNORE NULLS, (number / 512) % 2) AS x10, toUInt8(divide(number, toUInt8((number / 1024) % toLowCardinality(2)), 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, toUInt8((number / 8) % toUInt128(2)), x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(sum(multiIf(in(('a', 'b')), materialize(1), materialize(0))) IGNORE NULLS / count() IGNORE NULLS, (number / 512) % 2) AS x10, toUInt8(divide(number, toUInt8((number / 1024) % toLowCardinality(2)), 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Function 'in' expects 2 arguments. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2859: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b788a 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 22. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 441 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 442 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, if((a >= 0) AND greater(c), 1, toLowCardinality('test_cluster_two_shards'), 23, 0), 2)) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toLowCardinality(toNullable(2048))) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, if((a >= 0) AND greater(c), 1, toLowCardinality('test_cluster_two_shards'), 23, 0), 2)) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toLowCardinality(toNullable(2048)))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Nullable(UInt16)) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 20. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 21. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 443 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((b != toLowCardinality(100)) AND greater(c), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((b != toLowCardinality(100)) AND greater(c), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((b != toLowCardinality(100)) AND greater(c), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 444 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0))), toLowCardinality(1), 0)), number / 16, 2)) AS x5, toUInt8(modulo((number / toUInt256(8)) % materialize(toNullable(toUInt128(2))), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0))), toLowCardinality(1), 0)), number / 16, 2)) AS x5, toUInt8(modulo((number / toUInt256(8)) % materialize(toNullable(toUInt128(2))), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0))), toLowCardinality(1), 0)), number / 16, 2)) AS x5, toUInt8(modulo((number / toUInt256(8)) % materialize(toNullable(toUInt128(2))), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 445 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR toLowCardinality(materialize(1)) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(100) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR toLowCardinality(materialize(1)) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(100)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Column number is not under aggregate function and not in GROUP BY keys. In query SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(100). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 9. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 10. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033593a48 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 446 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt128(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt128(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt128(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 447 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AND x11))))) AS and2 FROM ( SELECT toUInt8(number % materialize(2)) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(toUInt256(8))) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt128(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) AND x11))))) AS and2 FROM (SELECT toUInt8(number % materialize(2)) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(toUInt256(8))) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt128(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % materialize(2)) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(toUInt256(8))) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt128(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 448 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, toUInt256(1000), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, toUInt256(1000), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, toUInt256(1000), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 449 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x6' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 450 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, (a >= 0) AND (b != 100) AND 1 AND (c > 220), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, materialize(0)), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8(modulo(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, (a >= 0) AND (b != 100) AND 1 AND (c > 220), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, materialize(0)), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8(modulo(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8(modulo(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 451 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(if((b != 100) AND (c = 0), materialize(toNullable(toUInt128(1))), 0), xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(if((b != 100) AND (c = 0), materialize(toNullable(toUInt128(1))), 0), xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 452 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR (number / materialize(2)) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR (number / materialize(2)) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR (number / materialize(2)) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 453 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(number, (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(number, (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(number, (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 454 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(2)) AS x7, toUInt8(modulo(number / 128, toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(divide(number, toLowCardinality(toNullable('test_cluster_two_shards')), 512))) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(2)) AS x7, toUInt8(modulo(number / 128, toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(divide(number, toLowCardinality(toNullable('test_cluster_two_shards')), 512))) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(2)) AS x7, toUInt8(modulo(number / 128, toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(divide(number, toLowCardinality(toNullable('test_cluster_two_shards')), 512))) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 455 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8(divide(number, if((a >= toLowCardinality(0)) AND 1, 1, 0), 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(toLowCardinality('2022-01-01'), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8(divide(number, if((a >= toLowCardinality(0)) AND 1, 1, 0), 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(toLowCardinality('2022-01-01'), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8(divide(number, if((a >= toLowCardinality(0)) AND 1, 1, 0), 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(toLowCardinality('2022-01-01'), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 456 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR x4 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, cluster(currentDatabase(), test_alias), 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR x4 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, cluster(currentDatabase(), test_alias), 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, cluster(currentDatabase(), test_alias), 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 457 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND toLowCardinality(100) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals((x1 AND x2) AND (toLowCardinality(0) AND toLowCardinality(1000) AND x3 AND x4), xor1, xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY equals(c, toLowCardinality(1), 0), or1 != or2 Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND toLowCardinality(100) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals((x1 AND x2) AND (toLowCardinality(0) AND toLowCardinality(1000) AND x3 AND x4), xor1, xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY equals(c, toLowCardinality(1), 0), or1 != or2': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 3, should be 2: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND toLowCardinality(100) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals((x1 AND x2) AND (toLowCardinality(0) AND toLowCardinality(1000) AND x3 AND x4), xor1, xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY equals(c, toLowCardinality(1), 0), or1 != or2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 458 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (if((a >= materialize(0)) AND (b != materialize(100)) AND equals(c), 1, 0) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (nums__fuzz_10 AND x4 AND x5)) AND ((x6 AND x7) AND (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23)), toLowCardinality(23)), 23) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8((number / 8) % 2, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(sum(if((b != 100) AND (c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() RESPECT NULLS) * materialize(100), 0))), toNullable(1))), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (if((a >= materialize(0)) AND (b != materialize(100)) AND equals(c), 1, 0) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (nums__fuzz_10 AND x4 AND x5)) AND ((x6 AND x7) AND (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23)), toLowCardinality(23)), 23) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8((number / 8) % 2, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(sum(if((b != 100) AND (c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() RESPECT NULLS) * materialize(100), 0))), toNullable(1))), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8((number / 8) % 2, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(sum(if((b != 100) AND (c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count() RESPECT NULLS) * materialize(100), 0))), toNullable(1))), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 459 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0)), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % toLowCardinality(toNullable(toUInt256(2)))) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0)), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % toLowCardinality(toNullable(toUInt256(2)))) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT toUInt8(c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0)), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % toLowCardinality(toNullable(toUInt256(2)))) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 460 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(if((a >= materialize(0)) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0), x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt128(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(if((a >= materialize(0)) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0), x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt128(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(if((a >= materialize(0)) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0), x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt128(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 461 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE or(or(and1 != and2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or(or(and1 != and2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 462 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, if((a >= 0) AND (b != toNullable(100)), 1, materialize(0)), x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100, 2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY s IN ('a', 'b') Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, if((a >= 0) AND (b != toNullable(100)), 1, materialize(0)), x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100, 2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY s IN ('a', 'b')': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(in(s, ('a', 'b')), 1, 0)) IGNORE NULLS is found in wrong place in query: While processing sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bc5 7. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 8. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 9. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 10. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:348: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a9a7 11. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 12. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 13. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 14. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 15. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf2e5b 16. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 17. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 22. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 463 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % toUInt128(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, sum(if((b != 100) AND (c = 0), 1, 0)), toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(a >= 0, or1, or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toUInt128(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, sum(if((b != 100) AND (c = 0), 1, 0)), toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(a >= 0, or1, or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % toUInt128(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, sum(if((b != 100) AND (c = 0), 1, 0)), toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(1024)) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 464 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(x1 OR x2 OR x3, modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(x1 OR x2 OR x3, modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(x1 OR x2 OR x3, modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 465 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 466 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % materialize(toNullable(2))) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 467 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (((x1 AND x2) AND (toLowCardinality(toNullable(toNullable(0))) AND 1000 AND x3 AND x4)) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, toUInt8((number / toNullable(4)) % toUInt256(2)), 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toUInt128(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (((x1 AND x2) AND (toLowCardinality(toNullable(toNullable(0))) AND 1000 AND x3 AND x4)) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, toUInt8((number / toNullable(4)) % toUInt256(2)), 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toUInt128(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, toUInt8((number / toNullable(4)) % toUInt256(2)), 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toUInt128(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 468 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (test_alias__fuzz_22 AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8(1, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(sum(if(if((b != 100) AND (c > 220), toLowCardinality(1), 0) AND (b != 100) AND (c = 0), toNullable(1), 0)), number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE sum(if((b != 100) AND equals(c, c = toUInt256(0), 0), materialize(toUInt128(1)), 0)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (test_alias__fuzz_22 AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8(1, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(sum(if(if((b != 100) AND (c > 220), toLowCardinality(1), 0) AND (b != 100) AND (c = 0), toNullable(1), 0)), number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE sum(if((b != 100) AND equals(c, c = toUInt256(0), 0), materialize(toUInt128(1)), 0)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8(1, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(sum(if(if((b != 100) AND (c > 220), toLowCardinality(1), 0) AND (b != 100) AND (c = 0), toNullable(1), 0)), number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 469 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), toNullable(0))) IGNORE NULLS / count(), toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % toLowCardinality(2)) AS x6, toUInt8((number / 64) % 2) AS x7, greaterOrEquals(0) AND (b != 100) AND (c > 220), toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), toNullable(0))) IGNORE NULLS / count(), toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % toLowCardinality(2)) AS x6, toUInt8((number / 64) % 2) AS x7, greaterOrEquals(0) AND (b != 100) AND (c > 220), toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), toNullable(0))) IGNORE NULLS / count(), toLowCardinality(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % toLowCardinality(2)) AS x6, toUInt8((number / 64) % 2) AS x7, greaterOrEquals(0) AND (b != 100) AND (c > 220), toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 470 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, (a >= 0) AND (b != toLowCardinality(toNullable(100))) AND (c > toUInt256(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 220)), 16) % 2) AS x5, toUInt8((number / 32) % toUInt128(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(toUInt256(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, (a >= 0) AND (b != toLowCardinality(toNullable(100))) AND (c > toUInt256(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 220)), 16) % 2) AS x5, toUInt8((number / 32) % toUInt128(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(toUInt256(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, (a >= 0) AND (b != toLowCardinality(toNullable(100))) AND (c > toUInt256(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(23)), 220)), 16) % 2) AS x5, toUInt8((number / 32) % toUInt128(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(toUInt256(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 471 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE or(xor1 != xor2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or(xor1 != xor2)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 472 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x4)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(toLowCardinality(' ', 1), 1), 0)), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, round((sum(multiIf(s IN ('a', 'b'), 1, toUInt128(0))) IGNORE NULLS / count()) * 100), toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toUInt256(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x4)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(toLowCardinality(' ', 1), 1), 0)), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, round((sum(multiIf(s IN ('a', 'b'), 1, toUInt128(0))) IGNORE NULLS / count()) * 100), toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toUInt256(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(toLowCardinality(' ', 1), 1), 0)), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, round((sum(multiIf(s IN ('a', 'b'), 1, toUInt128(0))) IGNORE NULLS / count()) * 100), toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toUInt256(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 473 out of 1000 EXPLAIN SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((((r1 * materialize(100)) / plus(r1)) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % materialize(toNullable(2))) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((((r1 * materialize(100)) / plus(r1)) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % materialize(toNullable(2))) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((((r1 * materialize(100)) / plus(r1)) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % materialize(toNullable(2))) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 27. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 28. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 474 out of 1000 EXPLAIN PIPELINE header = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR cluster('test_cluster_two_shards', currentDatabase(), t) OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))) AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt128(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE header = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR cluster('test_cluster_two_shards', currentDatabase(), t) OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))) AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt128(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 475 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, (a >= materialize(0)) AND (b != 100) AND equals(c), x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x2 AND x3) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(32) % 2) AS x6, toUInt8((number / toNullable(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(materialize(toUInt256(2048))) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, (a >= materialize(0)) AND (b != 100) AND equals(c), x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x2 AND x3) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(32) % 2) AS x6, toUInt8((number / toNullable(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(materialize(toUInt256(2048)))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize(_CAST('2048', 'UInt256')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 476 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(toUInt256(8), x8, xor(x9, xor(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((toNullable(materialize(toLowCardinality(1000))) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, if((a >= 0) AND (b != 100) AND (c > toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 220), 1, 0), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, test_alias__fuzz_27, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(toFixedString('2022-01-01', 10), number, 512) % 2) AS x10, toUInt8((number / 1024) % materialize(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(toUInt256(8), x8, xor(x9, xor(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((toNullable(materialize(toLowCardinality(1000))) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, if((a >= 0) AND (b != 100) AND (c > toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 220), 1, 0), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, test_alias__fuzz_27, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(toFixedString('2022-01-01', 10), number, 512) % 2) AS x10, toUInt8((number / 1024) % materialize(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, if((a >= 0) AND (b != 100) AND (c > toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 220), 1, 0), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, test_alias__fuzz_27, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(toFixedString('2022-01-01', 10), number, 512) % 2) AS x10, toUInt8((number / 1024) % materialize(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 477 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, toLowCardinality(1), x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR toUInt8((number / 2) % toUInt256(2)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), 0)) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, toLowCardinality(1), x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR toUInt8((number / 2) % toUInt256(2)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), 0)) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, toLowCardinality(1), x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR toUInt8((number / 2) % toUInt256(2)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), 0)) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 478 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (toNullable(materialize(1000)) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / toLowCardinality(toUInt256(64)))) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals(xor1, toFixedString(toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), toNullable(23)), 23, xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (toNullable(materialize(1000)) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / toLowCardinality(toUInt256(64)))) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(xor1, toFixedString(toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))), toNullable(23)), 23, xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / toLowCardinality(toUInt256(64)))) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 479 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toNullable(2048)) ) WHERE (xor1 != xor2) OR (notEquals(and1) OR (or1 != or2)) Error on processing query 'EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toNullable(2048))) WHERE (xor1 != xor2) OR (notEquals(and1) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt16) expression, must be numeric type: While processing SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toNullable(2048))) WHERE (xor1 != xor2) OR (notEquals(and1) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2210: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000003374941e 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:0: DB::JoinedTables::getLeftTableStorage() @ 0x0000000034ee2c6c 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034befcd8 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034beb431 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000034e5e019 12. ./build_docker/./src/Interpreters/InterpreterSelectWithUnionQuery.cpp:154: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034e588ae 13. ./build_docker/./src/Interpreters/InterpreterSelectWithUnionQuery.cpp:0: DB::InterpreterSelectWithUnionQuery::getSampleBlock(std::shared_ptr const&, std::shared_ptr, bool, bool) @ 0x0000000034e608c1 14. ./build_docker/./src/Interpreters/getTableExpressions.cpp:91: DB::getDatabaseAndTablesWithColumns(std::vector> const&, std::shared_ptr, bool, bool, bool) @ 0x000000003590c535 15. ./build_docker/./src/Interpreters/JoinedTables.cpp:245: DB::JoinedTables::resolveTables() @ 0x0000000034ee41dd 16. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:477: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bee8dd 17. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 18. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 20. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 21. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 22. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 23. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 480 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), toNullable(8), 1, 0)) IGNORE NULLS, xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, toLowCardinality(0))) RESPECT NULLS, number, toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE number % 2 WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), sum(if((a >= 0) AND (b != toNullable(100)) AND (c = 0), toNullable(8), 1, 0)) IGNORE NULLS, xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, toLowCardinality(0))) RESPECT NULLS, number, toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE number % 2 WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, toLowCardinality(0))) RESPECT NULLS, number, toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 481 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(count() IGNORE NULLS, (number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(count() IGNORE NULLS, (number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(count() IGNORE NULLS, (number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 482 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor((number / 4) % 2, xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % materialize(toUInt256(2))) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor((number / 4) % 2, xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % materialize(toUInt256(2))) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % materialize(toUInt256(2))) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 483 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(or1, (number / 256) % 2) AS x9, toUInt8(day = toFixedString(toLowCardinality('2022-01-01'), 10), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(or1, (number / 256) % 2) AS x9, toUInt8(day = toFixedString(toLowCardinality('2022-01-01'), 10), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(or1, (number / 256) % 2) AS x9, toUInt8(day = toFixedString(toLowCardinality('2022-01-01'), 10), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::QueryAnalyzer::tryResolveIdentifierInParentScopes(DB::IdentifierLookup const&, DB::IdentifierResolveScope&) @ 0x0000000033486e25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000334849c9 12. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 484 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x10))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt128(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x10))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt128(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x10))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt128(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 485 out of 1000 EXPLAIN actions = true, json = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (toFixedString(toNullable(23)), 23 AND x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN actions = true, json = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (toFixedString(toNullable(23)), 23 AND x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "actions" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496cdff 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 486 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 487 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((intDiv(toUInt32(rtime), 20) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((intDiv(toUInt32(rtime), 20) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 488 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, toLowCardinality(materialize(toNullable(0))), xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, toLowCardinality(materialize(toNullable(0))), xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 489 out of 1000 EXPLAIN PIPELINE compact = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), x1 AND x2 AND x3 AND x4, xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), x1 AND x2 AND x3 AND x4, xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 490 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toNullable(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, toNullable(toUInt256(100)), 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number, intDiv(toUInt32(rtime), toUInt256(20)) * materialize(1000), 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toNullable(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, toNullable(toUInt256(100)), 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number, intDiv(toUInt32(rtime), toUInt256(20)) * materialize(1000), 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toNullable(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, toNullable(toUInt256(100)), 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number, intDiv(toUInt32(rtime), toUInt256(20)) * materialize(1000), 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 491 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toNullable(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toNullable(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toNullable(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 492 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, intDiv(toUInt32(rtime), 20) * materialize(1000), x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(and2, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toLowCardinality(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, intDiv(toUInt32(rtime), 20) * materialize(1000), x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(and2, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toLowCardinality(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, intDiv(toUInt32(rtime), 20) * materialize(1000), x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(and2, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toLowCardinality(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::QueryAnalyzer::tryResolveIdentifierInParentScopes(DB::IdentifierLookup const&, DB::IdentifierResolveScope&) @ 0x0000000033486e25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000334849c9 12. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 493 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 494 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), Memory, 1, materialize(toNullable(0)))) OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (day = '2022-01-01') OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), Memory, 1, materialize(toNullable(0)))) OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (day = '2022-01-01') OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), Memory, 1, materialize(toNullable(0)))) OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (day = '2022-01-01') OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 495 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, number / materialize(32), xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(intDiv(toUInt32(rtime), 20) * toLowCardinality(1000), modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toLowCardinality(20), 2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, number / materialize(32), xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(intDiv(toUInt32(rtime), 20) * toLowCardinality(1000), modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toLowCardinality(20), 2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 496 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (toUInt256(materialize(toLowCardinality(toUInt128(1)))) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE toUInt8(number % 2) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (toUInt256(materialize(toLowCardinality(toUInt128(1)))) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE toUInt8(number % 2) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x8' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Maybe you meant: ['x8']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 497 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(2))) OR x4 OR x5)) OR (((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220))) OR (x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toNullable(23)), 220)), toLowCardinality(1), nums__fuzz_45, 0)) AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt128(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(2))) OR x4 OR x5)) OR (((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220))) OR (x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toNullable(23)), 220)), toLowCardinality(1), nums__fuzz_45, 0)) AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt128(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(2))) OR x4 OR x5)) OR (((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220))) OR (x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toNullable(23)), 220)), toLowCardinality(1), nums__fuzz_45, 0)) AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt128(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 498 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (materialize(materialize(toNullable(1))) OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND toLowCardinality(1000) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(number, toUInt8((number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(materialize(2))), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt128(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (materialize(materialize(toNullable(1))) OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND toLowCardinality(1000) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(number, toUInt8((number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(materialize(2))), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt128(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT toUInt8(modulo(number, toUInt8((number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(materialize(2))), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt128(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 31. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 Fuzzing step 499 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x4)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x4)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x4)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 500 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (nums__fuzz_31 OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (((intDiv(toUInt32(rtime), 20) * 20) * 1000) AND (x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (nums__fuzz_31 OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (((intDiv(toUInt32(rtime), 20) * 20) * 1000) AND (x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 501 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, arrayJoin(['a', 'b', 'c']), xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, arrayJoin(['a', 'b', 'c']), xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 502 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x2 AND x3) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(n + 1, number / 8, 2)) AS x4, toUInt8((number / materialize(toNullable(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % toUInt128(2)) AS x9, toUInt8((number / 512) % materialize(toUInt256(2))) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals((b != toLowCardinality(100)) AND (c > 220), and1, and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x2 AND x3) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(n + 1, number / 8, 2)) AS x4, toUInt8((number / materialize(toNullable(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % toUInt128(2)) AS x9, toUInt8((number / 512) % materialize(toUInt256(2))) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals((b != toLowCardinality(100)) AND (c > 220), and1, and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'n' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(n + 1, number / 8, 2)) AS x4, toUInt8((number / materialize(toNullable(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % toUInt128(2)) AS x9, toUInt8((number / 512) % materialize(toUInt256(2))) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 503 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, toUInt256(1), x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, toUInt256(1), x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 504 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(toUInt8(number % materialize(2)), x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR multiIf(s IN ('a', 'b'), toUInt128(1), 0) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(test_alias__fuzz_37, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) Error on processing query 'EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(toUInt8(number % materialize(2)), x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR multiIf(s IN ('a', 'b'), toUInt128(1), 0) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(test_alias__fuzz_37, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_37' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(test_alias__fuzz_37, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 20. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 21. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 505 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23)), number, 256) % 2) AS x9, toUInt8(sum(if((b != 100) AND (c = 0), 1, 0)), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), materialize(toLowCardinality(0)))), 2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23)), number, 256) % 2) AS x9, toUInt8(sum(if((b != 100) AND (c = 0), 1, 0)), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), materialize(toLowCardinality(0)))), 2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Aggregate function sum(if(and(notEquals(b, 100), equals(c, 0)), toLowCardinality(toNullable(1)), materialize(toLowCardinality(0)))) is found in wrong place in query: While processing sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), materialize(toLowCardinality(0)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a99b 7. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 8. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 9. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 10. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 11. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf2e5b 12. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 13. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 506 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toUInt128(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toUInt128(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toUInt128(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 507 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(toNullable(100), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(toFixedString(' ', toUInt128(1)), and1, and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(toNullable(100), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(toFixedString(' ', toUInt128(1)), and1, and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(toNullable(100), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000087714ea 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 508 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / materialize(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / materialize(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toNullable(toUInt128(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / materialize(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 509 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((((number / 128) % 2) OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND t__fuzz_46 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((sum(multiIf(s IN materialize(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100, (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toNullable(toUInt128(2))) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((((number / 128) % 2) OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND t__fuzz_46 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((sum(multiIf(s IN materialize(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100, (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toNullable(toUInt128(2))) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((sum(multiIf(s IN materialize(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100, (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toNullable(toUInt128(2))) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 510 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8(divide(number, toFixedString(toLowCardinality(' '), toLowCardinality(1)), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number, (a >= materialize(0)) AND 1, 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8(divide(number, toFixedString(toLowCardinality(' '), toLowCardinality(1)), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number, (a >= materialize(0)) AND 1, 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8(divide(number, toFixedString(toLowCardinality(' '), toLowCardinality(1)), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number, (a >= materialize(0)) AND 1, 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 511 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, toLowCardinality(toNullable(1)) OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and(and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, toLowCardinality(toNullable(1)) OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and(and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, toLowCardinality(toNullable(1)) OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and(and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 512 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32, if((b != 100) AND (c = toNullable(0)), 1, 0), 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32, if((b != 100) AND (c = toNullable(0)), 1, 0), 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32, if((b != 100) AND (c = toNullable(0)), 1, 0), 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 513 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, materialize(materialize(toUInt256(1))), xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR ((c = 0) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, materialize(materialize(toUInt256(1))), xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR ((c = 0) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (UInt256) of 2 argument of function xor: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, materialize(materialize(toUInt256(1))), xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR ((c = 0) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d156b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 514 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x4)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % toUInt256(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(if((a >= toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220), 1, 0), number / 16, 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toNullable(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x4)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toUInt256(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(if((a >= toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220), 1, 0), number / 16, 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toNullable(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % toUInt256(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(if((a >= toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220), 1, 0), number / 16, 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toNullable(1024)) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 515 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, 2048, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toUInt128(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, 2048, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toUInt128(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toUInt128(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 516 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(number % 2, (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(number % 2, (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(number % 2, (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 517 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR toNullable(materialize(toNullable(toUInt256(1)))) OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % materialize(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(if((a >= toUInt256(0)) AND 1, 1, 0), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR toNullable(materialize(toNullable(toUInt256(1)))) OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % materialize(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(if((a >= toUInt256(0)) AND 1, 1, 0), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % materialize(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(if((a >= toUInt256(0)) AND 1, 1, 0), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 518 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, cluster('test_cluster_two_shards', currentDatabase(), t), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x4)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (divide(sum(if((a >= 0) AND (b != 100) AND equals(toFixedString(toLowCardinality(' '), toLowCardinality(1)), c, 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) AND x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / materialize(toNullable(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE sum(if((b != 100) AND (c = 0), toLowCardinality(1), materialize(0))) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, cluster('test_cluster_two_shards', currentDatabase(), t), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x4)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (divide(sum(if((a >= 0) AND (b != 100) AND equals(toFixedString(toLowCardinality(' '), toLowCardinality(1)), c, 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) AND x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / materialize(toNullable(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE sum(if((b != 100) AND (c = 0), toLowCardinality(1), materialize(0)))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / materialize(toNullable(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE sum(if((b != 100) AND (c = 0), toLowCardinality(1), materialize(0))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 519 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, c, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0)) AND (x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toUInt256(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, c, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0)) AND (x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toUInt256(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, c, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0)) AND (x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toUInt256(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 520 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, sum(if((a >= 0) AND (b != 100) AND (c = 0), 0)), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toNullable(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, sum(if((a >= 0) AND (b != 100) AND (c = 0), 0)), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toNullable(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, sum(if((a >= 0) AND (b != 100) AND (c = 0), 0)), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toNullable(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 521 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128, cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), currentDatabase(t__fuzz_24), t), 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals(xor1, 220, xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128, cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), currentDatabase(t__fuzz_24), t), 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(xor1, 220, xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_24' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128, cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), currentDatabase(t__fuzz_24), t), 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 522 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(toUInt8((number / 4) % 2), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(toUInt8((number / 4) % 2), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(toUInt8((number / 4) % 2), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 523 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND toUInt8((number / 4) % toLowCardinality(2)) AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048) ) WHERE (number / 256) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND toUInt8((number / 4) % toLowCardinality(2)) AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048)) WHERE (number / 256) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 524 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0) AND (sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0))), 1, 0)) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(if((a >= toLowCardinality(0)) AND (b != toNullable(toNullable(100))), 1, materialize(0)), (number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8(modulo(number / 512, toFixedString(toLowCardinality('2022-01-01'), 10), 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and1, toNullable(materialize(4, 1000)), and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0) AND (sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0))), 1, 0)) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(if((a >= toLowCardinality(0)) AND (b != toNullable(toNullable(100))), 1, materialize(0)), (number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8(modulo(number / 512, toFixedString(toLowCardinality('2022-01-01'), 10), 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and1, toNullable(materialize(4, 1000)), and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(if((a >= toLowCardinality(0)) AND (b != toNullable(toNullable(100))), 1, materialize(0)), (number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8(modulo(number / 512, toFixedString(toLowCardinality('2022-01-01'), 10), 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 525 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000)), x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x2 AND x3) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(toUInt256(materialize(toLowCardinality(1))), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000)), x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x2 AND x3) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(toUInt256(materialize(toLowCardinality(1))), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(toUInt256(materialize(toLowCardinality(1))), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 526 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(count(1) IGNORE NULLS, x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(toFixedString('2022-01-01', toLowCardinality(10)), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(count(1) IGNORE NULLS, x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(toFixedString('2022-01-01', toLowCardinality(10)), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(toFixedString('2022-01-01', toLowCardinality(10)), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 527 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 528 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 529 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND equals(c, toLowCardinality(1), toUInt256(0)) AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(round(materialize(toLowCardinality(toFixedString(toFixedString(' ', 1)))), (sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23), number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND equals(c, toLowCardinality(1), toUInt256(0)) AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(round(materialize(toLowCardinality(toFixedString(toFixedString(' ', 1)))), (sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23), number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(round(materialize(toLowCardinality(toFixedString(toFixedString(' ', 1)))), (sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23), number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 530 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR ((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) OR x5)) OR (greaterOrEquals(a) OR (x6 OR x7) OR (x8 OR (nums__fuzz_10 OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(if((a >= 0) AND greater(c, toUInt8((number / toUInt256(2)) % 2), 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0), (number / 16) % 2) AS x5, toUInt8((number / toUInt256(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR ((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) OR x5)) OR (greaterOrEquals(a) OR (x6 OR x7) OR (x8 OR (nums__fuzz_10 OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(if((a >= 0) AND greater(c, toUInt8((number / toUInt256(2)) % 2), 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0), (number / 16) % 2) AS x5, toUInt8((number / toUInt256(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(if((a >= 0) AND greater(c, toUInt8((number / toUInt256(2)) % 2), 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0), (number / 16) % 2) AS x5, toUInt8((number / toUInt256(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 531 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(nums__fuzz_35, x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toNullable(toUInt256(1024))) % 2) AS x11 FROM numbers(2048) ) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(nums__fuzz_35, x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toNullable(toUInt256(1024))) % 2) AS x11 FROM numbers(2048))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_35' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(nums__fuzz_35, x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x8))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toNullable(toUInt256(1024))) % 2) AS x11 FROM numbers(2048)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 532 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, if((b != 100) AND (c = 0), 1, 0), toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, if((b != 100) AND (c = 0), 1, 0), toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, if((b != 100) AND (c = 0), 1, 0), toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 533 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, toLowCardinality(toNullable(0)), x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((((sum(multiIf(in(s, round(divide(toLowCardinality(toUInt128(2)), sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS, count(toLowCardinality(1)) IGNORE NULLS) * 100), ('a', 'b')), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) OR x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, toLowCardinality(toNullable(0)), x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((((sum(multiIf(in(s, round(divide(toLowCardinality(toUInt128(2)), sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS, count(toLowCardinality(1)) IGNORE NULLS) * 100), ('a', 'b')), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)) OR x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 534 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, if(1, 0) AND x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toUInt128(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(if((a >= toLowCardinality(0)) AND (b != toLowCardinality(100)) AND (c > 220), 1, 23, 0), 23)), toNullable(23)), 23, 23), number / 1024, 2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR or(or1 != or2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, if(1, 0) AND x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toUInt128(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(if((a >= toLowCardinality(0)) AND (b != toLowCardinality(100)) AND (c > 220), 1, 23, 0), 23)), toNullable(23)), 23, 23), number / 1024, 2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(or1 != or2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toUInt128(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(if((a >= toLowCardinality(0)) AND (b != toLowCardinality(100)) AND (c > 220), 1, 23, 0), 23)), toNullable(23)), 23, 23), number / 1024, 2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 535 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (0 OR (x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x10))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), 23), divide(number), toNullable(2))) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / materialize(toLowCardinality(128))) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toLowCardinality(toUInt256(2048))) ) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (0 OR (x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x10))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), 23), divide(number), toNullable(2))) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / materialize(toLowCardinality(128))) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toLowCardinality(toUInt256(2048)))) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt256) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 536 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY (number / 4) % 2, nums__fuzz_2 ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY (number / 4) % 2, nums__fuzz_2) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_2' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY (number / 4) % 2, nums__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 537 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(1 AND (c > 220), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(1 AND (c > 220), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT toUInt8(1 AND (c > 220), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 538 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0))) AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8(modulo(number / 4, toUInt8(divide(toNullable(8)) % toUInt128(materialize(2))), 2)) AS x3, toUInt8(divide(number, toUInt256(0), 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(materialize(1000), number / 32, toNullable(2))) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals((intDiv(toUInt32(rtime), 20) * 20) * 1000, xor1, xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0))) AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8(modulo(number / 4, toUInt8(divide(toNullable(8)) % toUInt128(materialize(2))), 2)) AS x3, toUInt8(divide(number, toUInt256(0), 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(materialize(1000), number / 32, toNullable(2))) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals((intDiv(toUInt32(rtime), 20) * 20) * 1000, xor1, xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8(modulo(number / 4, toUInt8(divide(toNullable(8)) % toUInt128(materialize(2))), 2)) AS x3, toUInt8(divide(number, toUInt256(0), 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(materialize(1000), number / 32, toNullable(2))) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 539 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 540 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 541 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x4 OR x5) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8(divide(number, (a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(if((b != 100) AND (c = 0), toLowCardinality(sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0)), toNullable(1)), materialize(toLowCardinality(0))), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x4 OR x5) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8(divide(number, (a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(if((b != 100) AND (c = 0), toLowCardinality(sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0)), toNullable(1)), materialize(toLowCardinality(0))), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8(divide(number, (a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(if((b != 100) AND (c = 0), toLowCardinality(sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0)), toNullable(1)), materialize(toLowCardinality(0))), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 542 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, materialize(2), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toUInt256(2)) AS x11 FROM numbers(toUInt128(2048)) ) WHERE (xor1 != xor2) OR (notEquals(and1, (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4), and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, materialize(2), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toUInt256(2)) AS x11 FROM numbers(toUInt128(2048))) WHERE (xor1 != xor2) OR (notEquals(and1, (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4), and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type UInt128 expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 543 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR toLowCardinality(toLowCardinality(toUInt128(23))) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (sum(if((b != 100) AND (c = 0), 1, 0)) AND (x6 AND x7) AND (x8 AND (x9 AND t__fuzz_22 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR toLowCardinality(toLowCardinality(toUInt128(23))) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (sum(if((b != 100) AND (c = 0), 1, 0)) AND (x6 AND x7) AND (x8 AND (x9 AND t__fuzz_22 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (UInt128) of 2 argument of function or: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR toLowCardinality(toLowCardinality(toUInt128(23))) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (sum(if((b != 100) AND (c = 0), 1, 0)) AND (x6 AND x7) AND (x8 AND (x9 AND t__fuzz_22 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8a2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 544 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x3) OR (x4 OR x5)) OR ((x6 OR x7) OR toUInt8((number / 8) % toUInt128(2)) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(number / 1024, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x3) OR (x4 OR x5)) OR ((x6 OR x7) OR toUInt8((number / 8) % toUInt128(2)) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(number / 1024, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(number / 1024, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 545 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND ((intDiv(toUInt32(rtime), toNullable(20)) * 20) * toNullable(1000)) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(toUInt128(1000), number, 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / materialize(toLowCardinality(toNullable(16)))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(toUInt256(512))) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND ((intDiv(toUInt32(rtime), toNullable(20)) * 20) * toNullable(1000)) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(toUInt128(1000), number, 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / materialize(toLowCardinality(toNullable(16)))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(toUInt256(512))) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(toUInt128(1000), number, 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / materialize(toLowCardinality(toNullable(16)))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(toUInt256(512))) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 546 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND ((((number / 64) % 2) AND (x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, (sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / materialize(toNullable(toUInt128(64)))) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals(xor1, numbers(materialize(toUInt128(16, 2048))), xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND ((((number / 64) % 2) AND (x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, (sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / materialize(toNullable(toUInt128(64)))) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(xor1, numbers(materialize(toUInt128(16, 2048))), xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, (sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / materialize(toNullable(toUInt128(64)))) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 30. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 Fuzzing step 547 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR nums__fuzz_45 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND ((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100) AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x8 AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toUInt128(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR nums__fuzz_45 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND ((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100) AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x8 AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toUInt128(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_45' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR nums__fuzz_45 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND ((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100) AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x8 AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toUInt128(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 548 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, (a >= 0) AND 1, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AND x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt256(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, (a >= 0) AND 1, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AND x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt256(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, (a >= 0) AND 1, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS AND x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt256(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 549 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(getOSKernelVersion(), modulo(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0), number / 2, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32, x11, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toUInt256(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or2)) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(getOSKernelVersion(), modulo(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0), number / 2, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32, x11, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toUInt256(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('xor'): xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 550 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8(modulo(toLowCardinality(materialize(materialize(toNullable(1)))), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number, test_alias__fuzz_37, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8(modulo(toLowCardinality(materialize(materialize(toNullable(1)))), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number, test_alias__fuzz_37, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8(modulo(toLowCardinality(materialize(materialize(toNullable(1)))), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number, test_alias__fuzz_37, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 551 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / materialize(toNullable(32))) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt128(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(toLowCardinality(2))) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / materialize(toNullable(32))) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt128(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(toLowCardinality(2))) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / materialize(toNullable(32))) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt128(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(toLowCardinality(2))) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 552 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), currentDatabase(), t) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), currentDatabase(), t) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), currentDatabase(), t) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 553 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', cluster('test_cluster_two_shards', currentDatabase(), t), toLowCardinality(toNullable(23))), toLowCardinality(23)), 23), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', cluster('test_cluster_two_shards', currentDatabase(), t), toLowCardinality(toNullable(23))), toLowCardinality(23)), 23), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', cluster('test_cluster_two_shards', currentDatabase(), t), toLowCardinality(toNullable(23))), toLowCardinality(23)), 23), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 554 out of 1000 EXPLAIN ESTIMATE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 555 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, toLowCardinality(toFixedString(' ', toUInt256(1))), 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, toLowCardinality(toFixedString(' ', toUInt256(1))), 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, toLowCardinality(toFixedString(' ', toUInt256(1))), 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 556 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 27. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 28. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 557 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x2) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / materialize(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x2) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / materialize(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / materialize(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 558 out of 1000 SELECT xor(x1, x2, x3, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(x1) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(x1) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(x1) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 559 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, if((a >= 0) AND (c > 220), 1, toFixedString(toLowCardinality((intDiv(toUInt32(rtime), 20) * 20) * materialize(1000), 'test_cluster_two_shards'), 23), 0), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toNullable(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, if((a >= 0) AND (c > 220), 1, toFixedString(toLowCardinality((intDiv(toUInt32(rtime), 20) * 20) * materialize(1000), 'test_cluster_two_shards'), 23), 0), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toNullable(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, if((a >= 0) AND (c > 220), 1, toFixedString(toLowCardinality((intDiv(toUInt32(rtime), 20) * 20) * materialize(1000), 'test_cluster_two_shards'), 23), 0), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toNullable(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 560 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(sum(if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0)) RESPECT NULLS, xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, materialize(toLowCardinality(8)), xor(number / materialize(2), x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, round((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(if((b != 100) AND (c = 0), materialize(toNullable(toUInt128(1))), 0), divide(number, x6 OR x7, 2), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % materialize(toNullable(2))) AS x5, toUInt8((number / 32) % materialize(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(sum(if((a >= 0) AND (b != 100) AND toNullable(1) AND (c > 220), 1, 0)) RESPECT NULLS, xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, materialize(toLowCardinality(8)), xor(number / materialize(2), x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, round((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(if((b != 100) AND (c = 0), materialize(toNullable(toUInt128(1))), 0), divide(number, x6 OR x7, 2), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % materialize(toNullable(2))) AS x5, toUInt8((number / 32) % materialize(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(if((b != 100) AND (c = 0), materialize(toNullable(toUInt128(1))), 0), divide(number, x6 OR x7, 2), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % materialize(toNullable(2))) AS x5, toUInt8((number / 32) % materialize(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 561 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x2 AND x3) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt128(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, nums__fuzz_26, 2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x2 AND x3) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt128(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, nums__fuzz_26, 2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_26' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt128(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, nums__fuzz_26, 2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 562 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(materialize(materialize(toNullable(1))), x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (sum(if(day = '2022-01-01', toLowCardinality(10), (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) OR (and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(materialize(materialize(toNullable(1))), x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (sum(if(day = '2022-01-01', toLowCardinality(10), (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) OR (and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'day' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(materialize(materialize(toNullable(1))), x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (sum(if(day = '2022-01-01', toLowCardinality(10), (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0)) OR (and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 563 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND equals(0), 1, toNullable(toUInt128(Log, 0)))), number, 16) % 2), number, 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE splitByChar(' ', getOSKernelVersion()) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND equals(0), 1, toNullable(toUInt128(Log, 0)))), number, 16) % 2), number, 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE splitByChar(' ', getOSKernelVersion()) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND equals(0), 1, toNullable(toUInt128(Log, 0)))), number, 16) % 2), number, 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 564 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 565 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(toLowCardinality(toLowCardinality(1)), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((number / 64) % toNullable(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), number, 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(toLowCardinality(toLowCardinality(1)), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((number / 64) % toNullable(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), number, 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((number / 64) % toNullable(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), number, 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 566 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x6 AND x7)) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x6 AND x7)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 567 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, 2048, 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, 2048, 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, 2048, 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 568 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % materialize(toUInt256(2))) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23, nums__fuzz_41, 23), currentDatabase(materialize(toLowCardinality(1))), t), number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(toLowCardinality(toUInt256(1)), number, 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % materialize(toUInt256(2))) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23, nums__fuzz_41, 23), currentDatabase(materialize(toLowCardinality(1))), t), number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(toLowCardinality(toUInt256(1)), number, 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_41' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % materialize(toUInt256(2))) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23, nums__fuzz_41, 23), currentDatabase(materialize(toLowCardinality(1))), t), number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(toLowCardinality(toUInt256(1)), number, 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 569 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((64 OR x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, (a >= 0) AND toNullable(1), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((64 OR x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, (a >= 0) AND toNullable(1), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, (a >= 0) AND toNullable(1), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 570 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR t__fuzz_41 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR t__fuzz_41 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((cluster(toNullable('test_cluster_two_shards'), currentDatabase(), test_alias) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % toNullable(2)) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 25. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 26. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 571 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 572 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR toLowCardinality(toLowCardinality(toFixedString(' ', 1))) OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND ((number / 8) AND x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR toLowCardinality(toLowCardinality(toFixedString(' ', 1))) OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND ((number / 8) AND x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (FixedString(1)) of 2 argument of function or: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR toLowCardinality(toLowCardinality(toFixedString(' ', 1))) OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND ((number / 8) AND x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8a2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 573 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, number / toLowCardinality(8), x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, number / toLowCardinality(8), x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, number / toLowCardinality(8), x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 574 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(x1) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number, test_alias__fuzz_39, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE number / toUInt256(4) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(x1) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number, test_alias__fuzz_39, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE number / toUInt256(4)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toNullable(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number, test_alias__fuzz_39, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE number / toUInt256(4). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 575 out of 1000 SELECT xor(x1, x2, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(if((b != 100) AND (c = 0), 1, 0), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, notEquals(b, toFixedString(toLowCardinality(23), toNullable(toUInt256(23))), toNullable(100)), toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), 0) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(if((b != 100) AND (c = 0), 1, 0), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, notEquals(b, toFixedString(toLowCardinality(23), toNullable(toUInt256(23))), toNullable(100)), toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), 0)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(if((b != 100) AND (c = 0), 1, 0), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, notEquals(b, toFixedString(toLowCardinality(23), toNullable(toUInt256(23))), toNullable(100)), toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 576 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(and1, x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, (sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(and1, x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, (sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, (sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 30. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 Fuzzing step 577 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8(divide(number, round((sum(multiIf(s IN ('a', 'b'), materialize(1))) IGNORE NULLS / count(1) IGNORE NULLS) * 100), 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE or((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8(divide(number, round((sum(multiIf(s IN ('a', 'b'), materialize(1))) IGNORE NULLS / count(1) IGNORE NULLS) * 100), 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8(divide(number, round((sum(multiIf(s IN ('a', 'b'), materialize(1))) IGNORE NULLS / count(1) IGNORE NULLS) * 100), 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 31. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 Fuzzing step 578 out of 1000 SELECT xor(x1, x2, x3, x4, x5, toUInt256(0), x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), if((a >= 0) AND 1 AND greater(c), toUInt256(1), 0), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, toUInt256(0), x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), if((a >= 0) AND 1 AND greater(c), toUInt256(1), 0), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (UInt256) of 6 argument of function xor: In scope SELECT xor(x1, x2, x3, x4, x5, toUInt256(0), x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), if((a >= 0) AND 1 AND greater(c), toUInt256(1), 0), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d156b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 579 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 580 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toLowCardinality(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 581 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((a >= 0) AND (b != 100) AND 1 AND (c > 220), (number / 4) % 2) AS x3, toUInt8(divide(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), number, 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((a >= 0) AND (b != 100) AND 1 AND (c > 220), (number / 4) % 2) AS x3, toUInt8(divide(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), number, 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((a >= 0) AND (b != 100) AND 1 AND (c > 220), (number / 4) % 2) AS x3, toUInt8(divide(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), number, 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 582 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, toLowCardinality(0))) IGNORE NULLS, number / 2, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(toUInt256(toNullable(23)), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % materialize(toNullable(2))) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE or(xor1 != xor2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, toLowCardinality(0))) IGNORE NULLS, number / 2, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(toUInt256(toNullable(23)), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % materialize(toNullable(2))) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or(xor1 != xor2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, toLowCardinality(0))) IGNORE NULLS, number / 2, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(toUInt256(toNullable(23)), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % materialize(toNullable(2))) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 583 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND 41 AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, test_alias__fuzz_27, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND 41 AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, test_alias__fuzz_27, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_27' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, test_alias__fuzz_27, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 584 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((toUInt128(1000) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(x2 OR x3, number, 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % materialize(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512, number, 2)) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((toUInt128(1000) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(x2 OR x3, number, 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % materialize(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512, number, 2)) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x2' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(x2 OR x3, number, 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % materialize(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512, number, 2)) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048). Maybe you meant: ['x2']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 585 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(a >= toUInt256(0), x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, materialize(toLowCardinality(toFixedString(' ', 1))), 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(a >= toUInt256(0), x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, materialize(toLowCardinality(toFixedString(' ', 1))), 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, materialize(toLowCardinality(toFixedString(' ', 1))), 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 586 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, if((a >= 0) AND (c > 220), 1, toLowCardinality(0)), 2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, if((a >= 0) AND (c > 220), 1, toLowCardinality(0)), 2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, if((a >= 0) AND (c > 220), 1, toLowCardinality(0)), 2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 587 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(x1) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(x1) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(x1) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 588 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, xor(x2, x3), x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (toUInt128(toUInt256(2)) OR x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x2) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(if(day = '2022-01-01', toLowCardinality(10), greaterOrEquals(a) AND (b != 100) AND (c = 0), 1, 0), (number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8(modulo((number / 4) % 2, number / 1024, 2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, xor(x2, x3), x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (toUInt128(toUInt256(2)) OR x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x2) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(if(day = '2022-01-01', toLowCardinality(10), greaterOrEquals(a) AND (b != 100) AND (c = 0), 1, 0), (number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8(modulo((number / 4) % 2, number / 1024, 2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(if(day = '2022-01-01', toLowCardinality(10), greaterOrEquals(a) AND (b != 100) AND (c = 0), 1, 0), (number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8(modulo((number / 4) % 2, number / 1024, 2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 589 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE notEquals(xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE notEquals(xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE notEquals(xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 590 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(materialize(toUInt256(toNullable(1))), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(materialize(toUInt256(toNullable(1))), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(materialize(toUInt256(toNullable(1))), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000087714ea 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 591 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / materialize(toUInt128(16))) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / materialize(toUInt128(16))) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / materialize(toUInt128(16))) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 592 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toLowCardinality(0))), x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (toNullable(2) AND x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number, divide(sum((a >= 0) AND (b != 100) AND 1 AND (c > 220), multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(1), count()), 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(materialize(2048)) ) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toLowCardinality(0))), x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (toNullable(2) AND x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number, divide(sum((a >= 0) AND (b != 100) AND 1 AND (c > 220), multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(1), count()), 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(materialize(2048)))': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 593 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(x1) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(x1) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 594 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (if((a >= materialize(0)) AND (b != toLowCardinality(2048, 100)) AND (c = 0), 1, 0) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(toNullable(toUInt128(2)))) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(toUInt128(128))) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1)), number, 16) OR (or1 != or2)) Error on processing query 'EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (if((a >= materialize(0)) AND (b != toLowCardinality(2048, 100)) AND (c = 0), 1, 0) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(toNullable(toUInt128(2)))) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(toUInt128(128))) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1)), number, 16) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Wrong number of arguments for function 'if' (2 instead of 3): While processing if((a >= 0) AND (b != 100) AND (c = 0), 1): While processing SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (if((a >= materialize(0)) AND (b != toLowCardinality(2048, 100)) AND (c = 0), 1, 0) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(toNullable(toUInt128(2)))) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(toUInt128(128))) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) HAVING (xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) != xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8))))) OR (((x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11) != (x1 AND (((x2 AND x3) AND (if((a >= materialize(0)) AND (b != toLowCardinality(2048, 100)) AND (c = 0), 1, 0) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))))) OR divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1)), number, 16) OR ((x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11) != (x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))))))) WHERE (xor1 != xor2) OR ((and1 != and2) OR divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1)), number, 16) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9073ea 4. ./build_docker/./src/Interpreters/OptimizeIfWithConstantConditionVisitor.cpp:0: DB::OptimizeIfWithConstantConditionVisitorData::visit(DB::ASTFunction&, std::shared_ptr&) @ 0x0000000035703b22 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const&, std::shared_ptr const&), std::shared_ptr>, false, false, std::shared_ptr>::doVisit(std::shared_ptr&) @ 0x00000000356950f6 6. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const&, std::shared_ptr const&), std::shared_ptr>, false, false, std::shared_ptr>::visitChildren(std::shared_ptr&) @ 0x0000000035695430 7. ./src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const&, std::shared_ptr const&), std::shared_ptr>, false, false, std::shared_ptr>::visitChildren(std::shared_ptr&) @ 0x0000000035695425 8. ./src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const&, std::shared_ptr const&), std::shared_ptr>, false, false, std::shared_ptr>::visitChildren(std::shared_ptr&) @ 0x0000000035695425 9. ./src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const&, std::shared_ptr const&), std::shared_ptr>, false, false, std::shared_ptr>::visitChildren(std::shared_ptr&) @ 0x0000000035695425 10. ./src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const&, std::shared_ptr const&), std::shared_ptr>, false, false, std::shared_ptr>::visitChildren(std::shared_ptr&) @ 0x0000000035695425 11. ./src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const&, std::shared_ptr const&), std::shared_ptr>, false, false, std::shared_ptr>::visitChildren(std::shared_ptr&) @ 0x0000000035695425 12. ./src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const&, std::shared_ptr const&), std::shared_ptr>, false, false, std::shared_ptr>::visitChildren(std::shared_ptr&) @ 0x0000000035695425 13. ./src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const&, std::shared_ptr const&), std::shared_ptr>, false, false, std::shared_ptr>::visitChildren(std::shared_ptr&) @ 0x0000000035695425 14. ./src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const&, std::shared_ptr const&), std::shared_ptr>, false, false, std::shared_ptr>::visitChildren(std::shared_ptr&) @ 0x0000000035695425 15. ./src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const&, std::shared_ptr const&), std::shared_ptr>, false, false, std::shared_ptr>::visitChildren(std::shared_ptr&) @ 0x0000000035695425 16. ./src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const&, std::shared_ptr const&), std::shared_ptr>, false, false, std::shared_ptr>::visitChildren(std::shared_ptr&) @ 0x0000000035695425 17. ./src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const&, std::shared_ptr const&), std::shared_ptr>, false, false, std::shared_ptr>::visitChildren(std::shared_ptr&) @ 0x0000000035695425 18. ./src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const&, std::shared_ptr const&), std::shared_ptr>, false, false, std::shared_ptr>::visitChildren(std::shared_ptr&) @ 0x0000000035695425 19. ./src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const&, std::shared_ptr const&), std::shared_ptr>, false, false, std::shared_ptr>::visitChildren(std::shared_ptr&) @ 0x0000000035695425 20. ./src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const&, std::shared_ptr const&), std::shared_ptr>, false, false, std::shared_ptr>::visitChildren(std::shared_ptr&) @ 0x0000000035695425 21. ./src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const&, std::shared_ptr const&), std::shared_ptr>, false, false, std::shared_ptr>::visitChildren(std::shared_ptr&) @ 0x0000000035695425 22. ./src/Interpreters/InDepthNodeVisitor.h:61: DB::TreeOptimizer::optimizeIf(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, bool, bool) @ 0x000000003567cf46 23. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1405: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000003563e35d 24. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 26. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 28. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 29. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 30. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 31. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 Fuzzing step 595 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR sum(if((a >= 0) AND (b != 100) AND equals(c, 'test_cluster_two_shards', 0), 1, 0)) OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(toFixedString(toLowCardinality(' '), toLowCardinality(1)), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(if((a >= materialize(0)) AND 1, 1, 0), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR sum(if((a >= 0) AND (b != 100) AND equals(c, 'test_cluster_two_shards', 0), 1, 0)) OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(toFixedString(toLowCardinality(' '), toLowCardinality(1)), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(if((a >= materialize(0)) AND 1, 1, 0), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(toFixedString(toLowCardinality(' '), toLowCardinality(1)), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(if((a >= materialize(0)) AND 1, 1, 0), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 596 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))) OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (((number / 4) % toNullable(2)) OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))) OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (((number / 4) % toNullable(2)) OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (Nullable(FixedString(23))) of 8 argument of function or: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR toFixedString('test_cluster_two_shards', toUInt256(toNullable(23))) OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (((number / 4) % toNullable(2)) OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8a2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 597 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((' ' / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((' ' / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal types String and UInt16 of arguments of function divide: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((' ' / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000861f137 4. DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000ea22927 5. DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df755b9 6. DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000a7caea3 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 22. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 598 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(3, number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(3, number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(3, number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 599 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x1 OR ((sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), Memory, 1, materialize(toNullable(0)))) OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))), x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (cluster('test_cluster_two_shards', currentDatabase(), t) OR x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / materialize(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number, toLowCardinality(toUInt128(2)), materialize(toLowCardinality(toUInt128(1024)))) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR if(greaterOrEquals(a, toNullable(toNullable(1)), 0) AND 1, 1, 0) OR (or1 != or2)) GROUP BY if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0)), if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(23), materialize(toNullable(toUInt256(23)))), toNullable(nums__fuzz_37, 100)) AND (c = 0), 1, 0) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x1 OR ((sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), Memory, 1, materialize(toNullable(0)))) OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))), x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (cluster('test_cluster_two_shards', currentDatabase(), t) OR x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / materialize(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number, toLowCardinality(toUInt128(2)), materialize(toLowCardinality(toUInt128(1024)))) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR if(greaterOrEquals(a, toNullable(toNullable(1)), 0) AND 1, 1, 0) OR (or1 != or2)) GROUP BY if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, toLowCardinality(0)), if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toFixedString(toLowCardinality(23), materialize(toNullable(toUInt256(23)))), toNullable(nums__fuzz_37, 100)) AND (c = 0), 1, 0)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / materialize(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number, toLowCardinality(toUInt128(2)), materialize(toLowCardinality(toUInt128(1024)))) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 600 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (toLowCardinality(toNullable(toNullable(0))) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR or(and1 != and2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (toLowCardinality(toNullable(toNullable(0))) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(and1 != and2)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 601 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toNullable(toUInt128(2))) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toNullable(toUInt128(2))) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toNullable(toUInt128(2))) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 602 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR (number / 8) OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND ((c = toUInt128(toNullable(toLowCardinality(0)))) AND x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 8) % materialize(2), modulo(sum(if((b != 100) AND (c = toNullable(0)), 1, materialize(0))) IGNORE NULLS, number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, if((b != toNullable(100)) AND (c = 0), 1, materialize(0)), toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR (number / 8) OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND ((c = toUInt128(toNullable(toLowCardinality(0)))) AND x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 8) % materialize(2), modulo(sum(if((b != 100) AND (c = toNullable(0)), 1, materialize(0))) IGNORE NULLS, number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, if((b != toNullable(100)) AND (c = 0), 1, materialize(0)), toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 8) % materialize(2), modulo(sum(if((b != 100) AND (c = toNullable(0)), 1, materialize(0))) IGNORE NULLS, number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, if((b != toNullable(100)) AND (c = 0), 1, materialize(0)), toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 603 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 604 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, (number / toLowCardinality(8)) % 2, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number, test_alias, 1024) % 2) AS x11 FROM numbers(2048) ) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, (number / toLowCardinality(8)) % 2, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number, test_alias, 1024) % 2) AS x11 FROM numbers(2048))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, (number / toLowCardinality(8)) % 2, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number, test_alias, 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 605 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8((a >= materialize(toNullable(0))) AND 1 AND (c > 220), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(toUInt128(2))) AS x11 FROM numbers(2048) GROUP BY a >= toLowCardinality(0), (a >= materialize(0)) AND (b != 100) AND equals(c) ) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8((a >= materialize(toNullable(0))) AND 1 AND (c > 220), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(toUInt128(2))) AS x11 FROM numbers(2048) GROUP BY a >= toLowCardinality(0), (a >= materialize(0)) AND (b != 100) AND equals(c)) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8((a >= materialize(toNullable(0))) AND 1 AND (c > 220), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(toUInt128(2))) AS x11 FROM numbers(2048) GROUP BY a >= toLowCardinality(0), (a >= materialize(0)) AND (b != 100) AND equals(c). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 606 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, toUInt8((number / 4) % toUInt256(2)), 2)) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, toUInt8((number / 4) % toUInt256(2)), 2)) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, toUInt8((number / 4) % toUInt256(2)), 2)) AS x2, toUInt8((number / 4) % toLowCardinality(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 607 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(notEquals(b, toFixedString(23, materialize(toNullable(toUInt256(23)))), 100), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY toFixedString(toFixedString('test_cluster_two_shards'), 23), (sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100), t__fuzz_12, if((a >= 0) AND (b != 100) AND equals(c, toLowCardinality(1), 0), 1, 0) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(notEquals(b, toFixedString(23, materialize(toNullable(toUInt256(23)))), 100), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY toFixedString(toFixedString('test_cluster_two_shards'), 23), (sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100), t__fuzz_12, if((a >= 0) AND (b != 100) AND equals(c, toLowCardinality(1), 0), 1, 0)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(notEquals(b, toFixedString(23, materialize(toNullable(toUInt256(23)))), 100), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY toFixedString(toFixedString('test_cluster_two_shards'), 23), (sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100), t__fuzz_12, if((a >= 0) AND (b != 100) AND equals(c, toLowCardinality(1), 0), 1, 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 608 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(toNullable(2))) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR or(or1 != or2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(toNullable(2))) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(or1 != or2)': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toLowCardinality(toNullable(2))) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(or1 != or2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 609 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 610 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number, toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), 23), 23), 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number, toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), 23), 23), 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number, toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), 23), 23), 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 611 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((((b != 100) AND (c = toNullable(toFixedString(toFixedString(' ', toUInt128(1)), 1), 0))) OR x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((((b != 100) AND (c = toNullable(toFixedString(toFixedString(' ', toUInt128(1)), 1), 0))) OR x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 612 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 613 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23) OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23) OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23) OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 614 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR sum(toLowCardinality(toLowCardinality(toUInt128(23))), if(greaterOrEquals(a) AND toLowCardinality(1), 1, materialize(toNullable(0)))) IGNORE NULLS OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(t__fuzz_1, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toUInt128(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE or(xor1 != xor2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR sum(toLowCardinality(toLowCardinality(toUInt128(23))), if(greaterOrEquals(a) AND toLowCardinality(1), 1, materialize(toNullable(0)))) IGNORE NULLS OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(t__fuzz_1, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toUInt128(1024)) % 2) AS x11 FROM numbers(2048)) WHERE or(xor1 != xor2)': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(t__fuzz_1, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toUInt128(1024)) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 615 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8(divide(number, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100), 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toNullable(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8(divide(number, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100), 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toNullable(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8(divide(number, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100), 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toNullable(1024)) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 616 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, count(1) IGNORE NULLS, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (toFixedString('test_cluster_two_shards', toLowCardinality(23)) OR x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(sum(if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), 1, 0)), (number / toNullable(128)) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, count(1) IGNORE NULLS, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (toFixedString('test_cluster_two_shards', toLowCardinality(23)) OR x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(sum(if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), 1, 0)), (number / toNullable(128)) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(sum(if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), 1, 0)), (number / toNullable(128)) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 617 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(number / toUInt256(materialize(x1 OR x2 OR x3, 8)), modulo(number / 2, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23)), 23, currentDatabase(), t), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(number / toUInt256(materialize(x1 OR x2 OR x3, 8)), modulo(number / 2, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23)), 23, currentDatabase(), t), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x2' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(number / toUInt256(materialize(x1 OR x2 OR x3, 8)), modulo(number / 2, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23)), 23, currentDatabase(), t), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Maybe you meant: ['x2']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 618 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR sum(if((a >= materialize(0)) AND (b != 100) AND equals(c), 1, 0)) OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)) OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR sum(if((a >= materialize(0)) AND (b != 100) AND equals(c), 1, 0)) OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)) OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR sum(if((a >= materialize(0)) AND (b != 100) AND equals(c), 1, 0)) OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)) OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 619 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(74, xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(74, xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(74, xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 620 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(Log, 0))), x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, (intDiv(toUInt32(rtime), 20) * 1000) OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(Log, 0))), x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, (intDiv(toUInt32(rtime), 20) * 1000) OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(Log, 0))), x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, (intDiv(toUInt32(rtime), 20) * 1000) OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 30. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 621 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)), number / 64, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)), number / 64, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)), number / 64, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 622 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(x1) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toLowCardinality(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(x1) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toLowCardinality(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(x1) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toLowCardinality(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 623 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (number / 2) AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toUInt128(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(toUInt256(0), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (number / 2) AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toUInt128(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(toUInt256(0), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toUInt128(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(toUInt256(0), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 624 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND greaterOrEquals(test_alias__fuzz_32, a, 0) AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(76, and1, and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND greaterOrEquals(test_alias__fuzz_32, a, 0) AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(76, and1, and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND greaterOrEquals(test_alias__fuzz_32, a, 0) AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(76, and1, and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 26. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 625 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, (a >= toNullable(toUInt128(0))) AND (b != materialize(materialize(100))) AND (c > 220), 2)) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, (a >= toNullable(toUInt128(0))) AND (b != materialize(materialize(100))) AND (c > 220), 2)) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, (a >= toNullable(toUInt128(0))) AND (b != materialize(materialize(100))) AND (c > 220), 2)) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 626 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toNullable(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toNullable(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and1) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toNullable(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toNullable(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and1) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(toNullable(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toNullable(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and1) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 627 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 628 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count(), sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count(), sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count(), sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 629 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide((number / 8) % toLowCardinality(2), number, 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(sum(if(1, 0)), 2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide((number / 8) % toLowCardinality(2), number, 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(sum(if(1, 0)), 2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide((number / 8) % toLowCardinality(2), number, 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(sum(if(1, 0)), 2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345852a 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 630 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0)) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0)) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 3 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000087714ea 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 631 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x2) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(round(materialize(toLowCardinality(' ')), (sum(multiIf(s IN ('a', 'b'), toNullable(1), 0)) IGNORE NULLS / count()) * 100), number / 2, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x2) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(round(materialize(toLowCardinality(' ')), (sum(multiIf(s IN ('a', 'b'), toNullable(1), 0)) IGNORE NULLS / count()) * 100), number / 2, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(round(materialize(toLowCardinality(' ')), (sum(multiIf(s IN ('a', 'b'), toNullable(1), 0)) IGNORE NULLS / count()) * 100), number / 2, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 31. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 Fuzzing step 632 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x2 AND x3) AND (toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23, 23 AND (x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(number, toNullable(toLowCardinality(toNullable(23))), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, (a >= 0) AND (b != 100) AND 1 AND (c > 220), or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x2 AND x3) AND (toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23, 23 AND (x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(number, toNullable(toLowCardinality(toNullable(23))), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, (a >= 0) AND (b != 100) AND 1 AND (c > 220), or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(modulo(number, toNullable(toLowCardinality(toNullable(23))), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 633 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, day = toFixedString(toLowCardinality('2022-01-01'), 10), x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, day = toFixedString(toLowCardinality('2022-01-01'), 10), x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 634 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x9)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % materialize(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x9)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % materialize(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 635 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x6 AND x7)) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % materialize(toNullable(2))) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toNullable(toUInt256(2))) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, if((b != toNullable(100)) AND equals(c, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100), 0), materialize(toUInt128(1)), 0), or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x6 AND x7)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % materialize(toNullable(2))) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toNullable(toUInt256(2))) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, if((b != toNullable(100)) AND equals(c, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100), 0), materialize(toUInt128(1)), 0), or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x6 AND x7)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % materialize(toNullable(2))) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toNullable(toUInt256(2))) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, if((b != toNullable(100)) AND equals(c, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100), 0), materialize(toUInt128(1)), 0), or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 636 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (nums__fuzz_33 OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number, (intDiv(toUInt32(rtime), toNullable(20)) * 20) * toNullable(1000), 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % toNullable(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (nums__fuzz_33 OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number, (intDiv(toUInt32(rtime), toNullable(20)) * 20) * toNullable(1000), 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % toNullable(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number, (intDiv(toUInt32(rtime), toNullable(20)) * 20) * toNullable(1000), 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % toNullable(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 637 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), 0)) IGNORE NULLS / count(), 2)) AS x5, toUInt8((number / 32) % materialize(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, (number / toNullable(8)) % toUInt128(toUInt256(2)), 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), 0)) IGNORE NULLS / count(), 2)) AS x5, toUInt8((number / 32) % materialize(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, (number / toNullable(8)) % toUInt128(toUInt256(2)), 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), 0)) IGNORE NULLS / count(), 2)) AS x5, toUInt8((number / 32) % materialize(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, (number / toNullable(8)) % toUInt128(toUInt256(2)), 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 638 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toUInt256(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 639 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(x3 AND x4, (number / toUInt128(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(x3 AND x4, (number / toUInt128(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(x3 AND x4, (number / toUInt128(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 640 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((toUInt8(sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS, (number / 4) % 2) / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(c = toUInt256(0), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS, toUInt256(1) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((toUInt8(sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS, (number / 4) % 2) / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(c = toUInt256(0), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY sum(if((b != toNullable(100)) AND (c = 0), 1, 0)) IGNORE NULLS, toUInt256(1)': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((toUInt8(sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS, (number / 4) % 2) / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(c = toUInt256(0), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 30. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 Fuzzing step 641 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x6 OR x7) OR (x8 OR or(x9))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND ((number / 8) % 2) AND x3) AND (x4 AND x5)) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8(modulo(test_alias__fuzz_39, number / toLowCardinality(4), 2)) AS x3, toUInt8((number / materialize(toLowCardinality(8))) % 2) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x6 OR x7) OR (x8 OR or(x9))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND ((number / 8) % 2) AND x3) AND (x4 AND x5)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8(modulo(test_alias__fuzz_39, number / toLowCardinality(4), 2)) AS x3, toUInt8((number / materialize(toLowCardinality(8))) % 2) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_39' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8(modulo(test_alias__fuzz_39, number / toLowCardinality(4), 2)) AS x3, toUInt8((number / materialize(toLowCardinality(8))) % 2) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 642 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(toUInt256(0), x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(toUInt256(0), x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (UInt256) of 1 argument of function xor: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(toUInt256(0), x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d156b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 643 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR (b != 100) OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND ((intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000) AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (['a', 'b', 'c'] OR (and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR (b != 100) OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND ((intDiv(toUInt32(rtime), materialize(20)) * 20) * 1000) AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (['a', 'b', 'c'] OR (and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 644 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR (1 AND (c > 220)) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR (1 AND (c > 220)) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR (1 AND (c > 220)) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 645 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(8)) % 2, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(8)) % 2, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(8)) % 2, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 646 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 647 out of 1000 EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN SYNTAX SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: While processing (xor(toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11) != xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11))))))) OR (((x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11) != (x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))))) OR ((x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11) != (x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8)))))): While processing SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE (xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) != xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11))))))) OR (((x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11) != (x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))))) OR ((x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11) != (x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))))))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x0000000033a995b5 30. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:1984: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aaf1de 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc Fuzzing step 648 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toNullable(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(toUInt8(number % 2), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE ((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toNullable(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(toUInt8(number % 2), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(1024) % 2) AS x11 FROM numbers(2048)) PREWHERE ((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toNullable(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(toUInt8(number % 2), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 649 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 26. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 650 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (sum(if((b != 100) AND (c = 0), 1, toNullable(0))) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE or(notEquals(and1, materialize(1), and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (sum(if((b != 100) AND (c = 0), 1, toNullable(0))) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or(notEquals(and1, materialize(1), and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (sum(if((b != 100) AND (c = 0), 1, toNullable(0))) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or(notEquals(and1, materialize(1), and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 30. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 651 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, sum(if((b != 100) AND (c = 0), 1, 0)), xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(toUInt256(23))) OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND nums__fuzz_28 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toUInt256(2048)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, sum(if((b != 100) AND (c = 0), 1, 0)), xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(toUInt256(23))) OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND nums__fuzz_28 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toUInt256(2048))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type UInt256 expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 652 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(toUInt8((number / toLowCardinality(8)) % toLowCardinality(2)), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)) AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(toUInt8((number / toLowCardinality(8)) % toLowCardinality(2)), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)) AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(toUInt8((number / toLowCardinality(8)) % toLowCardinality(2)), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)) AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 653 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 654 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, if((a >= 0) AND (b != 100), 1, 0), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, if((a >= 0) AND (b != 100), 1, 0), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 655 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR sum(if((a >= 0) AND (b != 100) AND equals(c, toLowCardinality(1), 0), 1, 0)) IGNORE NULLS OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(toLowCardinality(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR sum(if((a >= 0) AND (b != 100) AND equals(c, toLowCardinality(1), 0), 1, 0)) IGNORE NULLS OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(toLowCardinality(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(toLowCardinality(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE sum(if((a >= 0) AND (b != 100) AND (c > toLowCardinality(220)), 1, 0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 656 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR ((number / 32) % 2) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(or1, (number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR ((number / 32) % 2) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(or1, (number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR ((number / 32) % 2) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(or1, (number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::QueryAnalyzer::tryResolveIdentifierInParentScopes(DB::IdentifierLookup const&, DB::IdentifierResolveScope&) @ 0x0000000033486e25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000334849c9 12. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 657 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(toNullable(toUInt256(1)), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(toLowCardinality(2))) AS x11 FROM numbers(2048) ) WHERE cluster(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23, 23), currentDatabase(), t) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(toNullable(toUInt256(1)), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(toLowCardinality(2))) AS x11 FROM numbers(2048)) WHERE cluster(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23, 23), currentDatabase(), t) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(toNullable(toUInt256(1)), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % materialize(toLowCardinality(2))) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 658 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 659 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / materialize(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR or(or1 != or2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / materialize(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(or1 != or2)': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / materialize(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(or1 != or2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 31. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 Fuzzing step 660 out of 1000 SELECT xor(x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(number / 512, (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(c > 220, (number / 256) % 2) AS x9, toUInt8((number / 512) % materialize(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(number / 512, (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(c > 220, (number / 256) % 2) AS x9, toUInt8((number / 512) % materialize(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(number / 512, (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(c > 220, (number / 256) % 2) AS x9, toUInt8((number / 512) % materialize(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 661 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, (sum(multiIf(in(s), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(toUInt256(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE a >= toUInt256(0) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, (sum(multiIf(in(s), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(toUInt256(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE a >= toUInt256(0)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(toUInt256(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE a >= toUInt256(0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 662 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(t__fuzz_22, (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(toNullable(1024))) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(t__fuzz_22, (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(toNullable(1024))) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_22' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(t__fuzz_22, (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(toNullable(1024))) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 663 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS, xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8(divide(number, sum(if((a >= 0) AND (b != 100) AND (c = toNullable(0)), 1, toLowCardinality(0))) RESPECT NULLS, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS, xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8(divide(number, sum(if((a >= 0) AND (b != 100) AND (c = toNullable(0)), 1, toLowCardinality(0))) RESPECT NULLS, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8(divide(number, sum(if((a >= 0) AND (b != 100) AND (c = toNullable(0)), 1, toLowCardinality(0))) RESPECT NULLS, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 27. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 664 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR or(x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR or(x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 665 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0) AND x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(toNullable(4))) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(multiIf(s IN ('a', 'b'), toNullable(materialize(toNullable(1))), toUInt256(1), 0), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, 0) AND x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(toNullable(4))) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(multiIf(s IN ('a', 'b'), toNullable(materialize(toNullable(1))), toUInt256(1), 0), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(toNullable(4))) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(multiIf(s IN ('a', 'b'), toNullable(materialize(toNullable(1))), toUInt256(1), 0), (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 666 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR toUInt8((number / 2) % materialize(2)) OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND materialize(toUInt256(2)) AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, xor(x6, x7), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / materialize(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, x1, or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR toUInt8((number / 2) % materialize(2)) OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND materialize(toUInt256(2)) AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, xor(x6, x7), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / materialize(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, x1, or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt128(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, xor(x6, x7), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / materialize(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 667 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(sum(if((a >= 0) AND (c = 0), 1, 0)), number / 1024, 2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(sum(if((a >= 0) AND (c = 0), 1, 0)), number / 1024, 2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(sum(if((a >= 0) AND (c = 0), 1, 0)), number / 1024, 2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 668 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'xor2' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Maybe you meant: ['xor1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 669 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR ((number / toNullable(8)) % toUInt128(materialize(2))) OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR ((number / toNullable(8)) % toUInt128(materialize(2))) OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR ((number / toNullable(8)) % toUInt128(materialize(2))) OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 670 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toUInt256(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count(), 1))), toLowCardinality(0))) IGNORE NULLS / count(), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE toNullable(materialize(toLowCardinality(1000))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toUInt256(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count(), 1))), toLowCardinality(0))) IGNORE NULLS / count(), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE toNullable(materialize(toLowCardinality(1000))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toUInt256(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count(), 1))), toLowCardinality(0))) IGNORE NULLS / count(), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 30. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 Fuzzing step 671 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt128(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 672 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / toNullable(128))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toNullable(toUInt256(1024))) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals(64, xor1, xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / toNullable(128))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toNullable(toUInt256(1024))) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(64, xor1, xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('xor'): xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 673 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toLowCardinality(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toLowCardinality(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toLowCardinality(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 674 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toUInt256(2)) AS x4, toUInt8(modulo(toUInt8((number / toNullable(2)) % 2), number / 16, 2)) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE or(xor1 != xor2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toUInt256(2)) AS x4, toUInt8(modulo(toUInt8((number / toNullable(2)) % 2), number / 16, 2)) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or(xor1 != xor2)': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toUInt256(2)) AS x4, toUInt8(modulo(toUInt8((number / toNullable(2)) % 2), number / 16, 2)) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 675 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(x1 OR x2 OR x3, number, 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE 32 ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(x1 OR x2 OR x3, number, 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE 32) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT toUInt8(modulo(x1 OR x2 OR x3, number, 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE 32. Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 676 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR toUInt8((number / toUInt128(4)) % 2) OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR toUInt8((number / toUInt128(4)) % 2) OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR toUInt8((number / toUInt128(4)) % 2) OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 677 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(if((a >= 0) AND toNullable(1), 1, 0), number, 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128)) AS x8, toUInt8((number / toNullable(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(if((a >= 0) AND toNullable(1), 1, 0), number, 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128)) AS x8, toUInt8((number / toNullable(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(if((a >= 0) AND toNullable(1), 1, 0), number, 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128)) AS x8, toUInt8((number / toNullable(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 678 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((x1 AND x2) AND (toNullable(toUInt256(0)) AND toLowCardinality(1000) AND x3 AND x4)) OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((x1 AND x2) AND (toNullable(toUInt256(0)) AND toLowCardinality(1000) AND x3 AND x4)) OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (Nullable(UInt256)) of 1 argument of function and: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((x1 AND x2) AND (toNullable(toUInt256(0)) AND toLowCardinality(1000) AND x3 AND x4)) OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0d0e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 679 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(2, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / toUInt128(64))) AS x7, toUInt8(modulo(round((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(2, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / toUInt128(64))) AS x7, toUInt8(modulo(round((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(2, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / toUInt128(64))) AS x7, toUInt8(modulo(round((sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS / count()) * 100), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 680 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), 23), currentDatabase(), t) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND cluster(toFixedString(toFixedString('test_cluster_two_shards'), toLowCardinality(23)), materialize(toUInt128(23)), currentDatabase(), t) AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(toNullable(toUInt256(2)), modulo(2)) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(toNullable(128))) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and1) OR notEquals(or1, s, or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), 23), currentDatabase(), t) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND cluster(toFixedString(toFixedString('test_cluster_two_shards'), toLowCardinality(23)), materialize(toUInt128(23)), currentDatabase(), t) AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(toNullable(toUInt256(2)), modulo(2)) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(toNullable(128))) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and1) OR notEquals(or1, s, or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(toNullable(toUInt256(2)), modulo(2)) AS x2, toUInt8((number / 4) % materialize(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(toNullable(128))) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 681 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0), x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(toNullable(2), number, 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0), x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(toNullable(2), number, 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(toNullable(2), number, 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 682 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (if((a >= 0) AND toLowCardinality(1), 1, 0) AND ((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (if((a >= 0) AND toLowCardinality(1), 1, 0) AND ((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (if((a >= 0) AND toLowCardinality(1), 1, 0) AND ((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 683 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(512, x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND xor(x1, x2) AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(512, x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND xor(x1, x2) AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 684 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x4)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toUInt128(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x4)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toUInt128(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x4)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(toUInt128(2))) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toUInt128(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 685 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(x1) AS or2, sum(if((a >= 0) AND notEquals(sum(if((a >= 0) AND (b != 100) AND equals(c), 1, 0)), b, 100) AND 1 AND (c > 220), 1, 0)), x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (toLowCardinality(toUInt256(1)) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(x1) AS or2, sum(if((a >= 0) AND notEquals(sum(if((a >= 0) AND (b != 100) AND equals(c), 1, 0)), b, 100) AND 1 AND (c > 220), 1, 0)), x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (toLowCardinality(toUInt256(1)) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 686 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(if((a >= toUInt128(0)) AND (c > 220), 1, 0), number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE ((x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4)) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(if((a >= toUInt128(0)) AND (c > 220), 1, 0), number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE ((x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4)) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(if((a >= toUInt128(0)) AND (c > 220), 1, 0), number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 687 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(if((a >= 0) AND 1 AND (c > 220), 1, 0), xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(if((a >= 0) AND 1 AND (c > 220), 1, 0), xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(if((a >= 0) AND 1 AND (c > 220), 1, 0), xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 688 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100), 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toUInt128(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toUInt128(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100), 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toUInt128(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toUInt128(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100), 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toUInt128(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toUInt128(1024)) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 689 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, round((sum(multiIf(in(if(1 AND (c > 220), 1, 0), s, materialize(('a', 'b'))), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100), x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x2 AND x3) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, round((sum(multiIf(in(if(1 AND (c > 220), 1, 0), s, materialize(('a', 'b'))), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100), x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x2 AND x3) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, round((sum(multiIf(in(if(1 AND (c > 220), 1, 0), s, materialize(('a', 'b'))), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100), x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x2 AND x3) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 690 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND ((number / toLowCardinality(4)) % 2) AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toNullable(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND ((number / toLowCardinality(4)) % 2) AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toNullable(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toNullable(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 691 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals(xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 692 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 693 out of 1000 EXPLAIN SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x2' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 694 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toLowCardinality(0))), 1, 0)) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND (((x2 AND round((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY day = toFixedString(toLowCardinality('2022-01-01'), 10), toUInt8((number / 4) % 2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toLowCardinality(0))), 1, 0)) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND (((x2 AND round((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY day = toFixedString(toLowCardinality('2022-01-01'), 10), toUInt8((number / 4) % 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toLowCardinality(0))), 1, 0)) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND (((x2 AND round((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY day = toFixedString(toLowCardinality('2022-01-01'), 10), toUInt8((number / 4) % 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 30. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 695 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(xor(x4, x5), divide(2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(xor(x4, x5), divide(2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(xor(x4, x5), divide(2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 696 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (greaterOrEquals(a, toUInt8(number % materialize(2)), 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0)))) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (greaterOrEquals(a, toUInt8(number % materialize(2)), 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0)))) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 697 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, (sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toUInt128(1)), toLowCardinality(1)), 0)) IGNORE NULLS / count() RESPECT NULLS) * 100, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, (sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toUInt128(1)), toLowCardinality(1)), 0)) IGNORE NULLS / count() RESPECT NULLS) * 100, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, (sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toUInt128(1)), toLowCardinality(1)), 0)) IGNORE NULLS / count() RESPECT NULLS) * 100, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 698 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), toLowCardinality(0))) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), toLowCardinality(0))) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), toLowCardinality(0))) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 699 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (materialize(toNullable(1)) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(toUInt128(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 700 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / materialize(toNullable(8))) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / materialize(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE toUInt8((number / 1024) % 2) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / materialize(toNullable(8))) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / materialize(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE toUInt8((number / 1024) % 2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / materialize(toNullable(8))) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / materialize(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE toUInt8((number / 1024) % 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 701 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(toNullable(2))) AS x3, toUInt8(materialize(toUInt128(1)), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE sum(if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), toNullable(23), toNullable(100)) AND (c = 0), 1, 0)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(toNullable(2))) AS x3, toUInt8(materialize(toUInt128(1)), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE sum(if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), toNullable(23), toNullable(100)) AND (c = 0), 1, 0))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % materialize(toNullable(2))) AS x3, toUInt8(materialize(toUInt128(1)), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) WHERE sum(if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), toNullable(23), toNullable(100)) AND (c = 0), 1, 0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 702 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toNullable(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals((x1 OR x2) OR (x3 OR x4), or1, or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toNullable(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals((x1 OR x2) OR (x3 OR x4), or1, or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toNullable(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals((x1 OR x2) OR (x3 OR x4), or1, or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 703 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((((intDiv(toUInt32(rtime), 20) * 20) * 1000) OR x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, round((sum(multiIf(in(s, toUInt128(23), ('a', 'b')), materialize(1), 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * toLowCardinality(toNullable(100))), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((((intDiv(toUInt32(rtime), 20) * 20) * 1000) OR x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, round((sum(multiIf(in(s, toUInt128(23), ('a', 'b')), materialize(1), 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * toLowCardinality(toNullable(100))), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, round((sum(multiIf(in(s, toUInt128(23), ('a', 'b')), materialize(1), 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * toLowCardinality(toNullable(100))), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 31. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 Fuzzing step 704 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(toNullable(0) AND 1000 AND x3 AND x4, xor(x6, x7), xor(x8, xor(x9, xor(day = '2022-01-01', x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toUInt128(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(toNullable(0) AND 1000 AND x3 AND x4, xor(x6, x7), xor(x8, xor(x9, xor(day = '2022-01-01', x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toUInt128(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'day' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(toNullable(0) AND 1000 AND x3 AND x4, xor(x6, x7), xor(x8, xor(x9, xor(day = '2022-01-01', x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toUInt128(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 705 out of 1000 SELECT xor(x1, x2, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(toNullable(2)))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(toUInt8(toNullable(toLowCardinality(toNullable(23))), (number / toUInt256(8)) % toUInt128(materialize(toUInt256(2)))), (number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toLowCardinality(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(toNullable(2)))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(toUInt8(toNullable(toLowCardinality(toNullable(23))), (number / toUInt256(8)) % toUInt128(materialize(toUInt256(2)))), (number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toLowCardinality(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toLowCardinality(toNullable(2)))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(toUInt8(toNullable(toLowCardinality(toNullable(23))), (number / toUInt256(8)) % toUInt128(materialize(toUInt256(2)))), (number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toLowCardinality(1024)) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000087714ea 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 706 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR if((b != toNullable(100)) AND (c = 0), materialize(1), 0) OR ((x6 OR x7) OR or(x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8(divide(toNullable(toNullable(0)), number, 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR if((b != toNullable(100)) AND (c = 0), materialize(1), 0) OR ((x6 OR x7) OR or(x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8(divide(toNullable(toNullable(0)), number, 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8(divide(toNullable(toNullable(0)), number, 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 707 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(toNullable(1), xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100, xor((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR t__fuzz_21 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(toNullable(1), xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100, xor((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR t__fuzz_21 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(toNullable(1), xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100, xor((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR t__fuzz_21 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 31. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 Fuzzing step 708 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, (c > toLowCardinality(220)) OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / materialize(32)) % 2) AS x6, toUInt8(divide(toUInt8((number / toNullable(toUInt256(32))) % 2), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, (c > toLowCardinality(220)) OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / materialize(32)) % 2) AS x6, toUInt8(divide(toUInt8((number / toNullable(toUInt256(32))) % 2), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / materialize(32)) % 2) AS x6, toUInt8(divide(toUInt8((number / toNullable(toUInt256(32))) % 2), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 709 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(toUInt256(23)), number, 8) % 2) AS x4, toUInt8((number / toLowCardinality(toUInt256(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toNullable(2)) AS x7, toUInt8((number / 128) % materialize(toUInt256(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR or(or1 != or2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(toUInt256(23)), number, 8) % 2) AS x4, toUInt8((number / toLowCardinality(toUInt256(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toNullable(2)) AS x7, toUInt8((number / 128) % materialize(toUInt256(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(or1 != or2)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 4, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(toUInt256(23)), number, 8) % 2) AS x4, toUInt8((number / toLowCardinality(toUInt256(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toNullable(2)) AS x7, toUInt8((number / 128) % materialize(toUInt256(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 710 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), nums__fuzz_21, xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x6 AND x7)) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), nums__fuzz_21, xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x6 AND x7)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 711 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), toNullable(100)) AND (c = 0), 1, 0) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), toNullable(100)) AND (c = 0), 1, 0) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 712 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / materialize(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / materialize(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / materialize(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 713 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 26. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 714 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(nums__fuzz_12, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % materialize(toLowCardinality(2))) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(toUInt128(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(nums__fuzz_12, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % materialize(toLowCardinality(2))) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(toUInt128(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_12' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(nums__fuzz_12, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % materialize(toLowCardinality(2))) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % materialize(toUInt128(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 715 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(0, number / 64, 2)) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / toNullable(512))) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(0, number / 64, 2)) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / toNullable(512))) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(0, number / 64, 2)) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / toNullable(512))) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 716 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x2) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(toUInt8((number / 8) % toUInt128(materialize(2))), number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x2) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(toUInt8((number / 8) % toUInt128(materialize(2))), number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(toUInt8((number / 8) % toUInt128(materialize(2))), number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 717 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR cluster(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), toLowCardinality(23)), 23, currentDatabase(), t) OR x7) OR (x8 OR (x9 OR or(x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048) PREWHERE toUInt8(divide(number) % 2) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR cluster(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), toLowCardinality(23)), 23, currentDatabase(), t) OR x7) OR (x8 OR (x9 OR or(x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048) PREWHERE toUInt8(divide(number) % 2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048) PREWHERE toUInt8(divide(number) % 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 718 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toUInt256(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 719 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, cluster('test_cluster_two_shards', currentDatabase(), t), x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(toUInt128(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % materialize(2)) AS x10, toUInt8((number / 1024) % materialize(toUInt256(2))) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (if((a >= 0) AND (b != toNullable(toUInt128(100))) AND equals(c, toLowCardinality(1), 0), 1, 0) OR (and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, cluster('test_cluster_two_shards', currentDatabase(), t), x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(toUInt128(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % materialize(2)) AS x10, toUInt8((number / 1024) % materialize(toUInt256(2))) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (if((a >= 0) AND (b != toNullable(toUInt128(100))) AND equals(c, toLowCardinality(1), 0), 1, 0) OR (and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, cluster('test_cluster_two_shards', currentDatabase(), t), x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(toUInt128(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % materialize(2)) AS x10, toUInt8((number / 1024) % materialize(toUInt256(2))) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (if((a >= 0) AND (b != toNullable(toUInt128(100))) AND equals(c, toLowCardinality(1), 0), 1, 0) OR (and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 720 out of 1000 EXPLAIN TABLE OVERRIDE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(materialize(toUInt256(23)))), 23), toNullable(23)), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals(xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(materialize(toUInt256(23)))), 23), toNullable(23)), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('xor'): xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 721 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR if((a >= toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220), 1, 0) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS, number / 1024, 2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR if((a >= toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220), 1, 0) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS, number / 1024, 2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(sum(multiIf(s IN ('a', 'b'), materialize(1), toLowCardinality(0))) IGNORE NULLS, number / 1024, 2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 722 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number / toUInt128(materialize(toLowCardinality(4))), number, 512) % 2) AS x10, toUInt8(modulo(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number / toUInt128(materialize(toLowCardinality(4))), number, 512) % 2) AS x10, toUInt8(modulo(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number / toUInt128(materialize(toLowCardinality(4))), number, 512) % 2) AS x10, toUInt8(modulo(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 723 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR sum(if((a >= 0) AND (b != toLowCardinality(toUInt256(100))) AND (c = toNullable(0)), 1, 0)) IGNORE NULLS OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / materialize(toUInt128(256))) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR sum(if((a >= 0) AND (b != toLowCardinality(toUInt256(100))) AND (c = toNullable(0)), 1, 0)) IGNORE NULLS OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / materialize(toUInt128(256))) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR sum(if((a >= 0) AND (b != toLowCardinality(toUInt256(100))) AND (c = toNullable(0)), 1, 0)) IGNORE NULLS OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / materialize(toUInt128(256))) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 724 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x4 OR x5) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(sum(if(1 AND (c > 220), 1, 0)), modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, toUInt256(toNullable(23)), 2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x4 OR x5) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(sum(if(1 AND (c > 220), 1, 0)), modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, toUInt256(toNullable(23)), 2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(sum(if(1 AND (c > 220), 1, 0)), modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, toUInt256(toNullable(23)), 2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 725 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR (intDiv(toUInt32(rtime), 20) * 1000) OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(toLowCardinality(1)), 0) AND x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8((number / 8) % toUInt128(materialize(2)), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(nums__fuzz_27, modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR (intDiv(toUInt32(rtime), 20) * 1000) OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(toLowCardinality(1)), 0) AND x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8((number / 8) % toUInt128(materialize(2)), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(nums__fuzz_27, modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8((number / 8) % toUInt128(materialize(2)), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(nums__fuzz_27, modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 726 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % materialize(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 727 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(toUInt256(1000), number, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(toUInt256(1000), number, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(toUInt256(1000), number, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 728 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 729 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % toNullable(2)) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / materialize(toNullable(128))) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % toNullable(2)) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / materialize(toNullable(128))) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % toNullable(2)) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / materialize(toNullable(128))) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 730 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE 41 WHERE or(xor1 != xor2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE 41 WHERE or(xor1 != xor2)': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE 41 WHERE or(xor1 != xor2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 26. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 731 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(sum(if(greaterOrEquals(sum(if((b != materialize(materialize(toNullable(1))), 100) AND (c = 0), toUInt128(1), 0)), a, 0) AND splitByChar(toLowCardinality(' '), getOSKernelVersion()) AND 1, 1, 0)) IGNORE NULLS, number, 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / materialize(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(sum(if(greaterOrEquals(sum(if((b != materialize(materialize(toNullable(1))), 100) AND (c = 0), toUInt128(1), 0)), a, 0) AND splitByChar(toLowCardinality(' '), getOSKernelVersion()) AND 1, 1, 0)) IGNORE NULLS, number, 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / materialize(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(modulo(sum(if(greaterOrEquals(sum(if((b != materialize(materialize(toNullable(1))), 100) AND (c = 0), toUInt128(1), 0)), a, 0) AND splitByChar(toLowCardinality(' '), getOSKernelVersion()) AND 1, 1, 0)) IGNORE NULLS, number, 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / materialize(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 29. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 Fuzzing step 732 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), nums__fuzz_46, xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo((a >= 0) AND 1 AND (c > 220), number / 2, 2)) AS x2, toUInt8((number / toNullable(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toUInt256(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), nums__fuzz_46, xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo((a >= 0) AND 1 AND (c > 220), number / 2, 2)) AS x2, toUInt8((number / toNullable(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toUInt256(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo((a >= 0) AND 1 AND (c > 220), number / 2, 2)) AS x2, toUInt8((number / toNullable(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toUInt256(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 733 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 734 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, (a >= 0) AND (c = 0), x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt128(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY x10 OR x11 ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, (a >= 0) AND (c = 0), x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0))) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt128(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY x10 OR x11) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt128(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY x10 OR x11. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 735 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toNullable(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 736 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 737 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR or(and1 != and2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(and1 != and2)': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(and1 != and2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 738 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number, nums__fuzz_11, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(23)))), version_pair[toLowCardinality(1)] ) WHERE (xor1 != xor2) OR or(or1 != or2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number, nums__fuzz_11, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(23)))), version_pair[toLowCardinality(1)]) WHERE (xor1 != xor2) OR or(or1 != or2)': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number, nums__fuzz_11, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(23)))), version_pair[toLowCardinality(1)]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 739 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt256(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt256(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt256(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 740 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(and(x10))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(x8 AND (x9 AND (x10 AND x11)), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(and(x10))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(x8 AND (x9 AND (x10 AND x11)), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x9' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(x8 AND (x9 AND (x10 AND x11)), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048). Maybe you meant: ['x9']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 741 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(intDiv(toUInt32(rtime), toUInt256(materialize(toNullable(20)))), xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toUInt256(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(intDiv(toUInt32(rtime), toUInt256(materialize(toNullable(20)))), xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toUInt256(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(intDiv(toUInt32(rtime), toUInt256(materialize(toNullable(20)))), xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toUInt256(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 742 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), if((a >= 0) AND notEquals(23, b, 100) AND (c = 0), materialize(1), 0), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((((c = toUInt128(toNullable(0))) OR x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((((((x1 AND x2) AND (0 AND 1000 AND x3 AND x4)) AND (a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(2, 23)), toNullable(100))) AND x2 AND x3) AND (x4 AND x5)) AND ((number / toNullable(2)) AND (x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), if((a >= 0) AND notEquals(23, b, 100) AND (c = 0), materialize(1), 0), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((((c = toUInt128(toNullable(0))) OR x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((((((x1 AND x2) AND (0 AND 1000 AND x3 AND x4)) AND (a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(2, 23)), toNullable(100))) AND x2 AND x3) AND (x4 AND x5)) AND ((number / toNullable(2)) AND (x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), if((a >= 0) AND notEquals(23, b, 100) AND (c = 0), materialize(1), 0), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((((c = toUInt128(toNullable(0))) OR x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((((((x1 AND x2) AND (0 AND 1000 AND x3 AND x4)) AND (a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(2, 23)), toNullable(100))) AND x2 AND x3) AND (x4 AND x5)) AND ((number / toNullable(2)) AND (x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 743 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 744 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x1, x3), xor(x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, x4 OR x5, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x1, x3), xor(x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, x4 OR x5, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, x4 OR x5, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 745 out of 1000 EXPLAIN PIPELINE compact = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toUInt128(2)) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toUInt128(2)) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 746 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR if((b != 100) AND (c = toNullable(0)), toNullable(1), 0) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (sum(if(greaterOrEquals(a, toLowCardinality(23), 0) AND 1 AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AND x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toLowCardinality(2)) AS x7, toUInt8(divide(number, if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0), 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512, x8 AND (x9 AND (x10 AND x11)), 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(toUInt256(220), or1, or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR if((b != 100) AND (c = toNullable(0)), toNullable(1), 0) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (sum(if(greaterOrEquals(a, toLowCardinality(23), 0) AND 1 AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS AND x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toLowCardinality(2)) AS x7, toUInt8(divide(number, if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0), 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512, x8 AND (x9 AND (x10 AND x11)), 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(toUInt256(220), or1, or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toLowCardinality(2)) AS x7, toUInt8(divide(number, if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0), 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512, x8 AND (x9 AND (x10 AND x11)), 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 747 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor((a >= toUInt256(0)) AND 1, x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR 220 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor((a >= toUInt256(0)) AND 1, x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR 220 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor((a >= toUInt256(0)) AND 1, x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR 220 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 748 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(x1) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((76 AND x6 AND x7) AND (x8 AND (number / toUInt256(4)) AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(x1) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((76 AND x6 AND x7) AND (x8 AND (number / toUInt256(4)) AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 749 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x2) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x2) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x2) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 750 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY nums__fuzz_6, toNullable(toUInt128(16)), materialize(0) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY nums__fuzz_6, toNullable(toUInt128(16)), materialize(0)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 751 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(sum(multiIf(s IN ('a', 'b'), toNullable(materialize(sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)), toNullable(1))), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, toUInt128(toLowCardinality(1)), 32) % 2) AS x6, toUInt8(modulo(number / toLowCardinality(64))) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE ((sum(multiIf(s IN ('a', 'b'), 1, materialize(toNullable(toUInt256(0))))) IGNORE NULLS / count()) * toLowCardinality(100)) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(sum(multiIf(s IN ('a', 'b'), toNullable(materialize(sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)), toNullable(1))), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, toUInt128(toLowCardinality(1)), 32) % 2) AS x6, toUInt8(modulo(number / toLowCardinality(64))) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE ((sum(multiIf(s IN ('a', 'b'), 1, materialize(toNullable(toUInt256(0))))) IGNORE NULLS / count()) * toLowCardinality(100)) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(sum(multiIf(s IN ('a', 'b'), toNullable(materialize(sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)), toNullable(1))), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, toUInt128(toLowCardinality(1)), 32) % 2) AS x6, toUInt8(modulo(number / toLowCardinality(64))) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 752 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR (number / 256) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % materialize(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR (number / 256) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % materialize(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR (number / 256) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % materialize(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 753 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (toLowCardinality(toUInt256(23)) AND x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(toNullable(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (toLowCardinality(toUInt256(23)) AND x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(toNullable(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(toNullable(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 754 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR or(and1 != and2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(and1 != and2)': Received from localhost:9000. DB::Exception: Illegal type (FixedString(23)) of 1 argument of function xor: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(and1 != and2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d156b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 755 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toNullable(2048)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toNullable(2048))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt16) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 756 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toUInt256(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toUInt256(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toUInt256(1024)) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 757 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(notEquals(100) AND (c = toNullable(0)), modulo(toFixedString(' ', 1, 1), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(2)) AS x7, toUInt8((number / toUInt256(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(notEquals(100) AND (c = toNullable(0)), modulo(toFixedString(' ', 1, 1), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(2)) AS x7, toUInt8((number / toUInt256(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(notEquals(100) AND (c = toNullable(0)), modulo(toFixedString(' ', 1, 1), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(2)) AS x7, toUInt8((number / toUInt256(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 758 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(Memory, x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(toUInt256(materialize(x1 OR x2 OR x3, toNullable(8))), (number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(Memory, x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(toUInt256(materialize(x1 OR x2 OR x3, toNullable(8))), (number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(toUInt256(materialize(x1 OR x2 OR x3, toNullable(8))), (number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 759 out of 1000 EXPLAIN PIPELINE compact = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toNullable(toNullable(0)) AND 1000 AND x3 AND x4, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((b != 100) AND (c = 0), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toNullable(toNullable(0)) AND 1000 AND x3 AND x4, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((b != 100) AND (c = 0), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 760 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x2 AND x3, x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 761 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toUInt128(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 762 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23, 23), 23) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND and(x9 AND (x10 AND x11))) AS and2 FROM ( SELECT toUInt8(arrayElement(materialize(toNullable(1))), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(toUInt128(1024))) % 2) AS x11 FROM numbers(toUInt8((number / 8) % toUInt128(2)), 2048) ) WHERE notEquals(xor1, toFixedString('2022-01-01', toLowCardinality(10)), xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23, 23), 23) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND and(x9 AND (x10 AND x11))) AS and2 FROM (SELECT toUInt8(arrayElement(materialize(toNullable(1))), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(toUInt128(1024))) % 2) AS x11 FROM numbers(toUInt8((number / 8) % toUInt128(2)), 2048)) WHERE notEquals(xor1, toFixedString('2022-01-01', toLowCardinality(10)), xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'toUInt8((number / 8) % toUInt128(2))', required columns: 'number' 'number'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 8. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf2e5b 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 763 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(0))), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(0))), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(sum(if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(0))), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 764 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(toNullable(materialize(toNullable(1))), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(toNullable(materialize(toNullable(1))), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(toNullable(materialize(toNullable(1))), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 765 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(128, number / 64, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS, 2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(128, number / 64, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS, 2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(in(s, ('a', 'b')), materialize(toLowCardinality(1)), 0)) IGNORE NULLS is found in wrong place in query: While processing sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a99b 7. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 8. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 9. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 10. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 11. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf2e5b 12. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 13. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 766 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(toNullable(toUInt256(2)), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(toNullable(toUInt256(2)), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 767 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % materialize(toLowCardinality(2))) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toUInt256(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % materialize(toLowCardinality(2))) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toUInt256(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x4' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % materialize(toLowCardinality(2))) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toUInt256(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 768 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo((and1 != and2) OR (or1 != or2), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % materialize(toLowCardinality(2))) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toUInt128(2048)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo((and1 != and2) OR (or1 != or2), number / 128, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % materialize(toLowCardinality(2))) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toUInt128(2048))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type UInt128 expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 769 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(16)) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 770 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000087714ea 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 771 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 772 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, t__fuzz_46, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(number, (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(r1 * 100, or1, or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, t__fuzz_46, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(number, (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(r1 * 100, or1, or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(number, (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 773 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 774 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / toNullable(1024), sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS, 2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR round((sum(multiIf(s IN ('a', 'b'), toLowCardinality(1), 0)) IGNORE NULLS / count()) * materialize(100)) OR ((and1 != and2) OR notEquals(or1)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / toNullable(1024), sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS, 2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR round((sum(multiIf(s IN ('a', 'b'), toLowCardinality(1), 0)) IGNORE NULLS / count()) * materialize(100)) OR ((and1 != and2) OR notEquals(or1))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / toNullable(1024), sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0)) IGNORE NULLS, 2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 775 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 776 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(toFixedString('test_cluster_two_shards', toNullable(23), 23), number / 2, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(toFixedString('test_cluster_two_shards', toNullable(23), 23), number / 2, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(toFixedString('test_cluster_two_shards', toNullable(23), 23), number / 2, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 777 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23), currentDatabase(), t) OR x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23), currentDatabase(), t) OR x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23), currentDatabase(), t) OR x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 778 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1))': Received from localhost:9000. DB::Exception: Number of arguments for function notEquals doesn't match: passed 1, should be 2: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 779 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR if(1 AND (c > 220), toUInt256(1), 0) OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))) AND x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(number, toLowCardinality(0), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100), toLowCardinality(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR if(1 AND (c > 220), toUInt256(1), 0) OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))) AND x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(number, toLowCardinality(0), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100), toLowCardinality(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(modulo(number, toLowCardinality(0), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100), toLowCardinality(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 780 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (toUInt256(20) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (greaterOrEquals(0) AND (b != 100) AND (c > 220)) AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (toUInt256(20) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (greaterOrEquals(0) AND (b != 100) AND (c > 220)) AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 781 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 782 out of 1000 EXPLAIN TABLE OVERRIDE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND t AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toNullable(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(toNullable(1024))) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND t AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toNullable(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(toNullable(1024))) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('xor'): xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 783 out of 1000 EXPLAIN QUERY TREE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23)), 23), currentDatabase(), t), divide(x8 AND (x9 AND (x10 AND x11)), number, 128), 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN QUERY TREE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23)), 23), currentDatabase(), t), divide(x8 AND (x9 AND (x10 AND x11)), number, 128), 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23)), 23), currentDatabase(), t), divide(x8 AND (x9 AND (x10 AND x11)), number, 128), 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 784 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / toNullable(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(greaterOrEquals(0) AND (b != 100) AND (c > 220), (number / 128) % 2) AS x8, toUInt8(divide(number, toUInt256(220), 256) % 2) AS x9, toUInt8((number / toNullable(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / toNullable(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(greaterOrEquals(0) AND (b != 100) AND (c > 220), (number / 128) % 2) AS x8, toUInt8(divide(number, toUInt256(220), 256) % 2) AS x9, toUInt8((number / toNullable(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / toNullable(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(greaterOrEquals(0) AND (b != 100) AND (c > 220), (number / 128) % 2) AS x8, toUInt8(divide(number, toUInt256(220), 256) % 2) AS x9, toUInt8((number / toNullable(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 785 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x11 AS and1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(sum(if((a >= toLowCardinality(0)) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0)) IGNORE NULLS, (number / toLowCardinality(toUInt128(512))) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE if((a >= 0) AND 1 AND (c > 220), toUInt256(toLowCardinality(toUInt128(1))), 0) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x11 AS and1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(sum(if((a >= toLowCardinality(0)) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0)) IGNORE NULLS, (number / toLowCardinality(toUInt128(512))) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE if((a >= 0) AND 1 AND (c > 220), toUInt256(toLowCardinality(toUInt128(1))), 0) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(sum(if((a >= toLowCardinality(0)) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0)) IGNORE NULLS, (number / toLowCardinality(toUInt128(512))) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 786 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 8) % toLowCardinality(2), (number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 8) % toLowCardinality(2), (number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 8) % toLowCardinality(2), (number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 787 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x6' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 788 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (xor(x1, x2, x3, x4) AND (x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS, number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(round(multiply(divide(sum(multiIf((x9 OR (x10 OR x11)) IN ('a', 'b'), 1, 0)) IGNORE NULLS, sum(t__fuzz_41, if((b != toNullable(100)) AND toNullable(toUInt256(100)) AND (c = 0), 1, 0)) IGNORE NULLS, count()), multiIf(s IN toLowCardinality(('a', 'b')), toUInt128(1), 0), 100)), (number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (numbers(materialize(toUInt128(2048))) OR notEquals((number / 2) % materialize(2), and1, and2) OR notEquals(or1, multiply(t__fuzz_21, intDiv(toUInt32(rtime), toNullable(20)), 20) * toNullable(1000), or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (xor(x1, x2, x3, x4) AND (x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS, number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(round(multiply(divide(sum(multiIf((x9 OR (x10 OR x11)) IN ('a', 'b'), 1, 0)) IGNORE NULLS, sum(t__fuzz_41, if((b != toNullable(100)) AND toNullable(toUInt256(100)) AND (c = 0), 1, 0)) IGNORE NULLS, count()), multiIf(s IN toLowCardinality(('a', 'b')), toUInt128(1), 0), 100)), (number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (numbers(materialize(toUInt128(2048))) OR notEquals((number / 2) % materialize(2), and1, and2) OR notEquals(or1, multiply(t__fuzz_21, intDiv(toUInt32(rtime), toNullable(20)), 20) * toNullable(1000), or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS, number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(round(multiply(divide(sum(multiIf((x9 OR (x10 OR x11)) IN ('a', 'b'), 1, 0)) IGNORE NULLS, sum(t__fuzz_41, if((b != toNullable(100)) AND toNullable(toUInt256(100)) AND (c = 0), 1, 0)) IGNORE NULLS, count()), multiIf(s IN toLowCardinality(('a', 'b')), toUInt128(1), 0), 100)), (number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 789 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, materialize(toLowCardinality(1)), x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (((a >= 0) AND 1 AND (c > 220)) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY (b != 100) AND (c > 220), divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(Log, 0))), number, 16) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, materialize(toLowCardinality(1)), x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (((a >= 0) AND 1 AND (c > 220)) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY (b != 100) AND (c > 220), divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(Log, 0))), number, 16)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY (b != 100) AND (c > 220), divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(Log, 0))), number, 16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 790 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(1024, number / 512, 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(1024, number / 512, 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(1024, number / 512, 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 791 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR materialize(toNullable(toFixedString(' ', 1))) OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toNullable(toUInt256(2)))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0))), 1, 0), b != 100, cluster(toFixedString(toFixedString(toFixedString(toFixedString(toUInt256(23)), toNullable(23)), toNullable(23)), 23), currentDatabase(), t), if((a >= toUInt256(toNullable(toNullable(1)))) AND 1, 1, 0), divide(number, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), currentDatabase(), t), materialize(2)) % 2 ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR materialize(toNullable(toFixedString(' ', 1))) OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toNullable(toUInt256(2)))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0))), 1, 0), b != 100, cluster(toFixedString(toFixedString(toFixedString(toFixedString(toUInt256(23)), toNullable(23)), toNullable(23)), 23), currentDatabase(), t), if((a >= toUInt256(toNullable(toNullable(1)))) AND 1, 1, 0), divide(number, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), currentDatabase(), t), materialize(2)) % 2) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % materialize(toNullable(toUInt256(2)))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0))), 1, 0), b != 100, cluster(toFixedString(toFixedString(toFixedString(toFixedString(toUInt256(23)), toNullable(23)), toNullable(23)), 23), currentDatabase(), t), if((a >= toUInt256(toNullable(toNullable(1)))) AND 1, 1, 0), divide(number, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23)), currentDatabase(), t), materialize(2)) % 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 792 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, numbers(16), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, numbers(16), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Function with name 'numbers' does not exist. In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, numbers(16), 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000002141cd37 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3232: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b971c 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 793 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x2) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toUInt128(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x2) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toUInt128(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toUInt128(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 794 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt256(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(41, number, 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS, and1, and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt256(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(41, number, 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(sum(if((b != 100) AND (c > 220), 1, 0)) IGNORE NULLS, and1, and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt256(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(41, number, 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 795 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8(divide(t__fuzz_18, number, 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048) WHERE sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(toLowCardinality(0)))), 1, 0)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8(divide(t__fuzz_18, number, 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048) WHERE sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(toLowCardinality(0)))), 1, 0))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8(divide(t__fuzz_18, number, 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048) WHERE sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(toLowCardinality(0)))), 1, 0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 796 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(toLowCardinality(1000) AND x3 AND x4, number / 256, 2)) AS x9, toUInt8((number / 512) % toUInt256(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(toLowCardinality(1000) AND x3 AND x4, number / 256, 2)) AS x9, toUInt8((number / 512) % toUInt256(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(toLowCardinality(1000) AND x3 AND x4, number / 256, 2)) AS x9, toUInt8((number / 512) % toUInt256(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 797 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, (number / 128) % 2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(toLowCardinality(materialize(1)), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(toNullable(' '), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, (number / 128) % 2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(toLowCardinality(materialize(1)), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(toNullable(' '), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(toLowCardinality(materialize(1)), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(toNullable(' '), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 798 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND xor(x1, x2) AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND ((number / 2) % materialize(2)) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(1024, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND xor(x1, x2) AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND ((number / 2) % materialize(2)) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(1024, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(1024, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 799 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND (a >= 0) AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(nums__fuzz_47, (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND (a >= 0) AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(nums__fuzz_47, (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_47' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(nums__fuzz_47, (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 800 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(divide(number, toLowCardinality(0), toUInt256(8)) % 2, x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY toFixedString(toFixedString('test_cluster_two_shards', 23), 23), materialize(toUInt128(1)), toNullable(8) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(divide(number, toLowCardinality(0), toUInt256(8)) % 2, x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY toFixedString(toFixedString('test_cluster_two_shards', 23), 23), materialize(toUInt128(1)), toNullable(8)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Column number is not under aggregate function and not in GROUP BY keys. In query SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY toFixedString(toFixedString('test_cluster_two_shards', 23), 23), materialize(toUInt128(1)), toNullable(8). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 9. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 10. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033593a48 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 801 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)) OR x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(materialize(toUInt128(2)), number, 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toLowCardinality(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8(divide(number, s, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(sum(if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, 0)) OR x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(materialize(toUInt128(2)), number, 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toLowCardinality(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8(divide(number, s, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(materialize(toUInt128(2)), number, 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toLowCardinality(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8(divide(number, s, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 802 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % materialize(toNullable(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toUInt128(2048)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % materialize(toNullable(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toUInt128(2048))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type UInt128 expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 803 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND if((a >= 0) AND (b != 100) AND (c > 220), 1, 0) AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND if((a >= 0) AND (b != 100) AND (c > 220), 1, 0) AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 804 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, 128, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (if(notEquals(t__fuzz_41, b, 100) AND (c > 220), 1, toNullable(0)) AND (x6 AND x7) AND (x8 AND (x9 AND materialize(2) AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toNullable(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY toFixedString(materialize(' '), 1) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, 128, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (if(notEquals(t__fuzz_41, b, 100) AND (c > 220), 1, toNullable(0)) AND (x6 AND x7) AND (x8 AND (x9 AND materialize(2) AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toNullable(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY toFixedString(materialize(' '), 1)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_41' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, 128, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (if(notEquals(t__fuzz_41, b, 100) AND (c > 220), 1, toNullable(0)) AND (x6 AND x7) AND (x8 AND (x9 AND materialize(2) AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toNullable(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY toFixedString(materialize(' '), 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 805 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) RESPECT NULLS / count() IGNORE NULLS) * 100), xor(xor(xor(x2), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE toLowCardinality(toUInt256(toLowCardinality(toUInt256(23)))) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) RESPECT NULLS / count() IGNORE NULLS) * 100), xor(xor(xor(x2), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE toLowCardinality(toUInt256(toLowCardinality(toUInt256(23))))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x10' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) RESPECT NULLS / count() IGNORE NULLS) * 100), xor(xor(xor(x2), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE toLowCardinality(toUInt256(toLowCardinality(toUInt256(23))))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 806 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (toNullable(toNullable(1)) OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (toNullable(toNullable(1)) OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('xor'): xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 807 out of 1000 SELECT xor(x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY greaterOrEquals(a, toNullable(toNullable(1)), 0) AND 1 ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND toUInt8((number / toUInt256(toNullable(8))) % toUInt128(toUInt256(2))) AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY greaterOrEquals(a, toNullable(toNullable(1)), 0) AND 1) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY greaterOrEquals(a, toNullable(toNullable(1)), 0) AND 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 808 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)), number, 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512, toFixedString(' ', toLowCardinality(toUInt128(1))), 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)), number, 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512, toFixedString(' ', toLowCardinality(toUInt128(1))), 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(sum(multiIf(s IN ('a', 'b'), 1, 0)), number, 4) % 2) AS x3, toUInt8(divide(8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512, toFixedString(' ', toLowCardinality(toUInt128(1))), 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 809 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % materialize(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 810 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 811 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, arrayJoin(['a', 'b', 'c']), 4) % 2) AS x3, toUInt8(modulo(number / 8, 1 AND x1 AND x2 AND x3 AND x4, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((a >= toUInt128(0)) AND (c > 220), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, arrayJoin(['a', 'b', 'c']), 4) % 2) AS x3, toUInt8(modulo(number / 8, 1 AND x1 AND x2 AND x3 AND x4, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((a >= toUInt128(0)) AND (c > 220), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number, arrayJoin(['a', 'b', 'c']), 4) % 2) AS x3, toUInt8(modulo(number / 8, 1 AND x1 AND x2 AND x3 AND x4, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((a >= toUInt128(0)) AND (c > 220), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 812 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(toUInt256(20), number, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(toUInt256(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(toUInt256(20), number, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(toUInt256(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(toUInt256(20), number, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(toUInt256(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 813 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (xor(x6, x7) OR (x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, xor(x8, xor(x9, xor(x10, x11))), toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / toNullable(512), cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23), currentDatabase(), t), 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (xor(x6, x7) OR (x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, xor(x8, xor(x9, xor(x10, x11))), toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / toNullable(512), cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23), currentDatabase(), t), 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, xor(x8, xor(x9, xor(x10, x11))), toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / toNullable(512), cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23), currentDatabase(), t), 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x000000003347faee 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x0000000033482f89 16. ./src/Analyzer/Resolve/IdentifierLookup.h:47: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x0000000033450173 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 30. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 Fuzzing step 814 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(toUInt256(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(toUInt256(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 3 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(toUInt256(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000087714ea 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 815 out of 1000 SELECT xor(x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toUInt8((number / toUInt256(4)) % toLowCardinality(2)), 2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR or(x9)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toUInt8((number / toUInt256(4)) % toLowCardinality(2)), 2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'toUInt8((number / toUInt256(4)) % toLowCardinality(2))', required columns: 'number' 'number'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1536: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000035653c9d 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 8. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf2e5b 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 816 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(2, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(toUInt256(materialize(toLowCardinality(toUInt128(1)))), number, 1024) % toUInt128(2)) AS x11 FROM numbers(2048) PREWHERE toFixedString(' ', toUInt256(1)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(2, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(toUInt256(materialize(toLowCardinality(toUInt128(1)))), number, 1024) % toUInt128(2)) AS x11 FROM numbers(2048) PREWHERE toFixedString(' ', toUInt256(1))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(2, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(toUInt256(materialize(toLowCardinality(toUInt128(1)))), number, 1024) % toUInt128(2)) AS x11 FROM numbers(2048) PREWHERE toFixedString(' ', toUInt256(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 817 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 818 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((if((a >= 0) AND (c > 220), 1, toLowCardinality(0)) AND x2 AND x3) AND (x4 AND x5)) AND (and(x6) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, count(materialize(1)) IGNORE NULLS, 2)) AS x7, toUInt8(cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((if((a >= 0) AND (c > 220), 1, toLowCardinality(0)) AND x2 AND x3) AND (x4 AND x5)) AND (and(x6) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, count(materialize(1)) IGNORE NULLS, 2)) AS x7, toUInt8(cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, count(materialize(1)) IGNORE NULLS, 2)) AS x7, toUInt8(cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 819 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (sum(t__fuzz_41, if((b != materialize(toLowCardinality(toNullable(100)))) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toLowCardinality(toNullable(2))) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(toLowCardinality(1000) AND x3 AND x4, number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (sum(t__fuzz_41, if((b != materialize(toLowCardinality(toNullable(100)))) AND 100 AND (c = 0), 1, 0)) IGNORE NULLS OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toLowCardinality(toNullable(2))) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(toLowCardinality(1000) AND x3 AND x4, number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toLowCardinality(toNullable(2))) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(toLowCardinality(1000) AND x3 AND x4, number, 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 820 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR sum(if(greaterOrEquals(a, toUInt256(toNullable(1)), 0) AND 1, 1, 0)) IGNORE NULLS OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(b != toLowCardinality(100), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR sum(if(greaterOrEquals(a, toUInt256(toNullable(1)), 0) AND 1, 1, 0)) IGNORE NULLS OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(b != toLowCardinality(100), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(b != toLowCardinality(100), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toLowCardinality(2)) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 821 out of 1000 EXPLAIN SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toLowCardinality(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toLowCardinality(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toLowCardinality(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 822 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x6 AND x7)) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toLowCardinality(toUInt128(2))) AS x7, toUInt8(sum(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0)), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x6 AND x7)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toLowCardinality(toUInt128(2))) AS x7, toUInt8(sum(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0)), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toLowCardinality(toUInt128(2))) AS x7, toUInt8(sum(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0)), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 823 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (((b != toLowCardinality(100)) AND (c > 220)) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, toFixedString(toNullable('test_cluster_two_shards'), 23), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (((b != toLowCardinality(100)) AND (c > 220)) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, toFixedString(toNullable('test_cluster_two_shards'), 23), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, toFixedString(toNullable('test_cluster_two_shards'), 23), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 824 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 825 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128, nums__fuzz_5, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and1, (b != 100) AND (c = 0), and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128, nums__fuzz_5, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and1, (b != 100) AND (c = 0), and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128, nums__fuzz_5, 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 826 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (toUInt256('2022-01-01', 10, 100) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND toUInt256(toNullable(8)) AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(x1 OR x2 OR x3, number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128, toLowCardinality(materialize(materialize(1))), 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE or(xor1 != xor2) Error on processing query 'EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (toUInt256('2022-01-01', 10, 100) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND toUInt256(toNullable(8)) AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(x1 OR x2 OR x3, number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128, toLowCardinality(materialize(materialize(1))), 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or(xor1 != xor2)': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(x1 OR x2 OR x3, number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(number / 128, toLowCardinality(materialize(materialize(1))), 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 25. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 26. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 827 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toLowCardinality(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 828 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR (x1 OR x2 OR x3 OR x4) OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), toNullable(1), 0), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR (x1 OR x2 OR x3 OR x4) OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), toNullable(1), 0), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), toNullable(1), 0), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 829 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(if((b != 100) AND (c = toLowCardinality((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0)), toNullable(1)), x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toLowCardinality(23), 23) OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, (x1 OR x2) OR (x3 OR x4), 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(if((b != 100) AND (c = toLowCardinality((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0)), toNullable(1)), x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toLowCardinality(23), 23) OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, (x1 OR x2) OR (x3 OR x4), 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, (x1 OR x2) OR (x3 OR x4), 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 830 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32, toUInt256(toNullable(toNullable(1))), 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32, toUInt256(toNullable(toNullable(1))), 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / 32, toUInt256(toNullable(toNullable(1))), 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 831 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 832 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 833 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * materialize(100)), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE (xor1 != xor2) OR (notEquals(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), toLowCardinality(0)), and1, and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * materialize(100)), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE (xor1 != xor2) OR (notEquals(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), toLowCardinality(0)), and1, and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * materialize(100)), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE (xor1 != xor2) OR (notEquals(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), toLowCardinality(0)), and1, and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 31. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 Fuzzing step 834 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((toUInt256('2022-01-01', 10, 100) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY sum(if(greaterOrEquals(round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100), a, 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))), toNullable(100)) AND (c = 0), 1, 0)), if((a >= 0) AND (b != materialize(100)) AND (c > 220), toFixedString(toLowCardinality('2022-01-01'), 10), 1, 0), sum(if((a >= 0) AND (b != toUInt128(100)) AND (c > toUInt256(220)), 1, 0)), cluster('test_cluster_two_shards', currentDatabase(), t) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (version_pair[1]) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR or((x2 OR x3) OR (x4 OR x5)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((toUInt256('2022-01-01', 10, 100) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY sum(if(greaterOrEquals(round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100), a, 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))), toNullable(100)) AND (c = 0), 1, 0)), if((a >= 0) AND (b != materialize(100)) AND (c > 220), toFixedString(toLowCardinality('2022-01-01'), 10), 1, 0), sum(if((a >= 0) AND (b != toUInt128(100)) AND (c > toUInt256(220)), 1, 0)), cluster('test_cluster_two_shards', currentDatabase(), t)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (version_pair[1]) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY sum(if(greaterOrEquals(round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100), a, 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))), toNullable(100)) AND (c = 0), 1, 0)), if((a >= 0) AND (b != materialize(100)) AND (c > 220), toFixedString(toLowCardinality('2022-01-01'), 10), 1, 0), sum(if((a >= 0) AND (b != toUInt128(100)) AND (c > toUInt256(220)), 1, 0)), cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 835 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND toNullable(1) AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 836 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'and2' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Maybe you meant: ['and1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 837 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR ((divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt256(1), toNullable(Log, 0))), number, 16) % 2) OR x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND sum(if(greaterOrEquals(a, toUInt8((number / 2) % toLowCardinality(2)), 0) AND toNullable(1), toLowCardinality(1), 0)) IGNORE NULLS AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt256(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR ((divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt256(1), toNullable(Log, 0))), number, 16) % 2) OR x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND sum(if(greaterOrEquals(a, toUInt8((number / 2) % toLowCardinality(2)), 0) AND toNullable(1), toLowCardinality(1), 0)) IGNORE NULLS AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt256(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR ((divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), toUInt256(1), toNullable(Log, 0))), number, 16) % 2) OR x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND sum(if(greaterOrEquals(a, toUInt8((number / 2) % toLowCardinality(2)), 0) AND toNullable(1), toLowCardinality(1), 0)) IGNORE NULLS AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt256(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 838 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8(divide(number, if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), 1, 0), 4) % 2) AS x3, toUInt8((number / materialize(toUInt256(8))) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8(divide(number, if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), 1, 0), 4) % 2) AS x3, toUInt8((number / materialize(toUInt256(8))) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(2)) AS x2, toUInt8(divide(number, if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), 1, 0), 4) % 2) AS x3, toUInt8((number / materialize(toUInt256(8))) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 839 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR ((number / 512) % 2) OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (toLowCardinality(toNullable(1)) OR x4 OR x5)) OR materialize(toLowCardinality(toUInt128(1))) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(sum(if((b != 100) AND (c > 220), 1, toNullable(0))) IGNORE NULLS, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / materialize(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR ((number / 512) % 2) OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (toLowCardinality(toNullable(1)) OR x4 OR x5)) OR materialize(toLowCardinality(toUInt128(1))) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(sum(if((b != 100) AND (c > 220), 1, toNullable(0))) IGNORE NULLS, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / materialize(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(sum(if((b != 100) AND (c > 220), 1, toNullable(0))) IGNORE NULLS, (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / materialize(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 840 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (toLowCardinality(toNullable(toNullable(0))) AND 1000 AND x3 AND x4) AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt128(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number, (a >= toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220), 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (toLowCardinality(toNullable(toNullable(0))) AND 1000 AND x3 AND x4) AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt128(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number, (a >= toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220), 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt128(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number, (a >= toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220), 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 841 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, nums__fuzz_22 OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND ((number / 128) % 2) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, nums__fuzz_22 OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND ((number / 128) % 2) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 842 out of 1000 EXPLAIN QUERY TREE dump_passes = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(x9 OR (x10 OR x11), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN QUERY TREE dump_passes = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(x9 OR (x10 OR x11), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "dump_passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 843 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 26. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 844 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE toUInt8(modulo(splitByChar(' ', getOSKernelVersion()), number / 2, 2)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE toUInt8(modulo(splitByChar(' ', getOSKernelVersion()), number / 2, 2))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE toUInt8(modulo(splitByChar(' ', getOSKernelVersion()), number / 2, 2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 845 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(toUInt8(number % 2), x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND ((x3 AND x4) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(toUInt8(number % 2), x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND ((x3 AND x4) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / materialize(1024)) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 846 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (if((a >= 0) AND (b != 100) AND (c = 0), 1, 0) AND (x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (if((a >= 0) AND (b != 100) AND (c = 0), 1, 0) AND (x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 847 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo((b != toNullable(100)) AND (c = toNullable(0)), number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(materialize(2048)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo((b != toNullable(100)) AND (c = toNullable(0)), number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(materialize(2048))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 848 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(sum(if((a >= 0) AND (b != toNullable(100)) AND 1 AND (c > 220), 1, 0)) OR x4 OR x5) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND cluster(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), 23), toLowCardinality(23)), currentDatabase(), t) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND t__fuzz_12 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(toUInt128(8))) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(sum(if((a >= 0) AND (b != toNullable(100)) AND 1 AND (c > 220), 1, 0)) OR x4 OR x5) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND cluster(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), 23), toLowCardinality(23)), currentDatabase(), t) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND t__fuzz_12 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(toUInt128(8))) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(toUInt128(8))) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 849 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, ((sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) / count()) * 100) AND x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / materialize(toUInt128(128))) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, ((sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) / count()) * 100) AND x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / materialize(toUInt128(128))) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / materialize(toUInt128(128))) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 850 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toUInt128(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toNullable(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(multiply(sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS / count(), t__fuzz_35, 100), 2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toUInt128(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toNullable(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(multiply(sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS / count(), t__fuzz_35, 100), 2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Aggregate function sum(multiIf(in(s, ('a', 'b')), toNullable(1), toLowCardinality(0))) IGNORE NULLS is found in wrong place in query: While processing sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./src/Interpreters/GetAggregatesVisitor.h:67: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000033ae7ff7 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033ae712b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bc5 7. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 8. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 9. ./src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000033ae8bd0 10. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:348: DB::assertNoAggregates(std::shared_ptr const&, char const*) @ 0x000000003566a9a7 11. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000356533d9 12. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000035822294 13. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 14. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 15. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf2e5b 16. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 17. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 22. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 851 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 852 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide((a >= 0) AND notEquals(b) AND 1 AND (c > 220), number, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((a >= 0) AND (c = 0), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (t__fuzz_35 OR (and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide((a >= 0) AND notEquals(b) AND 1 AND (c > 220), number, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((a >= 0) AND (c = 0), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (t__fuzz_35 OR (and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide((a >= 0) AND notEquals(b) AND 1 AND (c > 220), number, 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((a >= 0) AND (c = 0), (number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 853 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toUInt128(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(toLowCardinality(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toUInt128(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(toLowCardinality(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toUInt128(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(toLowCardinality(2))) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 854 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(t__fuzz_4, x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (toUInt8(divide(number, xor(x9, xor(x10, x11)), toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(materialize(2))) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, toNullable(toNullable(0)), 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(t__fuzz_4, x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (toUInt8(divide(number, xor(x9, xor(x10, x11)), toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(materialize(2))) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, toNullable(toNullable(0)), 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(number / 256, toNullable(toNullable(0)), 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 855 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 856 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR materialize(toNullable(toNullable(1))) OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 857 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, toUInt128(2), x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, (s IN ('a', 'b')) OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, n, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, toUInt128(2), x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, (s IN ('a', 'b')) OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, n, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, n, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 858 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 859 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (toUInt128(8) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt128(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toUInt128(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))) OR (and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (toUInt128(8) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt128(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toUInt128(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))) OR (and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toUInt128(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toUInt128(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 860 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, toLowCardinality(0))) IGNORE NULLS, (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(toNullable(toUInt256(512)))) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE or(xor1 != xor2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, toLowCardinality(0))) IGNORE NULLS, (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(toNullable(toUInt256(512)))) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or(xor1 != xor2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, toLowCardinality(0))) IGNORE NULLS, (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(toNullable(toUInt256(512)))) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 861 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((x1 OR x2) OR (x3 OR x4)) OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AND x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(23)), 100) AND (c = 0), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((x1 OR x2) OR (x3 OR x4)) OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)) AND x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(23)), 100) AND (c = 0), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number) % 2) AS x2, toUInt8((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(23)), 100) AND (c = 0), (number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 862 out of 1000 SELECT xor(x1, (x1 AND x2) AND (b != materialize(materialize(100))) AND (0 AND 1000 AND x4), x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) Error on processing query 'SELECT xor(x1, (x1 AND x2) AND (b != materialize(materialize(100))) AND (0 AND 1000 AND x4), x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 863 out of 1000 EXPLAIN QUERY TREE run_passes = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), toNullable(materialize(toUInt256(1))), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(nums__fuzz_29, (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(x8 AND (x9 AND (x10 AND x11)), number / 64, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toNullable(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN QUERY TREE run_passes = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), toNullable(materialize(toUInt256(1))), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(nums__fuzz_29, (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(x8 AND (x9 AND (x10 AND x11)), number / 64, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toNullable(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "run_passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 864 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x2) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8(toUInt8(divide(b != 100, number, toUInt256(toUInt8((number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(materialize(2))), toNullable(8))) % toUInt256(2)), (number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x2) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8(toUInt8(divide(b != 100, number, toUInt256(toUInt8((number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(materialize(2))), toNullable(8))) % toUInt256(2)), (number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / materialize(512)) % 2) AS x10, toUInt8(toUInt8(divide(b != 100, number, toUInt256(toUInt8((number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(materialize(2))), toNullable(8))) % toUInt256(2)), (number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 865 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 866 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(toNullable(0), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(toNullable(0), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(toNullable(0), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 867 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toNullable(2048)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toNullable(2048))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt16) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 868 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(toUInt256(64))) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toNullable(toUInt256(2))) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x8 OR (x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(toUInt256(64))) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toNullable(toUInt256(2))) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(toUInt256(64))) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toNullable(toUInt256(2))) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 869 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(3, number, 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(3, number, 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(3, number, 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 870 out of 1000 EXPLAIN PIPELINE header = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR toFixedString(toFixedString(toNullable(23)), 23) OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(23, (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE header = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR toFixedString(toFixedString(toNullable(23)), 23) OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(23, (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 871 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR toLowCardinality(toNullable('test_cluster_two_shards')) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / materialize(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048) ) PREWHERE c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR toLowCardinality(toNullable('test_cluster_two_shards')) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / materialize(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048)) PREWHERE c = toLowCardinality(toNullable((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number, toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / materialize(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 872 out of 1000 EXPLAIN ESTIMATE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0))), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN ESTIMATE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0))), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0))), number / 4, 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 873 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(materialize(20), x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(toNullable(0) AND toLowCardinality(1000) AND x3 AND x4, number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(materialize(20), x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(toNullable(0) AND toLowCardinality(1000) AND x3 AND x4, number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(toNullable(0) AND toLowCardinality(1000) AND x3 AND x4, number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 874 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(toUInt8((number / toUInt256(8)) % 2), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toUInt128(2048)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(toUInt8((number / toUInt256(8)) % 2), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toUInt128(2048))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type UInt128 expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 875 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 876 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toUInt128(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo((b != toNullable(100)) AND (c = toNullable(0)), divide(x8 OR (x9 OR (x10 OR x11)), number, 128), 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toUInt128(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo((b != toNullable(100)) AND (c = toNullable(0)), divide(x8 OR (x9 OR (x10 OR x11)), number, 128), 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toUInt128(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo((b != toNullable(100)) AND (c = toNullable(0)), divide(x8 OR (x9 OR (x10 OR x11)), number, 128), 2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 877 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 878 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Got boring AST Fuzzing step 879 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, round((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100), 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND and(x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, round((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100), 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 64, round((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(1)) IGNORE NULLS) * 100), 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 31. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 Fuzzing step 880 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(test_alias__fuzz_32, x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / toUInt256(32), (number / 2) % 2, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and1, 38, and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(test_alias__fuzz_32, x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / toUInt256(32), (number / 2) % 2, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and1, 38, and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(number / toUInt256(32), (number / 2) % 2, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 881 out of 1000 SELECT xor(toLowCardinality(toFixedString(' ', 1)), x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8(x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(toLowCardinality(toFixedString(' ', 1)), x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x4 AND x5) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8(x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8(x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 882 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR ' ', toUInt256(1) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), toNullable(toUInt256(23))), 23), 23), number, 4) % toUInt128(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR ' ', toUInt256(1) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), toNullable(toUInt256(23))), 23), 23), number, 4) % toUInt128(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), toNullable(toUInt256(23))), 23), 23), number, 4) % toUInt128(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 883 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 884 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((materialize(220) OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % materialize(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(toUInt128(2), (number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((materialize(220) OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % materialize(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(toUInt128(2), (number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % materialize(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(toUInt128(2), (number / 16) % 2) AS x5, toUInt8(modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 885 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR ((a >= 0) AND (b != materialize(100)) AND (c > 220)) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt128(32)) % toUInt128(2)) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR ((a >= 0) AND (b != materialize(100)) AND (c > 220)) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt128(32)) % toUInt128(2)) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt128(32)) % toUInt128(2)) AS x6, toUInt8(divide(64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 886 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, toFixedString(toLowCardinality(23), materialize(toNullable(toUInt256(23)))), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toLowCardinality(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, toFixedString(toLowCardinality(23), materialize(toNullable(toUInt256(23)))), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toLowCardinality(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, toFixedString(toLowCardinality(23), materialize(toNullable(toUInt256(23)))), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toLowCardinality(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 887 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, round((sum(multiIf(s IN ('a', 'b'), 1, toNullable(0))) IGNORE NULLS / count()) * 100), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(toUInt8((number / toUInt128(4)) % 2), number / 512, 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, round((sum(multiIf(s IN ('a', 'b'), 1, toNullable(0))) IGNORE NULLS / count()) * 100), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(toUInt8((number / toUInt128(4)) % 2), number / 512, 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, round((sum(multiIf(s IN ('a', 'b'), 1, toNullable(0))) IGNORE NULLS / count()) * 100), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(toUInt8((number / toUInt128(4)) % 2), number / 512, 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 31. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 Fuzzing step 888 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY materialize(materialize(toUInt256(1))) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY materialize(materialize(toUInt256(1)))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Column number is not under aggregate function and not in GROUP BY keys. In query SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) GROUP BY materialize(materialize(toUInt256(1))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 9. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 10. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033593a48 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 889 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, (a >= 0) AND (b != toLowCardinality(100)) AND 1 AND (c > 220), x7), xor(x8, xor(x9, toUInt8((number / toUInt256(toNullable(8))) % toUInt256(2)), xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x2 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((toLowCardinality('2022-01-01') AND x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number, nums__fuzz_11, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, (a >= 0) AND (b != toLowCardinality(100)) AND 1 AND (c > 220), x7), xor(x8, xor(x9, toUInt8((number / toUInt256(toNullable(8))) % toUInt256(2)), xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x2 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((toLowCardinality('2022-01-01') AND x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number, nums__fuzz_11, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_11' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number, nums__fuzz_11, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 890 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(number % toNullable(2), x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND ((a >= 0) AND toLowCardinality(1)) AND (x8 AND (x9 AND (x10 AND t__fuzz_41 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toUInt256(16)) % 2) AS x5, toUInt8((number / materialize(32)) % toLowCardinality(toNullable(2))) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(number % toNullable(2), x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND ((a >= 0) AND toLowCardinality(1)) AND (x8 AND (x9 AND (x10 AND t__fuzz_41 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toUInt256(16)) % 2) AS x5, toUInt8((number / materialize(32)) % toLowCardinality(toNullable(2))) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toUInt256(16)) % 2) AS x5, toUInt8((number / materialize(32)) % toLowCardinality(toNullable(2))) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 891 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, 0 AND toLowCardinality(1000) AND x3 AND x4, xor(x1, xor(xor(xor(x2, x3), if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0)), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, multiIf(s IN ('a', 'b'), toNullable(materialize(toNullable(1))), toUInt256(1), 0), 2) % 2) AS x2, toUInt8(modulo(number / 4, if((a >= 0) AND (b != toNullable(100)), 1), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY (number / toNullable(2)) % 2, number / 128 Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, 0 AND toLowCardinality(1000) AND x3 AND x4, xor(x1, xor(xor(xor(x2, x3), if((a >= 0) AND (b != 100) AND 1 AND (c > toNullable(220)), 1, toLowCardinality(0)), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, multiIf(s IN ('a', 'b'), toNullable(materialize(toNullable(1))), toUInt256(1), 0), 2) % 2) AS x2, toUInt8(modulo(number / 4, if((a >= 0) AND (b != toNullable(100)), 1), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY (number / toNullable(2)) % 2, number / 128': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, multiIf(s IN ('a', 'b'), toNullable(materialize(toNullable(1))), toUInt256(1), 0), 2) % 2) AS x2, toUInt8(modulo(number / 4, if((a >= 0) AND (b != toNullable(100)), 1), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 892 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23, 23), x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23, 23), x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 893 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR ((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(1) IGNORE NULLS) * materialize(100)) OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(round(divide(count()) * 100), number / 1024, 2)) AS x11 FROM numbers(materialize(2048)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR ((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(1) IGNORE NULLS) * materialize(100)) OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(round(divide(count()) * 100), number / 1024, 2)) AS x11 FROM numbers(materialize(2048))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): materialize(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:105: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000358242dc 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000035825273 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4417 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 894 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (materialize(toNullable(0)) AND toLowCardinality(1000) AND x3 AND x4) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23, currentDatabase(), t), (number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (materialize(toNullable(0)) AND toLowCardinality(1000) AND x3 AND x4) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23, currentDatabase(), t), (number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23, currentDatabase(), t), (number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 895 out of 1000 EXPLAIN TABLE OVERRIDE SELECT xor(x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) * 20) * 1000, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt128(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toNullable(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT xor(x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) * 20) * 1000, (number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt128(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toNullable(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('xor'): xor(x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 896 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(materialize(toUInt128(8)), number, 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(toNullable(toUInt128(23)), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(materialize(toUInt128(8)), number, 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(toNullable(toUInt128(23)), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(materialize(toUInt128(8)), number, 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(modulo(toNullable(toUInt128(23)), number / 32, 2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 897 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, toUInt256(0), x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((((x2 OR x3) OR (x4 OR x5)) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND if((a >= 0) AND (c = 0), 1, 0) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, toUInt256(0), x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((((x2 OR x3) OR (x4 OR x5)) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND if((a >= 0) AND (c = 0), 1, 0) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type (UInt256) of 2 argument of function xor: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, toUInt256(0), x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((((x2 OR x3) OR (x4 OR x5)) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND if((a >= 0) AND (c = 0), 1, 0) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d156b 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 29. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 898 out of 1000 SELECT xor(x1, x2, x3, x4, x5, if((b != 100) AND (c > 220), 1, toNullable(0)), x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(if((a >= 0) AND (b != 100) AND (c = toUInt128(toNullable(0))), 1, 0) OR x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR or(and1 != and2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, if((b != 100) AND (c > 220), 1, toNullable(0)), x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(if((a >= 0) AND (b != 100) AND (c = toUInt128(toNullable(0))), 1, 0) OR x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(and1 != and2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT xor(x1, x2, x3, x4, x5, if((b != 100) AND (c > 220), 1, toNullable(0)), x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(if((a >= 0) AND (b != 100) AND (c = toUInt128(toNullable(0))), 1, 0) OR x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(and1 != and2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 899 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8(divide(number, toLowCardinality(0), toUInt256(8)) % 2, (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(toUInt256(256))) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0)) OR (and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8(divide(number, toLowCardinality(0), toUInt256(8)) % 2, (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(toUInt256(256))) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0)) OR (and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % toLowCardinality(2)) AS x1, toUInt8(divide(number, toLowCardinality(0), toUInt256(8)) % 2, (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(toUInt256(256))) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 900 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1))) * 100, number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toLowCardinality(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1))) * 100, number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toLowCardinality(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide((sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1))) * 100, number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toLowCardinality(1024)) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 31. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 Fuzzing step 901 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((materialize(toLowCardinality(2)) AND x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 902 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, b != materialize(materialize(toUInt256(100))), x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, b != materialize(materialize(toUInt256(100))), x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 903 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, intDiv(toUInt32(rtime), materialize(20)) * 20, 2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt128(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, intDiv(toUInt32(rtime), materialize(20)) * 20, 2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt128(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, intDiv(toUInt32(rtime), materialize(20)) * 20, 2)) AS x2, toUInt8((number / 4) % toNullable(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toUInt128(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 904 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23), xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toNullable(2)) AS x4, toUInt8(modulo(number / 16, toFixedString(toLowCardinality(toLowCardinality(toUInt128(23))), 23), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toLowCardinality(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23), xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toNullable(2)) AS x4, toUInt8(modulo(number / 16, toFixedString(toLowCardinality(toLowCardinality(toUInt128(23))), 23), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toLowCardinality(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: toFixedString is only implemented for types String and FixedString: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toNullable(2)) AS x4, toUInt8(modulo(number / 16, toFixedString(toLowCardinality(toLowCardinality(toUInt128(23))), 23), 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % toLowCardinality(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62b17c 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 905 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(materialize(toLowCardinality(1)), xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / materialize(32)) % 2) AS x6, toUInt8(divide(if((a >= 0) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(toFixedString((number / toNullable(materialize(2))) % 2, toLowCardinality(toFixedString(' ', 1)), 1), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(materialize(toLowCardinality(1)), xor(x6, x7)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / materialize(32)) % 2) AS x6, toUInt8(divide(if((a >= 0) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(toFixedString((number / toNullable(materialize(2))) % 2, toLowCardinality(toFixedString(' ', 1)), 1), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / materialize(32)) % 2) AS x6, toUInt8(divide(if((a >= 0) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(toFixedString((number / toNullable(materialize(2))) % 2, toLowCardinality(toFixedString(' ', 1)), 1), (number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 906 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(xor(x1, x2), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / materialize(8))) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(xor(x1, x2), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / materialize(8))) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / materialize(8))) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 907 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(if(notEquals(sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS, b, 100) AND (c = 0), materialize(toNullable(toUInt128(1))), 0) / 2, toUInt8((number / toUInt256(toNullable(8))) % toUInt256(2)), 2)) AS x2, toUInt8((number / toNullable(4)) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, greaterOrEquals(test_alias__fuzz_32, a, 0), 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR sum(if((b != toNullable(100)) AND equals(c, t, toNullable(0)), 1, 0)) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(if(notEquals(sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS, b, 100) AND (c = 0), materialize(toNullable(toUInt128(1))), 0) / 2, toUInt8((number / toUInt256(toNullable(8))) % toUInt256(2)), 2)) AS x2, toUInt8((number / toNullable(4)) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, greaterOrEquals(test_alias__fuzz_32, a, 0), 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR sum(if((b != toNullable(100)) AND equals(c, t, toNullable(0)), 1, 0)) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(if(notEquals(sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS, b, 100) AND (c = 0), materialize(toNullable(toUInt128(1))), 0) / 2, toUInt8((number / toUInt256(toNullable(8))) % toUInt256(2)), 2)) AS x2, toUInt8((number / toNullable(4)) % 2) AS x3, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, greaterOrEquals(test_alias__fuzz_32, a, 0), 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 908 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, toFixedString(toFixedString('test_cluster_two_shards', 23), 23), x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(toUInt8((number / 2) % 2), number / 2, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(toUInt8((number / 2) % 2), modulo(2)) AS x9, toUInt8(modulo(number / 512, toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toNullable(toUInt128(23)))), 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toUInt128(2048)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, toFixedString(toFixedString('test_cluster_two_shards', 23), 23), x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x2 OR x3) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x10))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(toUInt8((number / 2) % 2), number / 2, 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(toUInt8((number / 2) % 2), modulo(2)) AS x9, toUInt8(modulo(number / 512, toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toNullable(toUInt128(23)))), 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toUInt128(2048))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type UInt128 expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 909 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, (a >= toNullable(0)) AND (b != materialize(materialize(toUInt256(100)))) AND (c > 220), x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / materialize(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, (a >= toNullable(0)) AND (b != materialize(materialize(toUInt256(100)))) AND (c > 220), x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / materialize(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, (a >= toNullable(0)) AND (b != materialize(materialize(toUInt256(100)))) AND (c > 220), x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / materialize(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 910 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), toLowCardinality(toLowCardinality(23)), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND sum(if((a >= 0) AND (b != toLowCardinality(100)) AND materialize(4) AND (c = 0), 1, materialize(0))) AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (toUInt8((number / 8) % toUInt128(2)) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(numbers(16), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), toLowCardinality(toLowCardinality(23)), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND sum(if((a >= 0) AND (b != toLowCardinality(100)) AND materialize(4) AND (c = 0), 1, materialize(0))) AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (toUInt8((number / 8) % toUInt128(2)) AND x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(numbers(16), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(numbers(16), (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 911 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(toNullable(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % toUInt256(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(toNullable(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % toUInt256(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(toNullable(16))) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % toUInt256(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 912 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(materialize(toNullable(1)) AND x1 AND x2 AND x3 AND x4, modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(toFixedString(' ', toNullable(materialize(toUInt128(1000)), 1)), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(materialize(toNullable(1)) AND x1 AND x2 AND x3 AND x4, modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(toFixedString(' ', toNullable(materialize(toUInt128(1000)), 1)), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(materialize(toNullable(1)) AND x1 AND x2 AND x3 AND x4, modulo(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(toFixedString(' ', toNullable(materialize(toUInt128(1000)), 1)), number, 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 913 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR ((number / toLowCardinality(8)) % toLowCardinality(toUInt128(materialize(2)))) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), 1, 0), and1, and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR ((number / toLowCardinality(8)) % toLowCardinality(toUInt128(materialize(2)))) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), 1, 0), and1, and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR ((number / toLowCardinality(8)) % toLowCardinality(toUInt128(materialize(2)))) OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x8))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), 1, 0), and1, and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 914 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toNullable(1024)) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toNullable(1024)) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x4' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / toNullable(1024)) % 2) AS x11 FROM numbers(2048). Maybe you meant: ['x4']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 915 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10 FROM numbers(toNullable(2048)) PREWHERE test_alias__fuzz_39 ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10 FROM numbers(toNullable(2048)) PREWHERE test_alias__fuzz_39) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt16) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 916 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100), x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((toFixedString(' ', toUInt128(1)) AND x2 AND x3) AND and(x4)) AND ((x6 AND x7) AND (x8 AND (x9 AND ((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) AND x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % toUInt256(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(2)) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR or(and1 != and2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100), x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((toFixedString(' ', toUInt128(1)) AND x2 AND x3) AND and(x4)) AND ((x6 AND x7) AND (x8 AND (x9 AND ((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) AND x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toUInt256(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(2)) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(and1 != and2)': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % toUInt256(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(2)) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 917 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (if((a >= 0) AND (b != 100) AND (c = 0), 1, toLowCardinality(0)) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(x1) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((a >= 0) AND (b != toUInt128(100)) AND (c > 220), (number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toUInt128(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (if((a >= 0) AND (b != 100) AND (c = 0), 1, toLowCardinality(0)) OR x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(x1) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((a >= 0) AND (b != toUInt128(100)) AND (c > 220), (number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toUInt128(2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((a >= 0) AND (b != toUInt128(100)) AND (c > 220), (number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toUInt128(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 918 out of 1000 EXPLAIN PIPELINE compact = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) % 2) OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23, 23) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) % 2), toUInt8((number / toLowCardinality(8)) % toLowCardinality(toLowCardinality(toUInt128(2)))), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11))))) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) % 2) OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23, 23) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) % 2), toUInt8((number / toLowCardinality(8)) % toLowCardinality(toLowCardinality(toUInt128(2)))), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 919 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) % 2), number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals(t__fuzz_44, xor1, xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) % 2), number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(t__fuzz_44, xor1, xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) % 2), number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 920 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE or(xor1 != xor2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or(xor1 != xor2)': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or(xor1 != xor2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 921 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)) IGNORE NULLS OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND ((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0)) AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)) IGNORE NULLS OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND ((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0)) AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toLowCardinality(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 922 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(toNullable(128))) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR toUInt8((number / 2) % materialize(toLowCardinality(2))) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(toNullable(128))) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR toUInt8((number / 2) % materialize(toLowCardinality(2))) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toLowCardinality(toNullable(128))) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 923 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toNullable(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 924 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR x10 OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR x10 OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR x10 OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 925 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((number / 2) % 2) AND ((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / materialize(toLowCardinality(256))) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((number / 2) % 2) AND ((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / materialize(toLowCardinality(256))) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / toLowCardinality(64)) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / materialize(toLowCardinality(256))) % 2) AS x9, toUInt8((number / 512) % toLowCardinality(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 926 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(day = toFixedString('2022-01-01', 10), number % toNullable(2)) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(day = toFixedString('2022-01-01', 10), number % toNullable(2)) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'day' in scope SELECT toUInt8(day = toFixedString('2022-01-01', 10), number % toNullable(2)) AS x1, toUInt8((number / 2) % toLowCardinality(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 927 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x6) AND (x8 AND (x9 AND and(x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, toNullable(0), 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)), divide(number / toUInt256(4), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(toFixedString(toLowCardinality(23), materialize(toUInt256(23))) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x6) AND (x8 AND (x9 AND and(x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, toNullable(0), 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)), divide(number / toUInt256(4), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(toFixedString(toLowCardinality(23), materialize(toUInt256(23))) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(number, toNullable(0), 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(sum(if((a >= 0) AND 1 AND (c > 220), 1, 0)), divide(number / toUInt256(4), number, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(toFixedString(toLowCardinality(23), materialize(toUInt256(23))) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 928 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(toFixedString(' ', xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11))))), 1), number / 64, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, toLowCardinality(toFixedString(' ', 1)), 2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR or(x9 OR (x10 OR x11)))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(toFixedString(' ', xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11))))), 1), number / 64, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, toLowCardinality(toFixedString(' ', 1)), 2)) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x7' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toLowCardinality(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(toFixedString(' ', xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11))))), 1), number / 64, 2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(modulo(number / 1024, toLowCardinality(toFixedString(' ', 1)), 2)) AS x11 FROM numbers(2048). Maybe you meant: ['x7']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 929 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), 23), currentDatabase(), t), toUInt8((number / 4) % 2) AS x3, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)), number, 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals(xor1) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), 23), currentDatabase(), t), toUInt8((number / 4) % 2) AS x3, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)), number, 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(xor1) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), 23), currentDatabase(), t), toUInt8((number / 4) % 2) AS x3, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)), number, 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 930 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(number, if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), toLowCardinality(0)), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(number, if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), toLowCardinality(0)), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(modulo(number, if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), toLowCardinality(0)), 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 931 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND toUInt256(20) AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND toUInt8((number / toNullable(8)) % toUInt256(2)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(modulo(toLowCardinality(100), number / toLowCardinality(8), toUInt128(2)), number / 256, 2)) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND toUInt256(20) AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND toUInt8((number / toNullable(8)) % toUInt256(2)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(modulo(toLowCardinality(100), number / toLowCardinality(8), toUInt128(2)), number / 256, 2)) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(modulo(toLowCardinality(100), number / toLowCardinality(8), toUInt128(2)), number / 256, 2)) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 932 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number, toLowCardinality(materialize(materialize(toLowCardinality(1)))), 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number, toLowCardinality(materialize(materialize(toLowCardinality(1)))), 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number, toLowCardinality(materialize(materialize(toLowCardinality(1)))), 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 933 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR or(x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 934 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), toUInt128(1000), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(toUInt256(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), toUInt128(1000), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(toUInt256(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(toUInt256(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 935 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor((b != toNullable(100)) AND toUInt256(100) AND (c = 0), x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, t__fuzz_16 OR x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR sum(if((a >= 0) AND (b != materialize(100)) AND (c = 0), 1, 0)) OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number, toNullable('2022-01-01'), 512) % toUInt128(2)) AS x10, toUInt8(toNullable('2022-01-01'), (number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE 255 ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor((b != toNullable(100)) AND toUInt256(100) AND (c = 0), x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, t__fuzz_16 OR x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR sum(if((a >= 0) AND (b != materialize(100)) AND (c = 0), 1, 0)) OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND and(x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number, toNullable('2022-01-01'), 512) % toUInt128(2)) AS x10, toUInt8(toNullable('2022-01-01'), (number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE 255) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number, toNullable('2022-01-01'), 512) % toUInt128(2)) AS x10, toUInt8(toNullable('2022-01-01'), (number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE 255. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 936 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 937 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR toNullable(0) OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 938 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toLowCardinality(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 939 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number, (a >= materialize(0)) AND (b != 100) AND equals(c), 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toUInt256(2)) AS x11 FROM numbers(2048) ) WHERE or(xor1 != xor2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number, (a >= materialize(0)) AND (b != 100) AND equals(c), 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toUInt256(2)) AS x11 FROM numbers(2048)) WHERE or(xor1 != xor2)': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number, (a >= materialize(0)) AND (b != 100) AND equals(c), 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toUInt256(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 940 out of 1000 SELECT xor(x1, x2, x3, (sum(multiIf(intDiv(toUInt32(rtime), 20) * 1000, s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * 100, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(number / toUInt256(2), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, (sum(multiIf(intDiv(toUInt32(rtime), 20) * 1000, s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * 100, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(number / toUInt256(2), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toNullable(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(number / toUInt256(2), (number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 941 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (number / toUInt256(2)) OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(r2, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 128)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (number / toUInt256(2)) OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(r2, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 128)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'r2' in scope SELECT toUInt8(r2, number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(modulo(number / 128)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Maybe you meant: ['x2']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 942 out of 1000 EXPLAIN AST SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), toLowCardinality(23)) OR x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % toUInt128(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toNullable(2)) AS x10, toUInt8((number / 1024) % toNullable(2)) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 943 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(toUInt128(materialize(toUInt256(2))), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(toUInt128(materialize(toUInt256(2))), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(toUInt128(materialize(toUInt256(2))), (number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 944 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (toUInt8(modulo(number / 2)) AND x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt128(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (toUInt8(modulo(number / 2)) AND x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt128(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % toUInt128(2)) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 945 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (or(x6) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toLowCardinality(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 946 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(divide(toNullable(2)) % materialize(toNullable(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % materialize(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(divide(toNullable(2)) % materialize(toNullable(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % materialize(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(divide(toNullable(2)) % materialize(toNullable(2))) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % materialize(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 947 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND t__fuzz_22 AND (x8 AND (x9 AND and(x10))))) AS and2 FROM ( SELECT toUInt8(modulo(sum(if(greaterOrEquals(a, toNullable(toNullable(1)), 0) AND toLowCardinality(1), 1, 0)), number, 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND t__fuzz_22 AND (x8 AND (x9 AND and(x10))))) AS and2 FROM (SELECT toUInt8(modulo(sum(if(greaterOrEquals(a, toNullable(toNullable(1)), 0) AND toLowCardinality(1), 1, 0)), number, 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(modulo(sum(if(greaterOrEquals(a, toNullable(toNullable(1)), 0) AND toLowCardinality(1), 1, 0)), number, 2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 948 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 949 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), toNullable(100)), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(toUInt8((number / toLowCardinality(8)) % toLowCardinality((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100, toUInt128(2))), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), toNullable(100)), xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(toUInt8((number / toLowCardinality(8)) % toLowCardinality((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100, toUInt128(2))), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(divide(number) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(toUInt8((number / toLowCardinality(8)) % toLowCardinality((sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100, toUInt128(2))), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 950 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8(modulo(day = '2022-01-01', number / 8, 2)) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8(modulo(day = '2022-01-01', number / 8, 2)) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'day' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / toUInt256(4)) % 2) AS x3, toUInt8(modulo(day = '2022-01-01', number / 8, 2)) AS x4, toUInt8((number / 16) % toNullable(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 951 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR (((sum(multiply(toNullable(materialize(test_alias__fuzz_9, materialize(1))), intDiv(toUInt32(rtime), 20), toNullable(20)), multiIf(s IN ('a', 'b'), toNullable(1), 0)) OR x2 OR x3) OR (x4 OR x5)) OR (cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) OR (x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR (((sum(multiply(toNullable(materialize(test_alias__fuzz_9, materialize(1))), intDiv(toUInt32(rtime), 20), toNullable(20)), multiIf(s IN ('a', 'b'), toNullable(1), 0)) OR x2 OR x3) OR (x4 OR x5)) OR (cluster(toFixedString('test_cluster_two_shards', 23), currentDatabase(), t) OR (x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 952 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, materialize(toUInt256(test_alias__fuzz_8, 1)), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(toLowCardinality('test_cluster_two_shards'), 23, number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, x9, 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % materialize(toUInt256(2))) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, and(((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, materialize(toUInt256(test_alias__fuzz_8, 1)), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(toLowCardinality('test_cluster_two_shards'), 23, number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, x9, 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % materialize(toUInt256(2))) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_8' in scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2, materialize(toUInt256(test_alias__fuzz_8, 1)), 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(toLowCardinality('test_cluster_two_shards'), 23, number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(number, x9, 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % materialize(toUInt256(2))) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 953 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x2) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % materialize(2)) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x2) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % materialize(2)) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "and" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x2) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % materialize(2)) AS x1, toUInt8((number / materialize(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0f87 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 954 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, toUInt8(divide(number, toLowCardinality(0), toUInt256(8)) % 2), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, toUInt8(divide(number, toLowCardinality(0), toUInt256(8)) % 2), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, toUInt8(divide(number, toLowCardinality(0), toUInt256(8)) % 2), 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 955 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(sum(multiIf(s IN toLowCardinality(('a', 'b')), 1, toNullable(0))) IGNORE NULLS / count(), xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), 2, xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x2 AND x3) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, divide(number, 0, toUInt256(8)), 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(sum(multiIf(s IN toLowCardinality(('a', 'b')), 1, toNullable(0))) IGNORE NULLS / count(), xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), 2, xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (and(x2 AND x3) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, divide(number, 0, toUInt256(8)), 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number, divide(number, 0, toUInt256(8)), 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 956 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toUInt256(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals((b != toNullable(100)) AND 100 AND (c = 0), and1, and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toUInt256(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals((b != toNullable(100)) AND 100 AND (c = 0), and1, and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % toUInt256(2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals((b != toNullable(100)) AND 100 AND (c = 0), and1, and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 957 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toNullable(256)) % 2) AS x9, toUInt8(modulo(if((a >= 0) AND (b != 100) AND (c = 0), 1, toLowCardinality(0)), divide(512), 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toNullable(256)) % 2) AS x9, toUInt8(modulo(if((a >= 0) AND (b != 100) AND (c = 0), 1, toLowCardinality(0)), divide(512), 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / toNullable(256)) % 2) AS x9, toUInt8(modulo(if((a >= 0) AND (b != 100) AND (c = 0), 1, toLowCardinality(0)), divide(512), 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 958 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo((b != toLowCardinality(100)) AND (c > 220), number / 128, 2)) AS x8, toUInt8((number / materialize(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo((b != toLowCardinality(100)) AND (c > 220), number / 128, 2)) AS x8, toUInt8((number / materialize(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt256(2)) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(modulo((b != toLowCardinality(100)) AND (c > 220), number / 128, 2)) AS x8, toUInt8((number / materialize(256)) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 959 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND (number / 2) AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(materialize(toNullable(toFixedString(' ', 1))), number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toNullable(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR or(and1 != and2) Error on processing query 'EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND (number / 2) AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(materialize(toNullable(toFixedString(' ', 1))), number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toNullable(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(and1 != and2)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(materialize(toNullable(toFixedString(' ', 1))), number, 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(number) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % toNullable(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 28. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 29. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 960 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, divide(number, toLowCardinality(toUInt128(0)), toUInt256(8)), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / materialize(toLowCardinality(32))) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt128(128)) % 2) AS x8, toUInt8((number / 256) % toNullable(toUInt128(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE or(xor1 != xor2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, divide(number, toLowCardinality(toUInt128(0)), toUInt256(8)), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / materialize(toLowCardinality(32))) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt128(128)) % 2) AS x8, toUInt8((number / 256) % toNullable(toUInt128(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or(xor1 != xor2)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(number / 4, divide(number, toLowCardinality(toUInt128(0)), toUInt256(8)), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / materialize(toLowCardinality(32))) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toUInt128(128)) % 2) AS x8, toUInt8((number / 256) % toNullable(toUInt128(2))) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 961 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / materialize(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(8)) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / materialize(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % materialize(2)) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 962 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x4 OR x5) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), materialize(toLowCardinality(0)))), number / 16, 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(Log, 0))), number, 16) % 2, (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (or(x4 OR x5) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), materialize(toLowCardinality(0)))), number / 16, 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(Log, 0))), number, 16) % 2, (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), materialize(toLowCardinality(0)))), number / 16, 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(Log, 0))), number, 16) % 2, (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 963 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x4)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(materialize(toLowCardinality(2))), (number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x4)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(materialize(toLowCardinality(2))), (number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(materialize(toLowCardinality(2))), (number / 8) % 2) AS x4, toUInt8((number / toLowCardinality(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 964 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, toNullable(toUInt128(0)))) IGNORE NULLS, xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toLowCardinality(toUInt256(2048))) WHERE toFixedString('2022-01-01', 10) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), sum(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, toNullable(toUInt128(0)))) IGNORE NULLS, xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toLowCardinality(toUInt256(2048))) WHERE toFixedString('2022-01-01', 10)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt256) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 965 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toUInt256(2)) AS x11 FROM numbers(2048) ) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toUInt256(2)) AS x11 FROM numbers(2048)) PREWHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8(modulo(number / 2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % toUInt256(2)) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 966 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23)), x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ('a', 'b') OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, c = toNullable(0), toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(if((b != 100) AND (c > 220), 1, 0), number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23)), x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ('a', 'b') OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, c = toNullable(0), toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(if((b != 100) AND (c > 220), 1, 0), number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, c = toNullable(0), toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(if((b != 100) AND (c > 220), 1, 0), number / 256, 2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 967 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(modulo(number)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / toNullable(128)) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 968 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND t AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(toUInt128(8))) % toUInt128(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE notEquals(xor1) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND t AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(toUInt128(8))) % toUInt128(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(xor1) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND t AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / materialize(toUInt128(8))) % toUInt128(2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE notEquals(xor1) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 969 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, (a >= 0) AND (c > 220), x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND toUInt8((number / 8) % toUInt128(2)) AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x9)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(toNullable(toNullable(toNullable(1))), number / 16, 2)) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8(divide(materialize(1000), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) PREWHERE cluster(toFixedString(toFixedString(toLowCardinality(toUInt128(23))), 23), currentDatabase(), t) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, (a >= 0) AND (c > 220), x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND toUInt8((number / 8) % toUInt128(2)) AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND and(x9)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(toNullable(toNullable(toNullable(1))), number / 16, 2)) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8(divide(materialize(1000), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) PREWHERE cluster(toFixedString(toFixedString(toLowCardinality(toUInt128(23))), 23), currentDatabase(), t) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(toNullable(toNullable(toNullable(1))), number / 16, 2)) AS x5, toUInt8(divide(number) % 2) AS x6, toUInt8(divide(materialize(1000), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 970 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toLowCardinality(2048)) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(divide(number) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toLowCardinality(2048))) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt16) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 971 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23, 23, currentDatabase(), t) OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, t__fuzz_41, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23, 23, currentDatabase(), t) OR (x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, t__fuzz_41, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_41' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, t__fuzz_41, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 972 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), 1, 0) AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, test_alias__fuzz_40, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), 1, 0) AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, test_alias__fuzz_40, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_40' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % toNullable(2)) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(modulo(number / 8, test_alias__fuzz_40, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 973 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt128(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(toNullable(0) AND 1000 AND x3 AND x4, (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt128(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(toNullable(0) AND 1000 AND x3 AND x4, (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / toUInt128(32)) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(toNullable(0) AND 1000 AND x3 AND x4, (number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000087714ea 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 974 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, divide(sum(multiIf(s IN ('a', 'b'), toNullable(toUInt128(1)), toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()) * 100, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR ((a >= toUInt256(toNullable(toNullable(1)))) AND 1) OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % materialize(toNullable(2))) AS x4, toUInt8((number / 16) % toLowCardinality(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512, nums__fuzz_6, 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, divide(sum(multiIf(s IN ('a', 'b'), toNullable(toUInt128(1)), toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()) * 100, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR ((a >= toUInt256(toNullable(toNullable(1)))) AND 1) OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % materialize(toNullable(2))) AS x4, toUInt8((number / 16) % toLowCardinality(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512, nums__fuzz_6, 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_6' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % materialize(toNullable(2))) AS x4, toUInt8((number / 16) % toLowCardinality(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512, nums__fuzz_6, 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 975 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR nums__fuzz_6 OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toNullable(2048)) ) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR nums__fuzz_6 OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND and((x2 AND x3) AND (x4 AND x5)) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / toNullable(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(toNullable(2048))) WHERE (xor1 != xor2) OR (notEquals(and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt16) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:108: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000002fdf4b83 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000002fdf310f 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:0: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000306f70b3 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003374cff2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000003345fff3 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edd21 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 976 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt128(8)) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE or((and1 != and2) OR (or1 != or2)) Error on processing query 'EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt128(8)) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE or((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / toLowCardinality(2)) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / toUInt128(8)) % 2) AS x4, toUInt8(modulo(2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(divide(number) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 25. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 26. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 977 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4, toUInt8((number / materialize(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4, toUInt8((number / materialize(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND ((and(x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % toUInt128(2)) AS x4, toUInt8((number / materialize(16)) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 978 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, x5, 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, x5, 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x5' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16, x5, 2)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Maybe you meant: ['x5']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 979 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 980 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x4)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0))), 1, 0)), or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x4)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0))), 1, 0)), or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "or" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR or(x6 OR x7)) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND and(x4)) AND ((x6 AND x7) AND and(x9 AND (x10 AND x11)))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toNullable(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR notEquals(or1, sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(0))), 1, 0)), or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9a8ca7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 981 out of 1000 SELECT xor(x1, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), toLowCardinality(toNullable(1)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), toLowCardinality(toNullable(1)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3)), toLowCardinality(toNullable(1)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 982 out of 1000 EXPLAIN ESTIMATE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(cluster(toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))), 23, currentDatabase(), t), xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toUInt128(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(or2, and1, and2) OR (or1 != or2)) Error on processing query 'EXPLAIN ESTIMATE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(cluster(toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))), 23, currentDatabase(), t), xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toUInt128(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(or2, and1, and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(cluster(toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))), 23, currentDatabase(), t), xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % toUInt128(2)) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(or2, and1, and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 28. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 29. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 983 out of 1000 EXPLAIN AST graph = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(sum(if(day = '2022-01-01', 10, (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(1) IGNORE NULLS, 0)), (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR or(and1 != and2) Error on processing query 'EXPLAIN AST graph = true SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8(sum(if(day = '2022-01-01', 10, (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(1) IGNORE NULLS, 0)), (number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(and1 != and2)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "graph" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495f93b 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 984 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), toFixedString(toLowCardinality(' '), toLowCardinality((number / toUInt256(2)) % toLowCardinality(2), 1)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8((x1 OR x2 OR x3 OR x4) % number) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * 100), number, 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY round((sum(multiIf(in(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100), sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)), toFixedString(' ', toNullable(1), 1), toLowCardinality(20) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), toFixedString(toLowCardinality(' '), toLowCardinality((number / toUInt256(2)) % toLowCardinality(2), 1)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR ((or(x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8((x1 OR x2 OR x3 OR x4) % number) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * 100), number, 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY round((sum(multiIf(in(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100), sum(if((a >= 0) AND (b != 100) AND 1 AND (c > 220), 1, 0)), toFixedString(' ', toNullable(1), 1), toLowCardinality(20)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT toUInt8((x1 OR x2 OR x3 OR x4) % number) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(divide(number) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count()) * 100), number, 1024) % 2) AS x11 FROM numbers(2048). Maybe you meant: ['x1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 985 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (toUInt128(toLowCardinality(1)) AND ((x2 AND x3) AND (x4 AND toLowCardinality(100) AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8('test_cluster_two_shards', 23, toLowCardinality(23), (number / 16) % 2) AS x5, toUInt8(divide(32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR or(and1 != and2) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8)))) AS xor2, x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, or(((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (toUInt128(toLowCardinality(1)) AND ((x2 AND x3) AND (x4 AND toLowCardinality(100) AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8('test_cluster_two_shards', 23, toLowCardinality(23), (number / 16) % 2) AS x5, toUInt8(divide(32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR or(and1 != and2)': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 4 arguments: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8('test_cluster_two_shards', 23, toLowCardinality(23), (number / 16) % 2) AS x5, toUInt8(divide(32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x0000000008770c35 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 986 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt128(2)) AS x6, t__fuzz_12, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8(modulo(number / materialize(1024))) AS x11 FROM numbers(2048) ) WHERE or(notEquals(xor2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt128(2)) AS x6, t__fuzz_12, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8(modulo(number / materialize(1024))) AS x11 FROM numbers(2048)) WHERE or(notEquals(xor2))': Received from localhost:9000. DB::Exception: Unknown expression identifier 't__fuzz_12' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % toUInt128(2)) AS x6, t__fuzz_12, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(divide(number) % 2) AS x9, toUInt8(modulo(number / 512)) AS x10, toUInt8(modulo(number / materialize(1024))) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 987 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, if((a >= 0) AND notEquals(cluster(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23)), toLowCardinality(23)), 23), currentDatabase(), t), b, 100) AND (c = toUInt256(0)), 1, 0) OR x1 OR (((x2 OR x3) OR (x4 OR (sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8(divide(number, t__fuzz_30, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, if((a >= 0) AND notEquals(cluster(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23)), toLowCardinality(23)), 23), currentDatabase(), t), b, 100) AND (c = toUInt256(0)), 1, 0) OR x1 OR (((x2 OR x3) OR (x4 OR (sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS) OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8(divide(number, t__fuzz_30, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8(divide(number, t__fuzz_30, 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 988 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'and2' in scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Maybe you meant: ['and1']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 989 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(x1 AND (numbers(materialize(toUInt128(2048))) AND ((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))), number, 32) % 2) AS x6, toUInt8(divide(toLowCardinality(materialize(materialize(toLowCardinality(1)))), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR (notEquals(and1, sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)), and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(x1 AND (numbers(materialize(toUInt128(2048))) AND ((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))), number, 32) % 2) AS x6, toUInt8(divide(toLowCardinality(materialize(materialize(toLowCardinality(1)))), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR (notEquals(and1, sum(if((b != 100) AND (c = toNullable(0)), materialize(1), 0)), and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Function with name 'numbers' does not exist. In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8(divide(x1 AND (numbers(materialize(toUInt128(2048))) AND ((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))), number, 32) % 2) AS x6, toUInt8(divide(toLowCardinality(materialize(materialize(toLowCardinality(1)))), number, 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000002141cd37 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3232: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b971c 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 990 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23), 23), x4, x5)), xor(xor(sum(if((b != 100) AND (c = toLowCardinality((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0)), toLowCardinality(toNullable(materialize(1))))), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(23, divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS, number, 4), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8(divide(256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23), 23), x4, x5)), xor(xor(sum(if((b != 100) AND (c = toLowCardinality((sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count()) * materialize(100), 0)), toLowCardinality(toNullable(materialize(1))))), x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(23, divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS, number, 4), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8(divide(256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(modulo(23, divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count(1) IGNORE NULLS, number, 4), 2)) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8(divide(128) % 2) AS x8, toUInt8(divide(256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 30. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 Fuzzing step 991 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % toUInt256(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE cluster(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), 23), 23), currentDatabase(), t) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toUInt256(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE cluster(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), 23), 23), currentDatabase(), t)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % toUInt256(2)) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / materialize(4)) % 2) AS x3, toUInt8(modulo(number / 8)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) PREWHERE cluster(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), 23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 992 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / toNullable(8)) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND (and(x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / toNullable(8)) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(number) % 2) AS x3, toUInt8((number / toNullable(8)) % 2) AS x4, toUInt8(divide(16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 993 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(toNullable(2), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(toNullable(2), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt8'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt8(toNullable(2), number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000087a026e 6. DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToUInt8, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000087714ea 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 994 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function "xor" should be at least 2: passed 1: In scope SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9d18e6 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 995 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, sum(if((a >= toLowCardinality(0)) AND 1, 1, 0)) IGNORE NULLS OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (toUInt128(4) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(materialize(toUInt256(toNullable(32, 1))), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, sum(if((a >= toLowCardinality(0)) AND 1, 1, 0)) IGNORE NULLS OR x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (toUInt128(4) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(materialize(toUInt256(toNullable(32, 1))), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8(materialize(toUInt256(toNullable(32, 1))), (number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8(divide(number) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 996 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (toNullable(' ') AND ((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(materialize(4)) % 2) AS x3, toUInt8(modulo(if((a >= 0) AND (b != toNullable(100)) AND equals(c, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100), toUInt128(toNullable(0))), 1, 0), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE materialize(toLowCardinality(8)) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (toNullable(' ') AND ((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(materialize(4)) % 2) AS x3, toUInt8(modulo(if((a >= 0) AND (b != toNullable(100)) AND equals(c, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100), toUInt128(toNullable(0))), 1, 0), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE materialize(toLowCardinality(8)) OR (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8(divide(materialize(4)) % 2) AS x3, toUInt8(modulo(if((a >= 0) AND (b != toNullable(100)) AND equals(c, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100), toUInt128(toNullable(0))), 1, 0), number / 8, 2)) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / 512) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 997 out of 1000 EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (toUInt8(toLowCardinality(materialize(1)), (number / toNullable(4)) % toNullable(2)) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % toNullable(toUInt256(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY (x1 AND x2) AND (toLowCardinality(toNullable(materialize(toNullable(0)))) AND 1000 AND x3 AND x4) Error on processing query 'EXPLAIN PIPELINE SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR or(x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (toUInt8(toLowCardinality(materialize(1)), (number / toNullable(4)) % toNullable(2)) AND x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toNullable(toUInt256(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) GROUP BY (x1 AND x2) AND (toLowCardinality(toNullable(materialize(toNullable(0)))) AND 1000 AND x3 AND x4)': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % toNullable(toUInt256(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8(modulo(2)) AS x9, toUInt8(modulo(2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 25. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 26. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 998 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR toLowCardinality(materialize(1)) OR x3) OR (x4 OR x5)) OR (((a >= 0) OR x6 OR x7) OR (cluster(toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)), currentDatabase(), t) OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % toLowCardinality(toUInt128(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(materialize(1), number / 512, 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR toLowCardinality(materialize(1)) OR x3) OR (x4 OR x5)) OR (((a >= 0) OR x6 OR x7) OR (cluster(toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)), currentDatabase(), t) OR x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % toLowCardinality(toUInt128(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(materialize(1), number / 512, 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toUInt8(number % toLowCardinality(toUInt128(2))) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8((number / 16) % 2) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8(modulo(materialize(1), number / 512, 2)) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 999 out of 1000 SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM ( SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048) ) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2)) Error on processing query 'SELECT xor(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) AS xor1, xor(x1, xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11)))))) AS xor2, x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x9 OR x10 OR x11 AS or1, x1 OR (((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) AS or2, x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11 AS and1, x1 AND (((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11))))) AS and2 FROM (SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048)) WHERE (xor1 != xor2) OR ((and1 != and2) OR (or1 != or2))': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toUInt8(number % 2) AS x1, toUInt8((number / 2) % 2) AS x2, toUInt8((number / 4) % 2) AS x3, toUInt8((number / 8) % 2) AS x4, toUInt8(modulo(number / 16)) AS x5, toUInt8((number / 32) % 2) AS x6, toUInt8((number / 64) % 2) AS x7, toUInt8((number / 128) % 2) AS x8, toUInt8((number / 256) % 2) AS x9, toUInt8((number / toLowCardinality(512)) % 2) AS x10, toUInt8((number / 1024) % 2) AS x11 FROM numbers(2048). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344e84d 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x00000000334edb80 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436960 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 2 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 3 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 4 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 5 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 6 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 7 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 8 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 9 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 10 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 11 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 12 out of 1000 EXPLAIN PIPELINE compact = true SELECT 'OK' Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 'OK'': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 13 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 14 out of 1000 EXPLAIN AST graph = true, optimize = true SELECT 'OK' Error on processing query 'EXPLAIN AST graph = true, optimize = true SELECT 'OK'': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "graph" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495f93b 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 15 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 16 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 17 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 18 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 19 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 20 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 21 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 22 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 23 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 24 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 25 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 26 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 27 out of 1000 SELECT toLowCardinality('OK') Query succeeded, using this AST as a start Fuzzing step 28 out of 1000 SELECT toLowCardinality('OK') Got boring AST Fuzzing step 29 out of 1000 SELECT toLowCardinality('OK') Got boring AST Fuzzing step 30 out of 1000 SELECT toLowCardinality('OK') Got boring AST Fuzzing step 31 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT toLowCardinality('OK') Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT toLowCardinality('OK')': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 32 out of 1000 SELECT toLowCardinality('OK') Got boring AST Fuzzing step 33 out of 1000 SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 34 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT 'OK' Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT 'OK'': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 35 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 36 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 37 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 38 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 39 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 40 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 41 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 42 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 43 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 44 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 45 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 46 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 47 out of 1000 SELECT 'OK' WHERE sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23, 23), toUInt128(1))), 0)) IGNORE NULLS / count(), 1), 0)) Error on processing query 'SELECT 'OK' WHERE sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23, 23), toUInt128(1))), 0)) IGNORE NULLS / count(), 1), 0))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 'OK' WHERE sum(if((a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), toUInt128(sum(multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23, 23), toUInt128(1))), 0)) IGNORE NULLS / count(), 1), 0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 48 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 49 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 50 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 51 out of 1000 SELECT 'OK' PREWHERE and1 != and2 Error on processing query 'SELECT 'OK' PREWHERE and1 != and2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'and1' in scope SELECT 'OK' PREWHERE and1 != and2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 52 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 53 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 54 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 55 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 56 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 57 out of 1000 SELECT (sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100, 'OK' Error on processing query 'SELECT (sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100, 'OK'': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT (sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100, 'OK'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 58 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 59 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 60 out of 1000 SELECT toLowCardinality('OK') Query succeeded, using this AST as a start Fuzzing step 61 out of 1000 SELECT toLowCardinality('OK') Got boring AST Fuzzing step 62 out of 1000 SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 63 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 64 out of 1000 SELECT 'OK' WHERE toUInt8(sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), 1, 0)), (number / 8) % toUInt128(materialize(2))) Error on processing query 'SELECT 'OK' WHERE toUInt8(sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), 1, 0)), (number / 8) % toUInt128(materialize(2)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 'OK' WHERE toUInt8(sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), 1, 0)), (number / 8) % toUInt128(materialize(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 65 out of 1000 EXPLAIN SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 EXPLAIN PIPELINE SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 EXPLAIN PIPELINE SELECT 'OK' Got boring AST Fuzzing step 68 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'OK' Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'OK'': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 (''OK''): 'OK'. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 69 out of 1000 EXPLAIN PIPELINE SELECT 'OK' Got boring AST Fuzzing step 70 out of 1000 EXPLAIN ESTIMATE SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 71 out of 1000 EXPLAIN SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 EXPLAIN SELECT 'OK' Got boring AST Fuzzing step 73 out of 1000 EXPLAIN QUERY TREE SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 74 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'OK' Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'OK'': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''OK''): 'OK'. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 75 out of 1000 EXPLAIN SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 76 out of 1000 EXPLAIN SYNTAX SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 77 out of 1000 EXPLAIN SYNTAX SELECT 'OK' Got boring AST Fuzzing step 78 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'OK' Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'OK'': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 (''OK''): 'OK'. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 79 out of 1000 EXPLAIN QUERY TREE SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 80 out of 1000 EXPLAIN QUERY TREE SELECT 'OK' Got boring AST Fuzzing step 81 out of 1000 EXPLAIN QUERY TREE SELECT 'OK' Got boring AST Fuzzing step 82 out of 1000 EXPLAIN QUERY TREE SELECT 'OK' Got boring AST Fuzzing step 83 out of 1000 EXPLAIN SYNTAX SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'OK' Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'OK'': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''OK''): 'OK'. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 85 out of 1000 EXPLAIN SYNTAX SELECT 'OK' Got boring AST Fuzzing step 86 out of 1000 EXPLAIN PIPELINE SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 87 out of 1000 EXPLAIN PIPELINE SELECT 'OK' Got boring AST Fuzzing step 88 out of 1000 EXPLAIN SYNTAX SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 89 out of 1000 EXPLAIN SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 90 out of 1000 EXPLAIN SYNTAX SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 91 out of 1000 EXPLAIN SYNTAX SELECT 'OK' Got boring AST Fuzzing step 92 out of 1000 EXPLAIN SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 93 out of 1000 EXPLAIN SELECT 'OK' Got boring AST Fuzzing step 94 out of 1000 EXPLAIN ESTIMATE SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 EXPLAIN ESTIMATE SELECT 'OK' Got boring AST Fuzzing step 96 out of 1000 EXPLAIN ESTIMATE SELECT 'OK' Got boring AST Fuzzing step 97 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'OK' Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'OK'': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''OK''): 'OK'. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 98 out of 1000 EXPLAIN ESTIMATE SELECT 'OK' Got boring AST Fuzzing step 99 out of 1000 EXPLAIN ESTIMATE SELECT 'OK' Got boring AST Fuzzing step 100 out of 1000 EXPLAIN ESTIMATE SELECT 'OK' Got boring AST Fuzzing step 101 out of 1000 EXPLAIN ESTIMATE SELECT 'OK' Got boring AST Fuzzing step 102 out of 1000 EXPLAIN ESTIMATE SELECT 'OK' Got boring AST Fuzzing step 103 out of 1000 EXPLAIN AST SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 EXPLAIN AST SELECT 'OK' Got boring AST Fuzzing step 105 out of 1000 EXPLAIN AST SELECT 'OK' Got boring AST Fuzzing step 106 out of 1000 EXPLAIN AST SELECT 'OK' Got boring AST Fuzzing step 107 out of 1000 EXPLAIN AST SELECT 'OK' Got boring AST Fuzzing step 108 out of 1000 EXPLAIN QUERY TREE SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 109 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'OK' Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'OK'': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 (''OK''): 'OK'. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 110 out of 1000 EXPLAIN AST SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 111 out of 1000 SELECT 'OK' Query succeeded, using this AST as a start Fuzzing step 112 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 113 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 114 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 115 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 116 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 117 out of 1000 SELECT 'OK' Got boring AST Fuzzing step 118 out of 1000 SELECT toFixedString('OK', 2) Query succeeded, using this AST as a start Fuzzing step 119 out of 1000 EXPLAIN AST SELECT toFixedString('OK', 2) Query succeeded, using this AST as a start Fuzzing step 120 out of 1000 EXPLAIN AST SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 121 out of 1000 EXPLAIN AST SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 122 out of 1000 EXPLAIN ESTIMATE SELECT toFixedString('OK', 2) Query succeeded, using this AST as a start Fuzzing step 123 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString('OK', 2) Query succeeded, using this AST as a start Fuzzing step 124 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 125 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('OK', 2) Query succeeded, using this AST as a start Fuzzing step 126 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 127 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString('OK', 2) Query succeeded, using this AST as a start Fuzzing step 128 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 129 out of 1000 EXPLAIN AST SELECT toFixedString('OK', 2) Query succeeded, using this AST as a start Fuzzing step 130 out of 1000 EXPLAIN AST SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 131 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString('OK', 2) Query succeeded, using this AST as a start Fuzzing step 132 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('OK', 2) Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 134 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 135 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 136 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString('OK', 2) Query succeeded, using this AST as a start Fuzzing step 137 out of 1000 SELECT toFixedString('OK', 2) Query succeeded, using this AST as a start Fuzzing step 138 out of 1000 SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 139 out of 1000 SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 140 out of 1000 SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 141 out of 1000 SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 142 out of 1000 SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 143 out of 1000 SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 144 out of 1000 SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 145 out of 1000 SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 146 out of 1000 EXPLAIN PIPELINE SELECT toFixedString('OK', 2) Query succeeded, using this AST as a start Fuzzing step 147 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('OK', 2) Query succeeded, using this AST as a start Fuzzing step 148 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 149 out of 1000 EXPLAIN SELECT toFixedString('OK', 2) Query succeeded, using this AST as a start Fuzzing step 150 out of 1000 EXPLAIN SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 151 out of 1000 EXPLAIN SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 152 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('OK', 2) Query succeeded, using this AST as a start Fuzzing step 153 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 154 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 155 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString('OK', 2) Query succeeded, using this AST as a start Fuzzing step 156 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('OK', 2) Query succeeded, using this AST as a start Fuzzing step 157 out of 1000 EXPLAIN PIPELINE SELECT toFixedString('OK', 2) Query succeeded, using this AST as a start Fuzzing step 158 out of 1000 EXPLAIN PIPELINE SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 159 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toFixedString('OK', 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toFixedString('OK', 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('toFixedString'): toFixedString('OK', 2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 160 out of 1000 EXPLAIN PIPELINE SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 161 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('OK', 2) Query succeeded, using this AST as a start Fuzzing step 162 out of 1000 SELECT toFixedString('OK', 2) Query succeeded, using this AST as a start Fuzzing step 163 out of 1000 SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 164 out of 1000 SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 165 out of 1000 SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 166 out of 1000 SELECT toFixedString('OK') Error on processing query 'SELECT toFixedString('OK')': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toFixedString('OK'). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 167 out of 1000 SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 168 out of 1000 SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 169 out of 1000 SELECT toFixedString('OK', 2) Got boring AST Fuzzing step 170 out of 1000 SELECT 'OK', 2 Query succeeded, using this AST as a start Fuzzing step 171 out of 1000 SELECT 'OK', 2 Got boring AST Fuzzing step 172 out of 1000 EXPLAIN AST graph = true SELECT 'OK', 2 Error on processing query 'EXPLAIN AST graph = true SELECT 'OK', 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "graph" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495f93b 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 173 out of 1000 SELECT 'OK', 2 Got boring AST Fuzzing step 174 out of 1000 SELECT 'OK', 2 Got boring AST Fuzzing step 175 out of 1000 SELECT 'OK', 2 Got boring AST Fuzzing step 176 out of 1000 SELECT 'OK', 2 Got boring AST Fuzzing step 177 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 'OK', 2 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 'OK', 2': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 178 out of 1000 SELECT 'OK', 2 Got boring AST Fuzzing step 179 out of 1000 SELECT 'OK', 2 Got boring AST Fuzzing step 180 out of 1000 SELECT 'OK', 2 Got boring AST Fuzzing step 181 out of 1000 EXPLAIN optimize = true, sorting = true SELECT 'OK', 2 Error on processing query 'EXPLAIN optimize = true, sorting = true SELECT 'OK', 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "optimize" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496cdff 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 182 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2 Query succeeded, using this AST as a start Fuzzing step 183 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2 Got boring AST Fuzzing step 184 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'OK', 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'OK', 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 (''OK''): 'OK', 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 185 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2 Got boring AST Fuzzing step 186 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2 Got boring AST Fuzzing step 187 out of 1000 EXPLAIN SELECT 'OK', 2 Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 EXPLAIN SELECT 'OK', 2 Got boring AST Fuzzing step 189 out of 1000 EXPLAIN AST SELECT 'OK', 2 Query succeeded, using this AST as a start Fuzzing step 190 out of 1000 EXPLAIN SELECT 'OK', 2 Query succeeded, using this AST as a start Fuzzing step 191 out of 1000 EXPLAIN SYNTAX SELECT 'OK', 2 Query succeeded, using this AST as a start Fuzzing step 192 out of 1000 EXPLAIN SYNTAX SELECT 'OK', 2 Got boring AST Fuzzing step 193 out of 1000 EXPLAIN SELECT 'OK', 2 Query succeeded, using this AST as a start Fuzzing step 194 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2 Query succeeded, using this AST as a start Fuzzing step 195 out of 1000 SELECT 'OK', 2 Query succeeded, using this AST as a start Fuzzing step 196 out of 1000 SELECT 'OK', toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 197 out of 1000 SELECT toNullable('OK'), toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 198 out of 1000 SELECT toNullable('OK'), toLowCardinality(2) Got boring AST Fuzzing step 199 out of 1000 SELECT toNullable('OK'), toLowCardinality(2) Got boring AST Fuzzing step 200 out of 1000 SELECT toNullable(materialize('OK')), toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 201 out of 1000 SELECT toNullable(materialize('OK')), toLowCardinality(2) Got boring AST Fuzzing step 202 out of 1000 SELECT toNullable(materialize(toFixedString('OK', 2))), toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 203 out of 1000 SELECT toNullable(materialize(toFixedString('OK', 2))), toLowCardinality(2) GROUP BY toUInt8((number / toLowCardinality(8)) % toLowCardinality(2)), sum(if((x11 >= a) AND (b != 100) AND 1 AND (c > materialize(220)), toUInt128(1), 0)), (a >= toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220) Error on processing query 'SELECT toNullable(materialize(toFixedString('OK', 2))), toLowCardinality(2) GROUP BY toUInt8((number / toLowCardinality(8)) % toLowCardinality(2)), sum(if((x11 >= a) AND (b != 100) AND 1 AND (c > materialize(220)), toUInt128(1), 0)), (a >= toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT toNullable(materialize(toFixedString('OK', 2))), toLowCardinality(2) GROUP BY toUInt8((number / toLowCardinality(8)) % toLowCardinality(2)), sum(if((x11 >= a) AND (b != 100) AND 1 AND (c > materialize(220)), toUInt128(1), 0)), (a >= toNullable(0)) AND (b != materialize(materialize(100))) AND (c > 220). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 204 out of 1000 SELECT toNullable(materialize(toFixedString('OK', 2))), toLowCardinality(2) Got boring AST Fuzzing step 205 out of 1000 SELECT toNullable(toFixedString('OK', 2)), toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 206 out of 1000 SELECT toFixedString('OK', 2), 2 Query succeeded, using this AST as a start Fuzzing step 207 out of 1000 SELECT toFixedString('OK', 2), 2 Got boring AST Fuzzing step 208 out of 1000 SELECT toFixedString('OK', 2), 2 Got boring AST Fuzzing step 209 out of 1000 SELECT toFixedString('OK', 2), 2 Got boring AST Fuzzing step 210 out of 1000 SELECT toFixedString('OK', 2), 2 Got boring AST Fuzzing step 211 out of 1000 SELECT 'OK', 2, 2 Query succeeded, using this AST as a start Fuzzing step 212 out of 1000 SELECT 'OK', 2, 2 Got boring AST Fuzzing step 213 out of 1000 SELECT 'OK', 2, 2 Got boring AST Fuzzing step 214 out of 1000 SELECT 'OK', 2, 2 Got boring AST Fuzzing step 215 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2 Query succeeded, using this AST as a start Fuzzing step 216 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2 Got boring AST Fuzzing step 217 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2 Got boring AST Fuzzing step 218 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2 Got boring AST Fuzzing step 219 out of 1000 SELECT 'OK', 2, 2 Query succeeded, using this AST as a start Fuzzing step 220 out of 1000 SELECT 'OK', 2, 2 Got boring AST Fuzzing step 221 out of 1000 SELECT toFixedString('OK', 2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 222 out of 1000 SELECT toFixedString('OK', toLowCardinality(2)), 2, 2 Query succeeded, using this AST as a start Fuzzing step 223 out of 1000 SELECT toFixedString('OK', 2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 224 out of 1000 SELECT toFixedString('OK', 2), 2, 2 Got boring AST Fuzzing step 225 out of 1000 SELECT 'OK', 2, 2, toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 226 out of 1000 SELECT 'OK', 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 227 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 228 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 229 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 230 out of 1000 SELECT a >= toLowCardinality(0), 'OK', 2, 2, 2 Error on processing query 'SELECT a >= toLowCardinality(0), 'OK', 2, 2, 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT a >= toLowCardinality(0), 'OK', 2, 2, 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 231 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 232 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 233 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 234 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 235 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 236 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 237 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 238 out of 1000 SELECT 'OK', 2, toUInt128(2), 2 Query succeeded, using this AST as a start Fuzzing step 239 out of 1000 SELECT 'OK', 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 240 out of 1000 EXPLAIN json = true SELECT 'OK', 2, 2, 2 Error on processing query 'EXPLAIN json = true SELECT 'OK', 2, 2, 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "json" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496cdff 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 241 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 242 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 243 out of 1000 SELECT 'OK', 2, 2, toLowCardinality(toNullable(toUInt128(2))) Query succeeded, using this AST as a start Fuzzing step 244 out of 1000 SELECT 'OK', 2, 2, toLowCardinality(toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 245 out of 1000 SELECT 'OK', 2, 2, toLowCardinality(toNullable(2)) Got boring AST Fuzzing step 246 out of 1000 SELECT 'OK', 2, 2, toLowCardinality(toNullable(toNullable(2))) Query succeeded, using this AST as a start Fuzzing step 247 out of 1000 SELECT 'OK', 2, 2, toLowCardinality(toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 248 out of 1000 SELECT 'OK', 2, 2, toNullable(2) Query succeeded, using this AST as a start Fuzzing step 249 out of 1000 SELECT 'OK', 2, 2, toNullable(2) Got boring AST Fuzzing step 250 out of 1000 SELECT 'OK', 2, 2, toNullable(2) GROUP BY (a >= 0) AND (c = 0), materialize(toNullable(1)) Error on processing query 'SELECT 'OK', 2, 2, toNullable(2) GROUP BY (a >= 0) AND (c = 0), materialize(toNullable(1))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 'OK', 2, 2, toNullable(2) GROUP BY (a >= 0) AND (c = 0), materialize(toNullable(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 251 out of 1000 SELECT 'OK', 2, 2, toNullable(2) Got boring AST Fuzzing step 252 out of 1000 SELECT 'OK', 2, 2, toNullable(2) Got boring AST Fuzzing step 253 out of 1000 SELECT 'OK', 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 254 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'OK', 2, 2, 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'OK', 2, 2, 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 (''OK''): 'OK', 2, 2, 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 255 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 256 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 257 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 258 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 259 out of 1000 EXPLAIN PIPELINE SELECT 'OK', toLowCardinality(toLowCardinality(toUInt128(2))), 2, 2 PREWHERE sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS Error on processing query 'EXPLAIN PIPELINE SELECT 'OK', toLowCardinality(toLowCardinality(toUInt128(2))), 2, 2 PREWHERE sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT 'OK', toLowCardinality(toLowCardinality(toUInt128(2))), 2, 2 PREWHERE sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count() IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 260 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2 Got boring AST Fuzzing step 261 out of 1000 SELECT 'OK', toLowCardinality(2), 2, toLowCardinality(2) PREWHERE xor(x2, x3) Error on processing query 'SELECT 'OK', toLowCardinality(2), 2, toLowCardinality(2) PREWHERE xor(x2, x3)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x2' in scope SELECT 'OK', toLowCardinality(2), 2, toLowCardinality(2) PREWHERE xor(x2, x3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 262 out of 1000 SELECT 'OK', toLowCardinality(2), toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 263 out of 1000 SELECT 'OK', 2, toLowCardinality(2), 2 WHERE sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(toLowCardinality(0)))), 1, toUInt128(0))) Error on processing query 'SELECT 'OK', 2, toLowCardinality(2), 2 WHERE sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(toLowCardinality(0)))), 1, toUInt128(0)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 'OK', 2, toLowCardinality(2), 2 WHERE sum(if((a >= 0) AND (b != toNullable(100)) AND (c = toUInt128(toNullable(toLowCardinality(0)))), 1, toUInt128(0))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 264 out of 1000 SELECT 'OK', toLowCardinality(2), toLowCardinality(2), 2 Got boring AST Fuzzing step 265 out of 1000 SELECT 'OK', toLowCardinality(2), toLowCardinality(toFixedString(toLowCardinality(' '), 1), 2), 2 Error on processing query 'SELECT 'OK', toLowCardinality(2), toLowCardinality(toFixedString(toLowCardinality(' '), 1), 2), 2': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 'OK', toLowCardinality(2), toLowCardinality(toFixedString(toLowCardinality(' '), 1), 2), 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 266 out of 1000 SELECT 'OK', 2, toLowCardinality(2), 2 WHERE toUInt256(4) GROUP BY intDiv(materialize(toNullable(20))) * materialize(toUInt128(1000)), and1 != and2, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100) Error on processing query 'SELECT 'OK', 2, toLowCardinality(2), 2 WHERE toUInt256(4) GROUP BY intDiv(materialize(toNullable(20))) * materialize(toUInt128(1000)), and1 != and2, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 1, should be 2: In scope SELECT 'OK', 2, toLowCardinality(2), 2 WHERE toUInt256(4) GROUP BY intDiv(materialize(toNullable(20))) * materialize(toUInt128(1000)), and1 != and2, (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 267 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 268 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2 Got boring AST Fuzzing step 269 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2 Got boring AST Fuzzing step 270 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2 Got boring AST Fuzzing step 271 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2 Got boring AST Fuzzing step 272 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2 Got boring AST Fuzzing step 273 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2 Got boring AST Fuzzing step 274 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2 Got boring AST Fuzzing step 275 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2 Got boring AST Fuzzing step 276 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2 Got boring AST Fuzzing step 277 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2 Got boring AST Fuzzing step 278 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2 Got boring AST Fuzzing step 279 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2 Got boring AST Fuzzing step 280 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2 Got boring AST Fuzzing step 281 out of 1000 SELECT 'OK', 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 282 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 283 out of 1000 SELECT 'OK', 2, toUInt256(2), 2 Query succeeded, using this AST as a start Fuzzing step 284 out of 1000 SELECT 'OK', 2, toUInt256(2), 2 Got boring AST Fuzzing step 285 out of 1000 SELECT 'OK', 2, toUInt256(2), 2 Got boring AST Fuzzing step 286 out of 1000 SELECT 'OK', 2, toUInt256(2), 2 Got boring AST Fuzzing step 287 out of 1000 SELECT 'OK', 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 288 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 289 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 290 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 291 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 292 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 293 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 294 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 295 out of 1000 EXPLAIN PIPELINE compact = true SELECT 'OK', 2, 2, 2 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 'OK', 2, 2, 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 296 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 297 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 298 out of 1000 SELECT 'OK', 2, 2, 2 Got boring AST Fuzzing step 299 out of 1000 SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 300 out of 1000 SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 301 out of 1000 SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 302 out of 1000 EXPLAIN PIPELINE SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 303 out of 1000 EXPLAIN AST SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 304 out of 1000 EXPLAIN SYNTAX SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 305 out of 1000 EXPLAIN SYNTAX SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 306 out of 1000 EXPLAIN PIPELINE SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 EXPLAIN PIPELINE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 308 out of 1000 EXPLAIN SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 309 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 310 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 311 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 312 out of 1000 EXPLAIN SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 313 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize('OK'), 2, 2, 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize('OK'), 2, 2, 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize('OK'), 2, 2, 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 314 out of 1000 EXPLAIN SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 315 out of 1000 EXPLAIN ESTIMATE SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 316 out of 1000 EXPLAIN ESTIMATE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 317 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 318 out of 1000 EXPLAIN SYNTAX SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 319 out of 1000 EXPLAIN SYNTAX SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 320 out of 1000 EXPLAIN SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 321 out of 1000 EXPLAIN SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 322 out of 1000 EXPLAIN SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 323 out of 1000 EXPLAIN SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 324 out of 1000 EXPLAIN SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 325 out of 1000 EXPLAIN SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 326 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 327 out of 1000 EXPLAIN AST SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 328 out of 1000 EXPLAIN ESTIMATE SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 329 out of 1000 EXPLAIN ESTIMATE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 330 out of 1000 EXPLAIN ESTIMATE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 331 out of 1000 EXPLAIN ESTIMATE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 332 out of 1000 EXPLAIN ESTIMATE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 333 out of 1000 EXPLAIN ESTIMATE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 334 out of 1000 EXPLAIN SYNTAX SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 335 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 336 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 337 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 338 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 339 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 340 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize('OK'), 2, 2, 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize('OK'), 2, 2, 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize('OK'), 2, 2, 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 341 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 342 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 343 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 344 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 345 out of 1000 EXPLAIN SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 346 out of 1000 EXPLAIN SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 347 out of 1000 EXPLAIN SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 348 out of 1000 EXPLAIN SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 349 out of 1000 EXPLAIN SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 350 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 351 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 352 out of 1000 EXPLAIN AST SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 353 out of 1000 EXPLAIN AST SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 354 out of 1000 EXPLAIN SYNTAX SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize('OK'), 2, 2, 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize('OK'), 2, 2, 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize('OK'), 2, 2, 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 356 out of 1000 EXPLAIN SYNTAX SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 357 out of 1000 EXPLAIN SYNTAX SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 358 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 359 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 360 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 361 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 362 out of 1000 EXPLAIN QUERY TREE SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 363 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize('OK'), 2, 2, 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize('OK'), 2, 2, 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize('OK'), 2, 2, 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 364 out of 1000 EXPLAIN SYNTAX SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 365 out of 1000 EXPLAIN SYNTAX SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 366 out of 1000 EXPLAIN AST SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 367 out of 1000 EXPLAIN ESTIMATE SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 368 out of 1000 EXPLAIN AST SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 369 out of 1000 EXPLAIN AST SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 370 out of 1000 EXPLAIN SYNTAX SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 371 out of 1000 EXPLAIN SYNTAX SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 372 out of 1000 EXPLAIN SYNTAX SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 373 out of 1000 EXPLAIN SYNTAX SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 374 out of 1000 EXPLAIN SYNTAX SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 375 out of 1000 EXPLAIN SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 EXPLAIN SELECT materialize('OK'), 2, 2, 2 Got boring AST Fuzzing step 377 out of 1000 EXPLAIN AST SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 378 out of 1000 EXPLAIN ESTIMATE SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 379 out of 1000 SELECT materialize('OK'), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 380 out of 1000 SELECT 'OK', 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 381 out of 1000 SELECT 'OK', 2, 2, toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 382 out of 1000 SELECT 'OK', 2, 2, toUInt256(2) Got boring AST Fuzzing step 383 out of 1000 SELECT 'OK', 2, 2, toUInt256(2) Got boring AST Fuzzing step 384 out of 1000 SELECT 'OK', 2, 2, toUInt256(2) Got boring AST Fuzzing step 385 out of 1000 SELECT 'OK', 2, 2, toUInt256(2) Got boring AST Fuzzing step 386 out of 1000 SELECT 'OK', 2, 2, toUInt256(2) Got boring AST Fuzzing step 387 out of 1000 SELECT 'OK', 2, toLowCardinality(2), toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 388 out of 1000 SELECT 'OK', 2, toLowCardinality(2), toUInt256(2) Got boring AST Fuzzing step 389 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'OK', 2, 2, toUInt256(2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'OK', 2, 2, toUInt256(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 45 (''OK''): 'OK', 2, 2, toUInt256(2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 390 out of 1000 SELECT 'OK', 2, toLowCardinality(2), toUInt256(2) Got boring AST Fuzzing step 391 out of 1000 SELECT toNullable(toFixedString('OK', 2)), 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 392 out of 1000 SELECT cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t), toFixedString('OK', 2), 2, toLowCardinality(2), 2 Error on processing query 'SELECT cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t), toFixedString('OK', 2), 2, toLowCardinality(2), 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23, currentDatabase(), t), toFixedString('OK', 2), 2, toLowCardinality(2), 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 393 out of 1000 SELECT toFixedString('OK', 2), 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 394 out of 1000 SELECT 'OK', 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 395 out of 1000 SELECT 'OK', 2, 2, toLowCardinality(toNullable(2)), 2 Query succeeded, using this AST as a start Fuzzing step 396 out of 1000 SELECT 'OK', 2, 2, toNullable(2), 2 Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 SELECT 'OK', 2, 2, toNullable(2), 2 Got boring AST Fuzzing step 398 out of 1000 SELECT 'OK', 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 399 out of 1000 SELECT 'OK', toUInt256(2), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 400 out of 1000 SELECT 'OK', 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 401 out of 1000 SELECT 'OK', 2, 2, toUInt256(2), 2 Query succeeded, using this AST as a start Fuzzing step 402 out of 1000 SELECT 'OK', 2, 2, toUInt256(2), 2 Got boring AST Fuzzing step 403 out of 1000 SELECT 'OK', 2, 2, toUInt256(2), 2 Got boring AST Fuzzing step 404 out of 1000 SELECT 'OK', 2, 2, toUInt256(2), 2 Got boring AST Fuzzing step 405 out of 1000 SELECT 'OK', 2, 2, toUInt256(2), 2 Got boring AST Fuzzing step 406 out of 1000 SELECT 'OK', 2, 2, toUInt256(2), 2 Got boring AST Fuzzing step 407 out of 1000 SELECT 'OK', 2, 2, toUInt256(2), 2 Got boring AST Fuzzing step 408 out of 1000 SELECT 'OK', 2, 2, toUInt256(2), 2 Got boring AST Fuzzing step 409 out of 1000 SELECT 'OK', 2, 2, toUInt256(2), 2 Got boring AST Fuzzing step 410 out of 1000 SELECT 'OK', 2, 2, toUInt256(2), 2 Got boring AST Fuzzing step 411 out of 1000 SELECT 'OK', 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 412 out of 1000 SELECT 'OK', 2, 2, 2, 2 Got boring AST Fuzzing step 413 out of 1000 SELECT 'OK', 2, 2, 2, 2 Got boring AST Fuzzing step 414 out of 1000 SELECT 'OK', 2, 2, 2, 2 Got boring AST Fuzzing step 415 out of 1000 SELECT 'OK', 2, 2, 2, 2 Got boring AST Fuzzing step 416 out of 1000 SELECT 'OK', 2, 2, 2, 2 Got boring AST Fuzzing step 417 out of 1000 SELECT 'OK', 2, 2, 2, 2 Got boring AST Fuzzing step 418 out of 1000 SELECT 'OK', 2, 2, 2, 2 Got boring AST Fuzzing step 419 out of 1000 SELECT 'OK', 2, 2, 2, 2 Got boring AST Fuzzing step 420 out of 1000 SELECT 'OK', 2, 2, 2, 2 Got boring AST Fuzzing step 421 out of 1000 SELECT 'OK', 2, 2, 2, 2 Got boring AST Fuzzing step 422 out of 1000 SELECT 'OK', 2, 2, 2, 2 Got boring AST Fuzzing step 423 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 424 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2, 2 Got boring AST Fuzzing step 425 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2, 2 Got boring AST Fuzzing step 426 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2, toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 427 out of 1000 SELECT 'OK', toLowCardinality(sum(multiIf(s IN ('a', 'b'), materialize(cluster('test_cluster_two_shards', currentDatabase(), t), 1), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS, 2), 2, 2, 2 Error on processing query 'SELECT 'OK', toLowCardinality(sum(multiIf(s IN ('a', 'b'), materialize(cluster('test_cluster_two_shards', currentDatabase(), t), 1), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS, 2), 2, 2, 2': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT 'OK', toLowCardinality(sum(multiIf(s IN ('a', 'b'), materialize(cluster('test_cluster_two_shards', currentDatabase(), t), 1), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS, 2), 2, 2, 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 428 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2, toUInt256(test_alias__fuzz_14, 2) Error on processing query 'SELECT 'OK', toLowCardinality(2), 2, 2, toUInt256(test_alias__fuzz_14, 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_14' in scope SELECT 'OK', toLowCardinality(2), 2, 2, toUInt256(test_alias__fuzz_14, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 429 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2, toUInt256(2) Got boring AST Fuzzing step 430 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2, toUInt256(2) Got boring AST Fuzzing step 431 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2, toUInt256(toUInt128(2)) Query succeeded, using this AST as a start Fuzzing step 432 out of 1000 SELECT 'OK', toLowCardinality(materialize(2)), 2, 2, toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 433 out of 1000 SELECT 'OK', toLowCardinality(materialize(2)), 2, 2, toUInt256(2) Got boring AST Fuzzing step 434 out of 1000 SELECT 'OK', toLowCardinality(materialize(2)), 2, 2, toUInt256(2) Got boring AST Fuzzing step 435 out of 1000 SELECT 'OK', toLowCardinality(materialize(2)), 2, 2, toUInt256(2) Got boring AST Fuzzing step 436 out of 1000 SELECT 'OK', toLowCardinality(materialize(2)), toUInt128(2), 2, toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 437 out of 1000 SELECT 'OK', toLowCardinality(nums__fuzz_26, materialize(2)), toUInt128(2), 2, toUInt256(2) Error on processing query 'SELECT 'OK', toLowCardinality(nums__fuzz_26, materialize(2)), toUInt128(2), 2, toUInt256(2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_26' in scope SELECT 'OK', toLowCardinality(nums__fuzz_26, materialize(2)), toUInt128(2), 2, toUInt256(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 438 out of 1000 SELECT 'OK', toLowCardinality(2), toUInt128(2), 2, toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 439 out of 1000 SELECT 'OK', toLowCardinality(2), toUInt128(2), 2, toUInt256(2) Got boring AST Fuzzing step 440 out of 1000 SELECT 'OK', toLowCardinality(2), toUInt128(2), 2, toUInt256(2) Got boring AST Fuzzing step 441 out of 1000 SELECT toLowCardinality('OK'), 2, toUInt128(2), toUInt128(2), toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 442 out of 1000 SELECT toLowCardinality('OK'), 2, 2, toUInt128(2), toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 443 out of 1000 SELECT toLowCardinality('OK'), 2, 2, toUInt128(2), toUInt256(2) Got boring AST Fuzzing step 444 out of 1000 SELECT 'OK', 2, 2, toUInt128(2), toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 445 out of 1000 SELECT 'OK', 2, 2, 2, toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 446 out of 1000 SELECT 'OK', 2, 2, toNullable(2), toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 447 out of 1000 SELECT 'OK', 2, 2, toNullable(2), toUInt256(2) Got boring AST Fuzzing step 448 out of 1000 SELECT 'OK', 2, 2, toNullable(2), toUInt256(2) Got boring AST Fuzzing step 449 out of 1000 SELECT 'OK', 2, toNullable(2), toNullable(2), toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 450 out of 1000 SELECT 'OK', 2, toNullable(2), toNullable(2), toUInt256(2) Got boring AST Fuzzing step 451 out of 1000 SELECT 'OK', 2, 2, toNullable(2), toUInt256(toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 452 out of 1000 SELECT 'OK', 2, 2, toNullable(2), toUInt256(toNullable(2)) Got boring AST Fuzzing step 453 out of 1000 SELECT 'OK', 2, 2, toNullable(2), toUInt256(toNullable(2)) Got boring AST Fuzzing step 454 out of 1000 SELECT 'OK', 2, 2, toNullable(2), toUInt256(toNullable(2)) Got boring AST Fuzzing step 455 out of 1000 SELECT 'OK', 2, 2, toNullable(2), toUInt256(toNullable(toUInt128(2))) Query succeeded, using this AST as a start Fuzzing step 456 out of 1000 SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Query succeeded, using this AST as a start Fuzzing step 457 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Query succeeded, using this AST as a start Fuzzing step 458 out of 1000 EXPLAIN SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Query succeeded, using this AST as a start Fuzzing step 459 out of 1000 EXPLAIN SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 460 out of 1000 EXPLAIN SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 461 out of 1000 EXPLAIN SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 462 out of 1000 EXPLAIN SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 463 out of 1000 EXPLAIN SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 464 out of 1000 EXPLAIN SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 465 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 (''OK''): 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 466 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Query succeeded, using this AST as a start Fuzzing step 467 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 468 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Query succeeded, using this AST as a start Fuzzing step 469 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 470 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 471 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 472 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 473 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 474 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 475 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 476 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 477 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 478 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 479 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Query succeeded, using this AST as a start Fuzzing step 480 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 481 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 482 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 483 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 484 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 485 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Query succeeded, using this AST as a start Fuzzing step 486 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 487 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Query succeeded, using this AST as a start Fuzzing step 488 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 489 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 490 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 491 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 492 out of 1000 EXPLAIN SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Query succeeded, using this AST as a start Fuzzing step 493 out of 1000 EXPLAIN SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 494 out of 1000 EXPLAIN SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 495 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Query succeeded, using this AST as a start Fuzzing step 496 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Query succeeded, using this AST as a start Fuzzing step 497 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 48 (''OK''): 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 498 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 (''OK''): 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 499 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Got boring AST Fuzzing step 500 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 48 (''OK''): 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 501 out of 1000 EXPLAIN SYNTAX SELECT 'OK', 2, 2, toNullable(2), toNullable(toUInt128(2)) Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 SELECT 'OK', toLowCardinality(2), 2, toNullable(2), toNullable(toUInt128(2)) Query succeeded, using this AST as a start Fuzzing step 503 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2, toNullable(toUInt128(2)) Query succeeded, using this AST as a start Fuzzing step 504 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2, toNullable(toUInt128(2)) Got boring AST Fuzzing step 505 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2, toNullable(toUInt128(2)) Got boring AST Fuzzing step 506 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2, toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 507 out of 1000 SELECT 'OK', toLowCardinality(toNullable(2)), 2, 2, toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 508 out of 1000 SELECT 'OK', toLowCardinality(toNullable(2)), 2, materialize(2), toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 509 out of 1000 SELECT toFixedString('OK', 2), toLowCardinality(toNullable(2)), 2, materialize(2), toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 510 out of 1000 SELECT toFixedString('OK', 2), toLowCardinality(2), 2, materialize(2), toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 511 out of 1000 SELECT toFixedString('OK', 2), toLowCardinality(2), 2, 2, toUInt128(2) WHERE round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) / count() IGNORE NULLS) * 100) Error on processing query 'SELECT toFixedString('OK', 2), toLowCardinality(2), 2, 2, toUInt128(2) WHERE round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) / count() IGNORE NULLS) * 100)': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toFixedString('OK', 2), toLowCardinality(2), 2, 2, toUInt128(2) WHERE round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) / count() IGNORE NULLS) * 100). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 512 out of 1000 SELECT toFixedString('OK', 2), toLowCardinality(2), 2, materialize(2), toUInt128(2) Got boring AST Fuzzing step 513 out of 1000 SELECT 'OK', 2, toLowCardinality(2), 2, materialize(2), toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 SELECT 'OK', 2, toLowCardinality(2), 2, materialize(2), 2 Query succeeded, using this AST as a start Fuzzing step 515 out of 1000 SELECT 'OK', 2, toLowCardinality(2), 2, materialize(2), 2 Got boring AST Fuzzing step 516 out of 1000 SELECT 'OK', 2, toLowCardinality(2), 2, materialize(2), 2 Got boring AST Fuzzing step 517 out of 1000 SELECT 'OK', 2, toLowCardinality(2), 2, materialize(2), 2 Got boring AST Fuzzing step 518 out of 1000 SELECT 'OK', 2, toLowCardinality(2), 2, materialize(2), 2 Got boring AST Fuzzing step 519 out of 1000 SELECT 'OK', 2, toLowCardinality(2), 2, materialize(2), 2 WHERE toLowCardinality(toNullable(1)) Query succeeded, using this AST as a start Fuzzing step 520 out of 1000 SELECT 'OK', 2, toLowCardinality(2), 2, materialize(2), 2 WHERE toLowCardinality(toNullable(1)) Got boring AST Fuzzing step 521 out of 1000 SELECT 'OK', 2, toLowCardinality(2), 2, 2, 2 WHERE toLowCardinality(toNullable(1)) Query succeeded, using this AST as a start Fuzzing step 522 out of 1000 SELECT 'OK', 2, toLowCardinality(2), 2, 2, 2 WHERE toLowCardinality(toNullable(1)) Got boring AST Fuzzing step 523 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 WHERE toLowCardinality(toNullable(1)) Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 WHERE toLowCardinality(1) Query succeeded, using this AST as a start Fuzzing step 525 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 WHERE toLowCardinality(1) Got boring AST Fuzzing step 526 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 WHERE toLowCardinality(1) Got boring AST Fuzzing step 527 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 PREWHERE toLowCardinality(toLowCardinality(1)) Error on processing query 'SELECT 'OK', 2, 2, 2, 2, 2 PREWHERE toLowCardinality(toLowCardinality(1))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (8c17915e-b852-4329-9393-082941235aa5)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:257: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000003360556e 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 8. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 11. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 16. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 17. ? @ 0x00007fa035818ac3 18. ? @ 0x00007fa0358aa850 Fuzzing step 528 out of 1000 SELECT toLowCardinality('OK'), 2, 2, 2, toNullable(2), 2 Query succeeded, using this AST as a start Fuzzing step 529 out of 1000 SELECT toLowCardinality('OK'), 2, 2, 2, toNullable(2), 2 Got boring AST Fuzzing step 530 out of 1000 SELECT toLowCardinality('OK'), toNullable(2), 2, 2, toNullable(2), 2 Query succeeded, using this AST as a start Fuzzing step 531 out of 1000 SELECT 'OK', toNullable(2), 2, 2, toNullable(2), 2 Query succeeded, using this AST as a start Fuzzing step 532 out of 1000 SELECT 'OK', toNullable(toUInt128(2)), 2, 2, toNullable(2), 2 Query succeeded, using this AST as a start Fuzzing step 533 out of 1000 SELECT 'OK', toNullable(toUInt128(2)), 2, 2, toNullable(2), 2 Got boring AST Fuzzing step 534 out of 1000 SELECT 'OK', toNullable(toUInt128(2)), 2, 2, toNullable(2), 2 GROUP BY test_alias__fuzz_33, toNullable(toNullable(1)), cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(toUInt256(23)))), 23), currentDatabase(), t) Error on processing query 'SELECT 'OK', toNullable(toUInt128(2)), 2, 2, toNullable(2), 2 GROUP BY test_alias__fuzz_33, toNullable(toNullable(1)), cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(toUInt256(23)))), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression identifier 'test_alias__fuzz_33' in scope SELECT 'OK', toNullable(toUInt128(2)), 2, 2, toNullable(2), 2 GROUP BY test_alias__fuzz_33, toNullable(toNullable(1)), cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(toUInt256(23)))), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 535 out of 1000 SELECT 'OK', toNullable(toUInt128(toNullable(toUInt128(2)))), 2, 2, toNullable(2), toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 536 out of 1000 SELECT 'OK', toNullable(toUInt128(toNullable(2))), 2, 2, toNullable(2), 2 Query succeeded, using this AST as a start Fuzzing step 537 out of 1000 SELECT 'OK', toNullable(toUInt128(2)), 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 538 out of 1000 SELECT 'OK', toNullable(2), 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 539 out of 1000 SELECT 'OK', toNullable(2), 2, 2, 2, 2 Got boring AST Fuzzing step 540 out of 1000 SELECT 'OK', toNullable(2), 2, 2, 2, 2 Got boring AST Fuzzing step 541 out of 1000 SELECT 'OK', toNullable(2), 2, 2, 2, 2 Got boring AST Fuzzing step 542 out of 1000 SELECT 'OK', toNullable(2), 2, 2, 2, 2 Got boring AST Fuzzing step 543 out of 1000 SELECT 'OK', toNullable(2), 2, toNullable(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 544 out of 1000 SELECT 'OK', toNullable(2), 2, toNullable(2), 2, 2 Got boring AST Fuzzing step 545 out of 1000 SELECT 'OK', toNullable(2), 2, toNullable(2), 2, 2 Got boring AST Fuzzing step 546 out of 1000 SELECT 'OK', toNullable(2), 2, toNullable(2), 2, 2 Got boring AST Fuzzing step 547 out of 1000 SELECT 'OK', toNullable(2), 2, toNullable(2), 2, 2 Got boring AST Fuzzing step 548 out of 1000 SELECT 'OK', 2, 2, toNullable(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 549 out of 1000 SELECT 'OK', toLowCardinality(2), 2, toNullable(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 550 out of 1000 SELECT 'OK', toLowCardinality(2), 2, toNullable(2), 2, 2 Got boring AST Fuzzing step 551 out of 1000 SELECT 'OK', toLowCardinality(2), 2, toNullable(2), 2, 2 Got boring AST Fuzzing step 552 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2, 2, 2 GROUP BY (sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100, toUInt256(100) Error on processing query 'SELECT 'OK', toLowCardinality(2), 2, 2, 2, 2 GROUP BY (sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100, toUInt256(100)': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT 'OK', toLowCardinality(2), 2, 2, 2, 2 GROUP BY (sum(multiIf(s IN ('a', 'b'), toUInt128(1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100, toUInt256(100). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 553 out of 1000 SELECT 'OK', toLowCardinality(2), 2, toNullable(2), 2, 2 Got boring AST Fuzzing step 554 out of 1000 SELECT 'OK', 2, 2, toNullable(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 555 out of 1000 SELECT 'OK', 2, 2, toNullable(2), 2, 2 Got boring AST Fuzzing step 556 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 557 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 558 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 559 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 560 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 561 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 562 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 563 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 564 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 565 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, 2, 2, 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, 2, 2, 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 45 (''OK''): 'OK', 2, 2, 2, 2, 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 566 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 567 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 568 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 569 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 570 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 571 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 572 out of 1000 EXPLAIN SYNTAX SELECT 'OK', 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 573 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, 2, 2, 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, 2, 2, 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 45 (''OK''): 'OK', 2, 2, 2, 2, 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 574 out of 1000 EXPLAIN SYNTAX SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 575 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 576 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 577 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 578 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 579 out of 1000 EXPLAIN ESTIMATE SELECT 'OK', 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 580 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 581 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 582 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 583 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 584 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 585 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 586 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'OK', 2, 2, 2, 2, 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'OK', 2, 2, 2, 2, 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 50 (''OK''): 'OK', 2, 2, 2, 2, 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 587 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 588 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 589 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 590 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 591 out of 1000 SELECT 'OK', 2, materialize(toLowCardinality(2)), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 592 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 593 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2 Got boring AST Fuzzing step 594 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2 Got boring AST Fuzzing step 595 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2 Got boring AST Fuzzing step 596 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2 Got boring AST Fuzzing step 597 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2 Got boring AST Fuzzing step 598 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2 Got boring AST Fuzzing step 599 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2 GROUP BY number / 64 Error on processing query 'SELECT 'OK', 2, materialize(2), 2, 2, 2 GROUP BY number / 64': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT 'OK', 2, materialize(2), 2, 2, 2 GROUP BY number / 64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 600 out of 1000 SELECT 'OK', 2, 2, 2, toUInt256(2), 2 Query succeeded, using this AST as a start Fuzzing step 601 out of 1000 SELECT 'OK', 2, 2, 2, toUInt256(2), 2 Got boring AST Fuzzing step 602 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 603 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 604 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 605 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 606 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 WHERE 1 AND (c > 220) Error on processing query 'SELECT 'OK', 2, 2, 2, 2, 2 WHERE 1 AND (c > 220)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT 'OK', 2, 2, 2, 2, 2 WHERE 1 AND (c > 220). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 607 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 608 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2 Got boring AST Fuzzing step 609 out of 1000 SELECT toFixedString('OK', 2), 2, toLowCardinality(2), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 610 out of 1000 SELECT 'OK', 2, 2, toLowCardinality(2), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 611 out of 1000 SELECT toFixedString('OK', 2), 2, 2, toLowCardinality(2), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 612 out of 1000 SELECT toFixedString('OK', toUInt256(2)), 2, 2, toLowCardinality(2), 2, 2, 2 GROUP BY intDiv(toUInt32(rtime), toUInt256(20)) * 1000, nums__fuzz_42 Error on processing query 'SELECT toFixedString('OK', toUInt256(2)), 2, 2, toLowCardinality(2), 2, 2, 2 GROUP BY intDiv(toUInt32(rtime), toUInt256(20)) * 1000, nums__fuzz_42': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT toFixedString('OK', toUInt256(2)), 2, 2, toLowCardinality(2), 2, 2, 2 GROUP BY intDiv(toUInt32(rtime), toUInt256(20)) * 1000, nums__fuzz_42. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 613 out of 1000 SELECT toFixedString('OK', 2), 2, 2, toLowCardinality(2), 2, 2, 2 Got boring AST Fuzzing step 614 out of 1000 SELECT 'OK', 2, 2, 2, toLowCardinality(2), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 615 out of 1000 SELECT 'OK', 2, 2, 2, toLowCardinality(2), toLowCardinality(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 616 out of 1000 SELECT materialize('OK'), 2, 2, 2, 2, toLowCardinality(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 617 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 618 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 619 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 620 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, 2, 2, 2, 2, 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 48 (''OK''): 'OK', 2, 2, 2, 2, 2, 2, 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 621 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 622 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 623 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 624 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 625 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 626 out of 1000 EXPLAIN ESTIMATE SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 627 out of 1000 EXPLAIN ESTIMATE SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 628 out of 1000 EXPLAIN ESTIMATE SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 629 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 630 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 631 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 632 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, materialize(2) Query succeeded, using this AST as a start Fuzzing step 633 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, materialize(2) Got boring AST Fuzzing step 634 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 635 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 636 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 637 out of 1000 EXPLAIN SYNTAX SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 638 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'OK', 2, 2, 2, 2, 2, 2, 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 53 (''OK''): 'OK', 2, 2, 2, 2, 2, 2, 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 639 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 640 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 641 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 642 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 643 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'OK', 2, 2, 2, 2, 2, 2, 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 53 (''OK''): 'OK', 2, 2, 2, 2, 2, 2, 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 644 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 645 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 646 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 647 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 648 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 649 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 650 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 651 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 652 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 653 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, materialize(2), 2 Query succeeded, using this AST as a start Fuzzing step 654 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, materialize(2), 2 Got boring AST Fuzzing step 655 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, materialize(2), 2 Got boring AST Fuzzing step 656 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 657 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 658 out of 1000 SELECT toFixedString('OK', 2), 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 659 out of 1000 SELECT toFixedString('OK', 2), 2, 2, materialize(toUInt128(2)), 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 660 out of 1000 SELECT toFixedString('OK', 2), 2, 2, materialize(toUInt128(2)), 2, 2, 2, 2 Got boring AST Fuzzing step 661 out of 1000 SELECT toFixedString('OK', 2), 2, 2, materialize(toUInt128(sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), materialize(toLowCardinality(0)))), 2)), 2, 2, 2, 2 Error on processing query 'SELECT toFixedString('OK', 2), 2, 2, materialize(toUInt128(sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), materialize(toLowCardinality(0)))), 2)), 2, 2, 2, 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toFixedString('OK', 2), 2, 2, materialize(toUInt128(sum(if((b != 100) AND (c = 0), toLowCardinality(toNullable(1)), materialize(toLowCardinality(0)))), 2)), 2, 2, 2, 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 662 out of 1000 SELECT toFixedString('OK', materialize(toNullable(2))), 2, 2, materialize(2), 2, 2, 2, 2 Error on processing query 'SELECT toFixedString('OK', materialize(toNullable(2))), 2, 2, materialize(2), 2, 2, 2, 2': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT toFixedString('OK', materialize(toNullable(2))), 2, 2, materialize(2), 2, 2, 2, 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 663 out of 1000 SELECT toFixedString('OK', 2), 2, 2, materialize(toUInt128(2)), 2, 2, 2, 2 WHERE toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))) Error on processing query 'SELECT toFixedString('OK', 2), 2, 2, materialize(toUInt128(2)), 2, 2, 2, 2 WHERE toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23)))': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: LowCardinality(Nullable(FixedString(23))). In query SELECT toFixedString('OK', 2), 2, 2, materialize(toUInt128(2)), 2, 2, 2, 2 WHERE toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 664 out of 1000 SELECT toFixedString('OK', 2), 2, 2, materialize(toUInt128(2)), 2, 2, 2, 2 Got boring AST Fuzzing step 665 out of 1000 SELECT 'OK', 2, materialize(toUInt256(2)), 2, materialize(toUInt128(2)), 2, 2, 2, materialize(2) Query succeeded, using this AST as a start Fuzzing step 666 out of 1000 SELECT 'OK', 2, materialize(toUInt256(2)), 2, materialize(toUInt128(2)), 2, 2, 2, materialize(2) Got boring AST Fuzzing step 667 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, toUInt128(2), 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 668 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 669 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true SELECT 'OK', 2, toUInt256(2), 2, 2, 2, 2, 2, 2 Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true SELECT 'OK', 2, toUInt256(2), 2, 2, 2, 2, 2, 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 670 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, 2, 2, 2, 2, 2 PREWHERE xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7))) Error on processing query 'SELECT 'OK', 2, toUInt256(2), 2, 2, 2, 2, 2, 2 PREWHERE xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x2' in scope SELECT 'OK', 2, toUInt256(2), 2, 2, 2, 2, 2, 2 PREWHERE xor(xor(xor(x2, x3), xor(x4, x5)), xor(xor(x6, x7))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 671 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 672 out of 1000 SELECT 'OK', 2, toUInt256(2), toUInt128(2), 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 673 out of 1000 SELECT 'OK', 2, toUInt256(2), toUInt128(2), 2, toUInt128(2), 2, toNullable(2), 2 Query succeeded, using this AST as a start Fuzzing step 674 out of 1000 SELECT 'OK', 2, 2, toUInt128(2), 2, 2, 2, toNullable(2), 2 Query succeeded, using this AST as a start Fuzzing step 675 out of 1000 SELECT 'OK', 2, 2, toUInt128(2), 2, 2, 2, toNullable(2), 2 Got boring AST Fuzzing step 676 out of 1000 SELECT 'OK', 2, 2, toUInt128(toLowCardinality(2)), 2, 2, 2, toNullable(2), 2 Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 SELECT 'OK', 2, 2, toUInt128(toLowCardinality(2)), 2, 2, 2, toNullable(2), 2 Got boring AST Fuzzing step 678 out of 1000 SELECT 'OK', 2, 2, toUInt128(toLowCardinality(2)), 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 679 out of 1000 SELECT 'OK', 2, 2, toUInt128(toLowCardinality(2)), 2, 2, 2, 2, 2 Got boring AST Fuzzing step 680 out of 1000 SELECT 'OK', 2, 2, toUInt128(toLowCardinality(2)), 2, 2, 2, 2, 2 Got boring AST Fuzzing step 681 out of 1000 SELECT 'OK', 2, 2, toLowCardinality(2), 2, 2, 2, 2, toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 682 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 683 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, toUInt256(2) Got boring AST Fuzzing step 684 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, toUInt256(2) Got boring AST Fuzzing step 685 out of 1000 SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, 2, toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 686 out of 1000 SELECT 'OK', 2, 2, 2, toLowCardinality(2), 2, 2, 2, toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 SELECT 'OK', 2, 2, 2, toLowCardinality(2), 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 688 out of 1000 SELECT 'OK', 2, 2, 2, toLowCardinality(2), 2, 2, 2, 2 Got boring AST Fuzzing step 689 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 690 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 691 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 692 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 693 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 694 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 695 out of 1000 SELECT 'OK', 2, 2, 2, 2, materialize(toNullable(2)), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 696 out of 1000 SELECT 'OK', 2, 2, 2, 2, materialize(toNullable(2)), 2, 2, 2 Got boring AST Fuzzing step 697 out of 1000 SELECT 'OK', 2, 2, 2, 2, materialize(toNullable(2)), 2, 2, 2 Got boring AST Fuzzing step 698 out of 1000 SELECT 'OK', 2, 2, 2, toNullable(2), materialize(toNullable(2)), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 699 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, toNullable(2), materialize(toNullable(materialize(materialize(2)), 2)), 2, 2, 2 Error on processing query 'EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, toNullable(2), materialize(toNullable(materialize(materialize(2)), 2)), 2, 2, 2': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT 'OK', 2, 2, 2, toNullable(2), materialize(toNullable(materialize(materialize(2)), 2)), 2, 2, 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 700 out of 1000 SELECT 'OK', 2, 2, 2, toNullable(2), materialize(2), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 701 out of 1000 SELECT 'OK', 2, 2, 2, toNullable(2), materialize(2), 2, materialize(2), 2 Query succeeded, using this AST as a start Fuzzing step 702 out of 1000 SELECT 'OK', 2, 2, 2, toNullable(2), materialize(2), 2, materialize(2), 2 Got boring AST Fuzzing step 703 out of 1000 SELECT 'OK', 2, 2, 2, toNullable(2), materialize(2), 2, materialize(2), 2 Got boring AST Fuzzing step 704 out of 1000 SELECT 'OK', 2, 2, 2, toNullable(2), materialize(2), 2, materialize(2), 2 Got boring AST Fuzzing step 705 out of 1000 SELECT 'OK', 2, 2, 2, toNullable(2), materialize(x9 AND (x10 AND x11), 2), 2, materialize(2), toLowCardinality(2) Error on processing query 'SELECT 'OK', 2, 2, 2, toNullable(2), materialize(x9 AND (x10 AND x11), 2), 2, materialize(2), toLowCardinality(2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x9' in scope SELECT 'OK', 2, 2, 2, toNullable(2), materialize(x9 AND (x10 AND x11), 2), 2, materialize(2), toLowCardinality(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 706 out of 1000 SELECT 'OK', 2, 2, 2, toNullable(2), materialize(2), 2, materialize(2), 2 Got boring AST Fuzzing step 707 out of 1000 SELECT 'OK', 2, 2, 2, 2, materialize(2), 2, materialize(2), 2 Query succeeded, using this AST as a start Fuzzing step 708 out of 1000 SELECT 'OK', 2, 2, 2, materialize(2), materialize(2), 2, materialize(2), 2 Query succeeded, using this AST as a start Fuzzing step 709 out of 1000 SELECT 'OK', 2, 2, 2, materialize(2), materialize(2), 2, materialize(2), 2 Got boring AST Fuzzing step 710 out of 1000 SELECT 'OK', 2, 2, 2, materialize(2), materialize(2), 2, materialize(2), 2 Got boring AST Fuzzing step 711 out of 1000 SELECT 'OK', 2, 2, 2, materialize(2), materialize(2), 2, materialize(2), 2 Got boring AST Fuzzing step 712 out of 1000 EXPLAIN `header, description` = true, json = true SELECT 'OK', 2, 2, 2, materialize(2), materialize(2), 2, materialize(2), 2 Error on processing query 'EXPLAIN `header, description` = true, json = true SELECT 'OK', 2, 2, 2, materialize(2), materialize(2), 2, materialize(2), 2': Received from localhost:9000. DB::Exception: Unknown setting "header, description" for EXPLAIN PLAN query. Supported settings: sorting, optimize, indexes, json, actions, description, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000034980e77 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496d3ee 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 713 out of 1000 SELECT 'OK', toLowCardinality(2), 2, 2, materialize(2), materialize(2), 2, materialize(2), 2 Query succeeded, using this AST as a start Fuzzing step 714 out of 1000 SELECT 'OK', 2, 2, 2, materialize(2), materialize(2), 2, materialize(2), 2 Query succeeded, using this AST as a start Fuzzing step 715 out of 1000 SELECT 'OK', 2, 2, 2, materialize(2), 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 716 out of 1000 SELECT 'OK', 2, toUInt128(2), 2, materialize(2), 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 717 out of 1000 SELECT 'OK', 2, 2, 2, materialize(2), 2, materialize(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 718 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, materialize(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 719 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, materialize(2), 2, 2 Got boring AST Fuzzing step 720 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, materialize(2), 2, 2 Got boring AST Fuzzing step 721 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, materialize(2), toUInt128(2), 2 GROUP BY sum(if(greaterOrEquals(sum(if((b != materialize(materialize(toNullable(1))), 100) AND (c = 0), materialize(toUInt128(1)), 0)), a, 0) AND splitByChar(toLowCardinality(' '), getOSKernelVersion()) AND materialize(1), 1, 0)) IGNORE NULLS, cluster(toFixedString(toFixedString('test_cluster_two_shards'), 23, 23), currentDatabase(t__fuzz_24), t) Error on processing query 'SELECT 'OK', 2, 2, 2, 2, 2, materialize(2), toUInt128(2), 2 GROUP BY sum(if(greaterOrEquals(sum(if((b != materialize(materialize(toNullable(1))), 100) AND (c = 0), materialize(toUInt128(1)), 0)), a, 0) AND splitByChar(toLowCardinality(' '), getOSKernelVersion()) AND materialize(1), 1, 0)) IGNORE NULLS, cluster(toFixedString(toFixedString('test_cluster_two_shards'), 23, 23), currentDatabase(t__fuzz_24), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT 'OK', 2, 2, 2, 2, 2, materialize(2), toUInt128(2), 2 GROUP BY sum(if(greaterOrEquals(sum(if((b != materialize(materialize(toNullable(1))), 100) AND (c = 0), materialize(toUInt128(1)), 0)), a, 0) AND splitByChar(toLowCardinality(' '), getOSKernelVersion()) AND materialize(1), 1, 0)) IGNORE NULLS, cluster(toFixedString(toFixedString('test_cluster_two_shards'), 23, 23), currentDatabase(t__fuzz_24), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 26. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 29. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 31. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 Fuzzing step 722 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, materialize(2), materialize(2), 2 Query succeeded, using this AST as a start Fuzzing step 723 out of 1000 EXPLAIN PIPELINE compact = true SELECT 'OK', 2, 2, toUInt256(2), 2, 2, materialize(2), materialize(2), 2 GROUP BY number % toNullable(2), (b != 100) AND (c = toNullable(0)) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 'OK', 2, 2, toUInt256(2), 2, 2, materialize(2), materialize(2), 2 GROUP BY number % toNullable(2), (b != 100) AND (c = toNullable(0))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 724 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, materialize(2), materialize(2), toLowCardinality(2) GROUP BY t__fuzz_44, materialize('OK'), toFixedString(toFixedString('test_cluster_two_shards'), 23) Error on processing query 'SELECT 'OK', 2, 2, 2, 2, 2, materialize(2), materialize(2), toLowCardinality(2) GROUP BY t__fuzz_44, materialize('OK'), toFixedString(toFixedString('test_cluster_two_shards'), 23)': Received from localhost:9000. DB::Exception: Unknown expression identifier 't__fuzz_44' in scope SELECT 'OK', 2, 2, 2, 2, 2, materialize(2), materialize(2), toLowCardinality(2) GROUP BY t__fuzz_44, materialize('OK'), toFixedString(toFixedString('test_cluster_two_shards'), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 725 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, materialize(2), materialize(2), 2 Got boring AST Fuzzing step 726 out of 1000 SELECT 'OK', 2, 2, 2, 2, toNullable(2), materialize(2), materialize(2), 2 Query succeeded, using this AST as a start Fuzzing step 727 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, toNullable(2), materialize(2), materialize(2), 2 Query succeeded, using this AST as a start Fuzzing step 728 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, toNullable(2), 2, materialize(2), 2 Query succeeded, using this AST as a start Fuzzing step 729 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 730 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 731 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, materialize(2), 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 732 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, materialize(2), 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 733 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, materialize(2), 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 734 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, materialize(2), 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 735 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, materialize(2), 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 736 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 737 out of 1000 SELECT toLowCardinality('OK'), 2, materialize(2), 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 738 out of 1000 SELECT toLowCardinality('OK'), 2, materialize(2), 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 739 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2, 2, 2, 2 WHERE nums__fuzz_28 Error on processing query 'SELECT 'OK', 2, materialize(2), 2, 2, 2, 2, 2, 2 WHERE nums__fuzz_28': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_28' in scope SELECT 'OK', 2, materialize(2), 2, 2, 2, 2, 2, 2 WHERE nums__fuzz_28. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 740 out of 1000 SELECT toLowCardinality('OK'), 2, materialize(2), materialize(2), 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 SELECT toLowCardinality('OK'), 2, materialize(2), 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 742 out of 1000 SELECT toLowCardinality('OK'), 2, 2, 2, 2, 2, 2, 2, 2 WHERE (a >= toNullable(0)) AND (b != materialize(100)) AND (c > 220) Error on processing query 'SELECT toLowCardinality('OK'), 2, 2, 2, 2, 2, 2, 2, 2 WHERE (a >= toNullable(0)) AND (b != materialize(100)) AND (c > 220)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toLowCardinality('OK'), 2, 2, 2, 2, 2, 2, 2, 2 WHERE (a >= toNullable(0)) AND (b != materialize(100)) AND (c > 220). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 743 out of 1000 SELECT toLowCardinality('OK'), 2, materialize(2), 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 744 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 745 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, toLowCardinality(toNullable(2)), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 746 out of 1000 SELECT 'OK', 2, materialize(2), toLowCardinality(toNullable(2)), 2, toLowCardinality(toNullable(2)), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 747 out of 1000 SELECT 'OK', 2, materialize(2), toLowCardinality(toNullable(2)), 2, toLowCardinality(toNullable(2)), 2, 2, 2 Got boring AST Fuzzing step 748 out of 1000 SELECT 'OK', 2, materialize(2), toNullable(2), 2, toLowCardinality(2), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 749 out of 1000 SELECT 'OK', 2, materialize(2), toNullable(2), 2, toLowCardinality(2), 2, 2, 2 Got boring AST Fuzzing step 750 out of 1000 SELECT 'OK', 2, materialize(2), toNullable(2), 2, toLowCardinality(2), 2, 2, 2 Got boring AST Fuzzing step 751 out of 1000 SELECT sum(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)) IGNORE NULLS, 'OK', 2, materialize(2), 2, 2, toLowCardinality(2), 2, 2, 2 Error on processing query 'SELECT sum(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)) IGNORE NULLS, 'OK', 2, materialize(2), 2, 2, toLowCardinality(2), 2, 2, 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT sum(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)) IGNORE NULLS, 'OK', 2, materialize(2), 2, 2, toLowCardinality(2), 2, 2, 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 752 out of 1000 SELECT 'OK', 2, materialize(2), toNullable(2), 2, toLowCardinality(2), materialize(toUInt256(2)), 2, 2 Query succeeded, using this AST as a start Fuzzing step 753 out of 1000 SELECT 'OK', 2, materialize(2), toNullable(2), 2, toLowCardinality(2), materialize(toUInt256(2)), 2, 2 Got boring AST Fuzzing step 754 out of 1000 SELECT 'OK', 2, materialize(2), toNullable(2), 2, toLowCardinality(2), materialize(toUInt256(2)), 2, 2 Got boring AST Fuzzing step 755 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, toLowCardinality(2), materialize(toUInt256(2)), 2, 2 Query succeeded, using this AST as a start Fuzzing step 756 out of 1000 SELECT nums__fuzz_21, 'OK', 2, materialize(2), 2, 2, 2, materialize(toUInt256(2)), 2, 2 Error on processing query 'SELECT nums__fuzz_21, 'OK', 2, materialize(2), 2, 2, 2, materialize(toUInt256(2)), 2, 2': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_21' in scope SELECT nums__fuzz_21, 'OK', 2, materialize(2), 2, 2, 2, materialize(toUInt256(2)), 2, 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 757 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, toLowCardinality(2), materialize(toUInt256(2)), 2, 2 Got boring AST Fuzzing step 758 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, toLowCardinality(2), toUInt256(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 759 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2, toUInt256(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 760 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2, toUInt256(2), 2, 2 Got boring AST Fuzzing step 761 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2, toUInt256(2), 2, 2 Got boring AST Fuzzing step 762 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2, toUInt256(2), 2, 2 Got boring AST Fuzzing step 763 out of 1000 SELECT 'OK', 2, materialize(2), toLowCardinality(2), 2, 2, toUInt256(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 764 out of 1000 SELECT toLowCardinality('OK'), 2, materialize(2), toLowCardinality(toLowCardinality(toUInt128(2))), 2, 2, 2, 2, 2 PREWHERE if((a >= 0) AND (b != 100) AND (c = 0), 1, 0) Error on processing query 'SELECT toLowCardinality('OK'), 2, materialize(2), toLowCardinality(toLowCardinality(toUInt128(2))), 2, 2, 2, 2, 2 PREWHERE if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toLowCardinality('OK'), 2, materialize(2), toLowCardinality(toLowCardinality(toUInt128(2))), 2, 2, 2, 2, 2 PREWHERE if((a >= 0) AND (b != 100) AND (c = 0), 1, 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 765 out of 1000 SELECT 'OK', 2, materialize(2), toLowCardinality(2), 2, toLowCardinality(2), toUInt256(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 766 out of 1000 SELECT 'OK', 2, 2, toLowCardinality(2), 2, 2, toUInt256(2), toNullable(toUInt256(2)), 2 Query succeeded, using this AST as a start Fuzzing step 767 out of 1000 SELECT 'OK', 2, 2, toLowCardinality(2), 2, 2, toUInt256(2), toUInt256(2), 2 Query succeeded, using this AST as a start Fuzzing step 768 out of 1000 SELECT 'OK', 2, 2, toLowCardinality(materialize(2)), 2, 2, toUInt256(2), toUInt256(2), 2 Query succeeded, using this AST as a start Fuzzing step 769 out of 1000 SELECT 'OK', 2, 2, toLowCardinality(materialize(sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, toLowCardinality(0))) IGNORE NULLS, 2)), 2, 2, toUInt256(2), toUInt256(2), 2 GROUP BY number / 512 Error on processing query 'SELECT 'OK', 2, 2, toLowCardinality(materialize(sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, toLowCardinality(0))) IGNORE NULLS, 2)), 2, 2, toUInt256(2), toUInt256(2), 2 GROUP BY number / 512': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT 'OK', 2, 2, toLowCardinality(materialize(sum(if((b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, toLowCardinality(0))) IGNORE NULLS, 2)), 2, 2, toUInt256(2), toUInt256(2), 2 GROUP BY number / 512. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 770 out of 1000 SELECT 'OK', 2, 2, toLowCardinality(materialize(2)), 2, 2, toUInt256(2), toUInt256(2), 2 Got boring AST Fuzzing step 771 out of 1000 SELECT 'OK', materialize(toLowCardinality(2)), 2, toLowCardinality(materialize(2)), 2, 2, toUInt256(2), toUInt256(2), 2 Query succeeded, using this AST as a start Fuzzing step 772 out of 1000 SELECT 'OK', materialize(toLowCardinality(2)), 2, toLowCardinality(2), toUInt128(2), 2, toUInt256(2), toUInt256(2), 2 Query succeeded, using this AST as a start Fuzzing step 773 out of 1000 SELECT 'OK', materialize(toLowCardinality(2)), 2, toLowCardinality(2), toUInt128(2), 2, toUInt256(sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), toLowCardinality(0))) IGNORE NULLS / count(), 2), toUInt256(2), 2 Error on processing query 'SELECT 'OK', materialize(toLowCardinality(2)), 2, toLowCardinality(2), toUInt128(2), 2, toUInt256(sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), toLowCardinality(0))) IGNORE NULLS / count(), 2), toUInt256(2), 2': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT 'OK', materialize(toLowCardinality(2)), 2, toLowCardinality(2), toUInt128(2), 2, toUInt256(sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), toLowCardinality(0))) IGNORE NULLS / count(), 2), toUInt256(2), 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 774 out of 1000 SELECT 'OK', materialize(toLowCardinality(2)), 2, 2, toUInt128(2), 2, toUInt256(2), toUInt256(2), 2 Query succeeded, using this AST as a start Fuzzing step 775 out of 1000 SELECT 'OK', materialize(2), 2, 2, toUInt128(2), 2, toUInt256(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 776 out of 1000 SELECT 'OK', materialize(2), 2, 2, toUInt128(2), 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 777 out of 1000 SELECT 'OK', materialize(2), 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 778 out of 1000 SELECT 'OK', materialize(2), 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 779 out of 1000 SELECT 'OK', materialize(2), 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 780 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 781 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 782 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 783 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 784 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 785 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 786 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 787 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 788 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 789 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 790 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 791 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 792 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 793 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 794 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 795 out of 1000 EXPLAIN SYNTAX SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 796 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 797 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 798 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 799 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 800 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 801 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 802 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 803 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 804 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 805 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 806 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 807 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 808 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 809 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 810 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 811 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 812 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 813 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 814 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 815 out of 1000 SELECT 'OK', 2, 2, 2, 2, toLowCardinality(toUInt128(2)), toNullable(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 816 out of 1000 SELECT 'OK', 2, 2, 2, 2, toLowCardinality(2), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 817 out of 1000 SELECT 'OK', 2, 2, 2, 2, toLowCardinality(2), 2, 2, 2 Got boring AST Fuzzing step 818 out of 1000 SELECT 'OK', 2, 2, 2, 2, toLowCardinality(materialize(toUInt128(2))), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 819 out of 1000 SELECT 'OK', 2, 2, 2, 2, materialize(toUInt128(2)), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 820 out of 1000 SELECT 'OK', 2, 2, toLowCardinality(toNullable(2)), 2, toUInt128(2), 2, 2, toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 821 out of 1000 SELECT 'OK', 2, 2, toLowCardinality(toNullable(2)), 2, toUInt128(2), 2, 2, toUInt128(2) Got boring AST Fuzzing step 822 out of 1000 SELECT 'OK', 2, 2, toNullable(2), 2, toUInt128(2), 2, 2, toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 823 out of 1000 SELECT 'OK', 2, 2, toNullable(2), 2, toUInt128(2), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 824 out of 1000 SELECT 'OK', 2, 2, toNullable(2), 2, toUInt128(2), 2, 2, 2 Got boring AST Fuzzing step 825 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, toNullable(2), 2, toUInt128(2), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 826 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, toNullable(2), 2, toUInt128(2), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 827 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, toNullable(2), 2, toUInt128(2), 2, 2, 2 Got boring AST Fuzzing step 828 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, toNullable(2), 2, toUInt128(2), 2, 2, 2 Got boring AST Fuzzing step 829 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, toNullable(2), 2, toUInt128(2), 2, 2, 2 Got boring AST Fuzzing step 830 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, toNullable(2), 2, toUInt128(2), 2, 2, 2 Got boring AST Fuzzing step 831 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, toNullable(2), 2, toUInt128(2), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 832 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, toNullable(2), 2, toUInt128(2), 2, 2, 2 Got boring AST Fuzzing step 833 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, toNullable(2), 2, toUInt128(2), 2, 2, 2 Got boring AST Fuzzing step 834 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, toNullable(2), 2, toUInt128(2), 2, 2, 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, toNullable(2), 2, toUInt128(2), 2, 2, 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 50 (''OK''): 'OK', 2, 2, toNullable(2), 2, toUInt128(2), 2, 2, 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 835 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, toNullable(2), 2, toUInt128(2), 2, 2, 2 Got boring AST Fuzzing step 836 out of 1000 SELECT 'OK', 2, 2, toNullable(2), 2, toUInt128(2), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 837 out of 1000 SELECT 'OK', 2, 2, toNullable(2), 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 838 out of 1000 SELECT 'OK', 2, 2, toNullable(2), 2, 2, 2, 2, 2 Got boring AST Fuzzing step 839 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 840 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 841 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 842 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 843 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, toNullable(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 844 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, toNullable(2), 2, 2 Got boring AST Fuzzing step 845 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, toNullable(2), 2, 2 Got boring AST Fuzzing step 846 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 847 out of 1000 SELECT 'OK', 2, toNullable(2), 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 848 out of 1000 SELECT 'OK', 2, toNullable(2), 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 849 out of 1000 SELECT 'OK', 2, toNullable(2), 2, 2, toLowCardinality(2), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 850 out of 1000 SELECT 'OK', 2, toNullable(2), 2, 2, toLowCardinality(2), 2, 2, 2 Got boring AST Fuzzing step 851 out of 1000 SELECT 'OK', 2, toNullable(2), 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 852 out of 1000 SELECT 'OK', 2, toNullable(2), 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 853 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 854 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 855 out of 1000 SELECT 'OK', 2, 2, materialize(2), 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 856 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 857 out of 1000 SELECT 'OK', 2, 2, 2, 2, toNullable(2), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 858 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 859 out of 1000 EXPLAIN AST optimize = true SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Error on processing query 'EXPLAIN AST optimize = true SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "optimize" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495f93b 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 860 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Got boring AST Fuzzing step 861 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2, 2, 2, materialize(toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 862 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2, 2, 2, toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 863 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 864 out of 1000 SELECT 'OK', 2, 2, 2, toUInt256(2), 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 865 out of 1000 SELECT 'OK', 2, 2, 2, toUInt256(2), 2, 2, 2, 2 Got boring AST Fuzzing step 866 out of 1000 EXPLAIN ESTIMATE SELECT 'OK', 2, 2, 2, toUInt256(2), 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 867 out of 1000 EXPLAIN SYNTAX SELECT 'OK', 2, 2, 2, toUInt256(2), 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 868 out of 1000 EXPLAIN ESTIMATE SELECT 'OK', 2, 2, 2, toUInt256(2), 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 869 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, 2, toUInt256(2), 2, 2, 2, 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, 2, toUInt256(2), 2, 2, 2, 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 50 (''OK''): 'OK', 2, 2, 2, toUInt256(2), 2, 2, 2, 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 870 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, 2, toUInt256(2), 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 871 out of 1000 SELECT 'OK', 2, 2, 2, toUInt256(2), 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 872 out of 1000 SELECT 'OK', 2, 2, 2, toUInt256(2), 2, 2, 2, 2 Got boring AST Fuzzing step 873 out of 1000 SELECT 'OK', 2, 2, 2, toUInt256(2), toLowCardinality(2), 2, 2, 2 PREWHERE toFixedString('test_cluster_two_shards', toLowCardinality(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23), 23)) Error on processing query 'SELECT 'OK', 2, 2, 2, toUInt256(2), toLowCardinality(2), 2, 2, 2 PREWHERE toFixedString('test_cluster_two_shards', toLowCardinality(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23), 23))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 'OK', 2, 2, 2, toUInt256(2), toLowCardinality(2), 2, 2, 2 PREWHERE toFixedString('test_cluster_two_shards', toLowCardinality(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 874 out of 1000 SELECT 'OK', 2, 2, 2, toUInt256(2), 2, 2, 2, 2 Got boring AST Fuzzing step 875 out of 1000 SELECT 'OK', 2, 2, 2, toUInt256(2), 2, 2, 2, 2 Got boring AST Fuzzing step 876 out of 1000 SELECT 'OK', 2, 2, 2, toUInt256(2), 2, 2, 2, 2 Got boring AST Fuzzing step 877 out of 1000 SELECT 'OK', 2, 2, 2, toUInt256(toLowCardinality(2)), 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 878 out of 1000 SELECT 'OK', 2, 2, 2, toUInt256(toLowCardinality(2)), 2, 2, 2, 2 Got boring AST Fuzzing step 879 out of 1000 SELECT 'OK', 2, 2, 2, toUInt256(2), 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 880 out of 1000 SELECT 'OK', 2, 2, 2, toUInt256(2), 2, 2, 2, 2 Got boring AST Fuzzing step 881 out of 1000 SELECT 'OK', 2, 2, 2, toUInt256(2), 2, 2, 2, 2 Got boring AST Fuzzing step 882 out of 1000 SELECT 'OK', 2, 2, 2, toUInt256(2), 2, toUInt128(2), 2, toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 883 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 884 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, toUInt256(2) Got boring AST Fuzzing step 885 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, toLowCardinality(2), 2, toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 886 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, toLowCardinality(2), 2, toUInt256(2) Got boring AST Fuzzing step 887 out of 1000 SELECT 'OK', 2, 2, 2, 2, toLowCardinality(2), toLowCardinality(2), 2, toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 888 out of 1000 SELECT 'OK', 2, 2, 2, 2, toLowCardinality(2), toLowCardinality(2), 2, toUInt256(2) Got boring AST Fuzzing step 889 out of 1000 SELECT 'OK', 2, 2, 2, 2, toLowCardinality(2), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 890 out of 1000 SELECT 'OK', 2, 2, 2, 2, toLowCardinality(2), 2, 2, 2 Got boring AST Fuzzing step 891 out of 1000 SELECT if((a >= 0) AND (b != 100) AND (c > 220), 1, materialize(0)), 'OK', 2, 2, 2, 2, toLowCardinality(2), 2, 2, 2 Error on processing query 'SELECT if((a >= 0) AND (b != 100) AND (c > 220), 1, materialize(0)), 'OK', 2, 2, 2, 2, toLowCardinality(2), 2, 2, 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT if((a >= 0) AND (b != 100) AND (c > 220), 1, materialize(0)), 'OK', 2, 2, 2, 2, toLowCardinality(2), 2, 2, 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 892 out of 1000 SELECT 'OK', 2, 2, 2, 2, toLowCardinality(2), 2, 2, 2 Got boring AST Fuzzing step 893 out of 1000 SELECT 'OK', 2, 2, 2, 2, toLowCardinality(2), 2, 2, 2 Got boring AST Fuzzing step 894 out of 1000 SELECT 'OK', 2, 2, 2, 2, toLowCardinality(2), 2, 2, 2 Got boring AST Fuzzing step 895 out of 1000 SELECT 'OK', 2, 2, 2, 2, toLowCardinality(2), 2, 2, 2 Got boring AST Fuzzing step 896 out of 1000 SELECT 'OK', 2, 2, 2, 2, toLowCardinality(2), 2, 2, 2 Got boring AST Fuzzing step 897 out of 1000 SELECT 'OK', 2, 2, 2, toNullable(2), toLowCardinality(2), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 898 out of 1000 SELECT 'OK', 2, 2, 2, toNullable(2), toLowCardinality(2), 2, 2, 2 Got boring AST Fuzzing step 899 out of 1000 SELECT 'OK', 2, 2, 2, toNullable(2), toLowCardinality(2), 2, 2, 2 Got boring AST Fuzzing step 900 out of 1000 SELECT 'OK', 2, 2, 2, toNullable(2), toLowCardinality(2), 2, 2, 2 Got boring AST Fuzzing step 901 out of 1000 SELECT 'OK', 2, 2, 2, toNullable(2), toLowCardinality(2), 2, 2, 2 GROUP BY t__fuzz_38, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) % 2), nums__fuzz_18 Error on processing query 'SELECT 'OK', 2, 2, 2, toNullable(2), toLowCardinality(2), 2, 2, 2 GROUP BY t__fuzz_38, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) % 2), nums__fuzz_18': Received from localhost:9000. DB::Exception: Unknown expression identifier 't__fuzz_38' in scope SELECT 'OK', 2, 2, 2, toNullable(2), toLowCardinality(2), 2, 2, 2 GROUP BY t__fuzz_38, toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) % 2), nums__fuzz_18. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 902 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 903 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 904 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 905 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 906 out of 1000 SELECT 'OK', 2, 2, 2, 2, 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 907 out of 1000 SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 908 out of 1000 SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 909 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 910 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 911 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 50 (''OK''): 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 912 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 913 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 914 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 915 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 916 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 917 out of 1000 EXPLAIN SYNTAX SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 918 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 919 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 920 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 921 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 50 (''OK''): 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 922 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 923 out of 1000 EXPLAIN SYNTAX SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 924 out of 1000 EXPLAIN SYNTAX SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 925 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 926 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 927 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 928 out of 1000 EXPLAIN ESTIMATE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 929 out of 1000 EXPLAIN ESTIMATE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 930 out of 1000 EXPLAIN ESTIMATE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 931 out of 1000 EXPLAIN ESTIMATE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 932 out of 1000 EXPLAIN ESTIMATE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 933 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 50 (''OK''): 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 934 out of 1000 EXPLAIN SYNTAX SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 935 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 50 (''OK''): 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 936 out of 1000 EXPLAIN SYNTAX SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 937 out of 1000 EXPLAIN SYNTAX SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 938 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 939 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 940 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 941 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 942 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 943 out of 1000 EXPLAIN PIPELINE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 944 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 55 (''OK''): 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 945 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 946 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 947 out of 1000 EXPLAIN ESTIMATE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 948 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 50 (''OK''): 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 949 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 950 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 951 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 952 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 953 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 50 (''OK''): 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 954 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 955 out of 1000 EXPLAIN QUERY TREE SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 956 out of 1000 EXPLAIN SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 958 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 959 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 960 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 961 out of 1000 EXPLAIN AST SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 962 out of 1000 SELECT 'OK', 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 963 out of 1000 SELECT 'OK', 2, 2, 2, toNullable(2), 2, 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 964 out of 1000 SELECT 'OK', 2, 2, 2, toNullable(2), 2, 2, toLowCardinality(2), 2 Got boring AST Fuzzing step 965 out of 1000 SELECT 'OK', 2, 2, 2, toNullable(2), materialize(toUInt256(2)), 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 966 out of 1000 SELECT 'OK', 2, 2, 2, 2, toUInt256(2), 2, toLowCardinality(2), 2 Query succeeded, using this AST as a start Fuzzing step 967 out of 1000 SELECT 'OK', 2, materialize(toUInt256(2)), 2, 2, toUInt256(2), 2, 2, 2 Query succeeded, using this AST as a start Fuzzing step 968 out of 1000 SELECT 'OK', 2, materialize(materialize(toLowCardinality(2)), toUInt256(2)), 2, 2, toUInt256(2), 2, 2, 2 Error on processing query 'SELECT 'OK', 2, materialize(materialize(toLowCardinality(2)), toUInt256(2)), 2, 2, toUInt256(2), 2, 2, 2': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT 'OK', 2, materialize(materialize(toLowCardinality(2)), toUInt256(2)), 2, 2, toUInt256(2), 2, 2, 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 969 out of 1000 SELECT 'OK', 2, materialize(toUInt256(2)), 2, 2, toUInt256(2), 2, 2, 2 Got boring AST Fuzzing step 970 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2, 2, toNullable(toUInt128(2)), 2 Query succeeded, using this AST as a start Fuzzing step 971 out of 1000 SELECT 'OK', 2, materialize(2), 2, 2, 2, 2, toNullable(toUInt128(2)), 2 Got boring AST Fuzzing step 972 out of 1000 SELECT 'OK', 2, materialize(toNullable(toUInt256(2))), 2, 2, 2, 2, toNullable(toUInt128(2)), 2 Query succeeded, using this AST as a start Fuzzing step 973 out of 1000 SELECT 'OK', 2, toNullable(toUInt256(2)), 2, 2, 2, 2, toNullable(toUInt128(2)), 2 Query succeeded, using this AST as a start Fuzzing step 974 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, 2, 2, 2, toNullable(toUInt128(2)), 2 Query succeeded, using this AST as a start Fuzzing step 975 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, 2, 2, 2, toNullable(toUInt128(2)), materialize(2) Query succeeded, using this AST as a start Fuzzing step 976 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, 2, 2, 2, toNullable(toUInt128(2)), materialize(2) Got boring AST Fuzzing step 977 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, 2, 2, 2, toNullable(toUInt128(2)), materialize(2) Got boring AST Fuzzing step 978 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, 2, toUInt256(2), 2, toUInt128(2), materialize(2) Query succeeded, using this AST as a start Fuzzing step 979 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, 2, toUInt256(2), 2, toUInt128(2), materialize(2) Got boring AST Fuzzing step 980 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, 2, toUInt256(2), 2, 2, materialize(2) Query succeeded, using this AST as a start Fuzzing step 981 out of 1000 SELECT 'OK', 2, toUInt256(2), toLowCardinality(toUInt128(2)), materialize(2), toUInt256(2), 2, 2, materialize(2) Query succeeded, using this AST as a start Fuzzing step 982 out of 1000 SELECT 'OK', 2, toUInt256(2), toUInt128(2), materialize(2), toUInt256(2), 2, 2, materialize(2) Query succeeded, using this AST as a start Fuzzing step 983 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, materialize(2), 2, 2, 2, materialize(2) Query succeeded, using this AST as a start Fuzzing step 984 out of 1000 SELECT nums__fuzz_10, 'OK', toNullable(2), toUInt256(x8 AND (x9 AND (x10 AND x11)), 2), 2, 2, 2, 2, 2, materialize(2) Error on processing query 'SELECT nums__fuzz_10, 'OK', toNullable(2), toUInt256(x8 AND (x9 AND (x10 AND x11)), 2), 2, 2, 2, 2, 2, materialize(2)': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_10' in scope SELECT nums__fuzz_10, 'OK', toNullable(2), toUInt256(x8 AND (x9 AND (x10 AND x11)), 2), 2, 2, 2, 2, 2, materialize(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 985 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, materialize(2), 2, 2, 2, materialize(2) Got boring AST Fuzzing step 986 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, 2, 2, 2, 2, materialize(2) Query succeeded, using this AST as a start Fuzzing step 987 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, 2, 2, toLowCardinality(2), 2, materialize(2) Query succeeded, using this AST as a start Fuzzing step 988 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, 2, 2, toLowCardinality(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 989 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, 2, toUInt128(2), toLowCardinality(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 990 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, 2, toUInt128(2), toLowCardinality(2), 2, 2 Got boring AST Fuzzing step 991 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, 2, toUInt128(2), toLowCardinality(2), 2, 2 Got boring AST Fuzzing step 992 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, 2, 2, toLowCardinality(toNullable(2)), 2, 2 Query succeeded, using this AST as a start Fuzzing step 993 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, toUInt128(2), toNullable(toUInt128(2)), toLowCardinality(toNullable(2)), 2, 2 Query succeeded, using this AST as a start Fuzzing step 994 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, toUInt128(2), toNullable(toUInt128(2)), toLowCardinality(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 995 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, toUInt128(2), toNullable(2), toLowCardinality(2), 2, 2 Query succeeded, using this AST as a start Fuzzing step 996 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, toUInt128(2), toNullable(2), toLowCardinality(2), 2, 2 Got boring AST Fuzzing step 997 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, toUInt128(2), toNullable(2), toLowCardinality(2), 2, 2 Got boring AST Fuzzing step 998 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, 2, toNullable(2), toLowCardinality(toUInt128(2)), 2, 2 Query succeeded, using this AST as a start Fuzzing step 999 out of 1000 SELECT 'OK', 2, toUInt256(2), 2, 2, 2, toLowCardinality(toUInt128(2)), 2, 2 Query succeeded, using this AST as a start Fuzzing step 0 out of 1 Query succeeded, using this AST as a start Fuzzing step 0 out of 50 Query succeeded, using this AST as a start Fuzzing step 1 out of 50 CREATE TABLE tab__fuzz_0 ( `id` UInt32, `haystack` Nullable(String), `pattern` String ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 2 out of 50 CREATE TABLE tab__fuzz_1 ( `id` LowCardinality(UInt32), `haystack` String, `pattern` String ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 3 out of 50 CREATE TABLE tab__fuzz_2 ( `id` LowCardinality(UInt32), `haystack` LowCardinality(String), `pattern` Nullable(String) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 4 out of 50 CREATE TABLE tab__fuzz_3 ( `id` UInt8, `haystack` LowCardinality(String), `pattern` Nullable(UInt16) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 5 out of 50 CREATE TABLE tab__fuzz_4 ( `id` Nullable(UInt8), `haystack` UUID, `pattern` LowCardinality(Nullable(UInt16)) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 6 out of 50 CREATE TABLE tab__fuzz_5 ( `id` UInt8, `haystack` UUID, `pattern` LowCardinality(Nullable(UInt16)) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 7 out of 50 CREATE TABLE tab__fuzz_6 ( `id` Array(UInt8), `haystack` Array(UUID), `pattern` Array(LowCardinality(Nullable(UInt16))) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 8 out of 50 CREATE TABLE tab__fuzz_7 ( `id` Array(UInt8), `haystack` Array(UUID), `pattern` Array(Nullable(UInt16)) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 9 out of 50 CREATE TABLE tab__fuzz_8 ( `id` Array(Array(UInt8)), `haystack` Array(Nullable(UUID)), `pattern` Array(UInt16) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 10 out of 50 CREATE TABLE tab__fuzz_9 ( `id` Array(Array(Nullable(UInt8))), `haystack` Array(Nullable(UUID)), `pattern` Array(Array(UInt16)) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 11 out of 50 CREATE TABLE tab__fuzz_10 ( `id` Array(Array(Nullable(UInt8))), `haystack` Array(Nullable(UUID)), `pattern` Array(UInt8) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 12 out of 50 CREATE TABLE tab__fuzz_11 ( `id` Array(UInt8), `haystack` UInt8, `pattern` Array(UInt8) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 13 out of 50 CREATE TABLE tab__fuzz_12 ( `id` Array(UInt8), `haystack` UInt8, `pattern` Array(Decimal(9, 8)) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 14 out of 50 CREATE TABLE tab__fuzz_13 ( `id` Array(UInt8), `haystack` Nullable(UInt8), `pattern` Array(Decimal(9, 8)) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 15 out of 50 CREATE TABLE tab__fuzz_14 ( `id` Array(UInt8), `haystack` LowCardinality(UInt8), `pattern` Array(Array(Decimal(9, 8))) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 16 out of 50 CREATE TABLE tab__fuzz_15 ( `id` Array(Array(UInt8)), `haystack` LowCardinality(UInt8), `pattern` Array(Array(Decimal(9, 8))) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 17 out of 50 CREATE TABLE tab__fuzz_16 ( `id` Array(UInt8), `haystack` LowCardinality(UInt8), `pattern` Array(Array(Decimal(9, 8))) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 18 out of 50 CREATE TABLE tab__fuzz_17 ( `id` Array(Array(UInt8)), `haystack` LowCardinality(UInt8), `pattern` Array(Array(Array(Decimal(9, 8)))) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 19 out of 50 CREATE TABLE tab__fuzz_18 ( `id` Array(Array(UInt8)), `haystack` LowCardinality(UInt8), `pattern` Array(Array(Array(String))) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 20 out of 50 CREATE TABLE tab__fuzz_19 ( `id` Array(Array(UInt8)), `haystack` LowCardinality(UInt8), `pattern` Array(Array(Array(LowCardinality(String)))) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 21 out of 50 CREATE TABLE tab__fuzz_20 ( `id` Array(Array(LowCardinality(UInt8))), `haystack` LowCardinality(UInt8), `pattern` Array(Array(Array(LowCardinality(String)))) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 22 out of 50 CREATE TABLE tab__fuzz_21 ( `id` Array(Array(LowCardinality(UInt8))), `haystack` LowCardinality(UInt8), `pattern` Array(Array(Array(Int16))) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 23 out of 50 CREATE TABLE tab__fuzz_22 ( `id` Array(Array(LowCardinality(Int32))), `haystack` UInt8, `pattern` Array(Array(Array(Int16))) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 24 out of 50 CREATE TABLE tab__fuzz_23 ( `id` Array(Int64), `haystack` UInt8, `pattern` Float32 ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 25 out of 50 CREATE TABLE tab__fuzz_24 ( `id` Array(Int64), `haystack` Array(UInt8), `pattern` Float32 ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 26 out of 50 CREATE TABLE tab__fuzz_25 ( `id` Array(Int64), `haystack` Array(Nullable(UInt8)), `pattern` Float32 ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 27 out of 50 CREATE TABLE tab__fuzz_26 ( `id` Array(Int64), `haystack` UInt16, `pattern` Nullable(Float32) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 28 out of 50 CREATE TABLE tab__fuzz_27 ( `id` Array(Int64), `haystack` Nullable(UInt16), `pattern` Nullable(Float32) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 29 out of 50 CREATE TABLE tab__fuzz_28 ( `id` Array(Int64), `haystack` Nullable(UInt16), `pattern` LowCardinality(Nullable(Float32)) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 30 out of 50 CREATE TABLE tab__fuzz_29 ( `id` Array(Int64), `haystack` Nullable(UInt16), `pattern` LowCardinality(Nullable(Float32)) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 31 out of 50 CREATE TABLE tab__fuzz_30 ( `id` Array(LowCardinality(Int64)), `haystack` Array(UInt16), `pattern` Float32 ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 32 out of 50 CREATE TABLE tab__fuzz_31 ( `id` Decimal(76, 44), `haystack` Array(Nullable(UInt16)), `pattern` Float32 ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 33 out of 50 CREATE TABLE tab__fuzz_32 ( `id` Decimal(76, 44), `haystack` Array(UInt16), `pattern` LowCardinality(Float32) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 34 out of 50 CREATE TABLE tab__fuzz_33 ( `id` Decimal(76, 44), `haystack` Array(UInt16), `pattern` Float64 ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 35 out of 50 CREATE TABLE tab__fuzz_34 ( `id` Decimal(76, 44), `haystack` Array(UInt16), `pattern` Float64 ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 36 out of 50 CREATE TABLE tab__fuzz_35 ( `id` Array(Decimal(76, 44)), `haystack` Array(Nullable(UInt16)), `pattern` Array(Float64) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 37 out of 50 CREATE TABLE tab__fuzz_36 ( `id` Int16, `haystack` Array(UInt32), `pattern` Array(Float64) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 38 out of 50 CREATE TABLE tab__fuzz_37 ( `id` LowCardinality(Int16), `haystack` Array(UInt8), `pattern` Array(Nullable(Float64)) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 39 out of 50 CREATE TABLE tab__fuzz_38 ( `id` LowCardinality(Int16), `haystack` Float64, `pattern` Array(Nullable(Float64)) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 40 out of 50 CREATE TABLE tab__fuzz_39 ( `id` LowCardinality(Int16), `haystack` LowCardinality(Float64), `pattern` Int128 ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 41 out of 50 CREATE TABLE tab__fuzz_40 ( `id` Array(Int16), `haystack` LowCardinality(Float64), `pattern` Nullable(Int128) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 42 out of 50 CREATE TABLE tab__fuzz_41 ( `id` Array(Array(Int16)), `haystack` Float64, `pattern` Array(Tuple(Date, Int64)) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 43 out of 50 CREATE TABLE tab__fuzz_42 ( `id` Array(Array(Array(Int16))), `haystack` LowCardinality(Float64), `pattern` Array(Tuple(Date, Int64)) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 44 out of 50 CREATE TABLE tab__fuzz_43 ( `id` UInt16, `haystack` Array(LowCardinality(Float64)), `pattern` Array(Tuple(LowCardinality(Date), Nullable(Int64))) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 45 out of 50 CREATE TABLE tab__fuzz_44 ( `id` UInt16, `haystack` Array(LowCardinality(Float64)), `pattern` Array(Tuple(LowCardinality(Date), Nullable(Int64))) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 46 out of 50 CREATE TABLE tab__fuzz_45 ( `id` UInt16, `haystack` Array(LowCardinality(Float64)), `pattern` Array(Tuple(Date, LowCardinality(Int64))) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 47 out of 50 CREATE TABLE tab__fuzz_46 ( `id` Array(UInt16), `haystack` Array(Nullable(Float64)), `pattern` Array(Tuple(Array(Date), Int64)) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 48 out of 50 CREATE TABLE tab__fuzz_47 ( `id` Array(Nullable(UInt16)), `haystack` Array(Nullable(Float64)), `pattern` Array(Tuple(Array(Date), Int64)) ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 49 out of 50 CREATE TABLE tab__fuzz_48 ( `id` Array(UInt16), `haystack` Array(Nullable(Float64)), `pattern` UInt64 ) ENGINE = MergeTree ORDER BY id Query succeeded, using this AST as a start Fuzzing step 0 out of 1 Query succeeded, using this AST as a start INSERT INTO tab__fuzz_48 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_46 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_43 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_41 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_40 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_39 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_34 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_33 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_31 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_28 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_36 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_27 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_42 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_37 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_23 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_26 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_22 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_24 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_21 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_25 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_20 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_19 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_47 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_18 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_16 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_15 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_8 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_13 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_32 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_12 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_38 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_11 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_0 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_10 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_44 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_4 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_9 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_14 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_3 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_7 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_29 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_6 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_5 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_1 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); INSERT INTO tab__fuzz_2 FORMAT Values (1, 'aaaxxxaa\0xxx', 'x'); Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 2 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 4 out of 1000 EXPLAIN AST SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 5 out of 1000 EXPLAIN AST SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab WHERE id = 1 Got boring AST Fuzzing step 6 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 7 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 8 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 9 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 10 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 11 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 12 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 13 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 14 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 15 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 16 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 17 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 PREWHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 18 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 PREWHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 19 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE id = 1 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 20 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 21 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 PREWHERE id = toNullable(1) GROUP BY (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000), (sum(multiIf(s IN ('a', 'b'), toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100, cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 PREWHERE id = toNullable(1) GROUP BY (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000), (sum(multiIf(s IN ('a', 'b'), toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100, cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 PREWHERE id = toNullable(1) GROUP BY (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000), (sum(multiIf(s IN ('a', 'b'), toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100, cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 22 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE equals(1) Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE equals(1)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE equals(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 23 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', nums__fuzz_15, pattern) FROM tab__fuzz_1 PREWHERE id = 1 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', nums__fuzz_15, pattern) FROM tab__fuzz_1 PREWHERE id = 1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_15' in scope SELECT countSubstrings('aaaxxxaa\0xxx', nums__fuzz_15, pattern) FROM tab__fuzz_1 PREWHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 24 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 PREWHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 PREWHERE id = 1 Got boring AST Fuzzing step 26 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 PREWHERE id = 1 Got boring AST Fuzzing step 27 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 PREWHERE id = 1 Got boring AST Fuzzing step 28 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 PREWHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 29 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 PREWHERE id = 1 Got boring AST Fuzzing step 30 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 PREWHERE id = 1 Got boring AST Fuzzing step 31 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 PREWHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 32 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE id = 1 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 33 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 34 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 35 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 36 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 37 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 38 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 39 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 40 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 41 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 42 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx') FROM tab__fuzz_2 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx') FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstrings doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstrings('aaaxxxaa\0xxx') FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd56fae 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 43 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 44 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 45 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 46 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 47 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 48 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 49 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 50 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 51 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstrings'): countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 52 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 53 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 54 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 55 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 56 out of 1000 EXPLAIN AST SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 57 out of 1000 EXPLAIN AST SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 58 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstrings'): countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 59 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 60 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 61 out of 1000 EXPLAIN AST SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 62 out of 1000 EXPLAIN AST SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 63 out of 1000 EXPLAIN AST SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 64 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstrings'): countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 65 out of 1000 EXPLAIN AST SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 66 out of 1000 EXPLAIN AST SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 67 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 68 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 69 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 70 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 71 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 72 out of 1000 SELECT countSubstrings(pattern) FROM tab__fuzz_0 GROUP BY multiply(intDiv(toUInt32(rtime), 20), cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 23)), 23), 23), currentDatabase(), t), toLowCardinality(1000)), cluster('test_cluster_two_shards', currentDatabase(), t) Error on processing query 'SELECT countSubstrings(pattern) FROM tab__fuzz_0 GROUP BY multiply(intDiv(toUInt32(rtime), 20), cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 23)), 23), 23), currentDatabase(), t), toLowCardinality(1000)), cluster('test_cluster_two_shards', currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstrings doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstrings(pattern) FROM tab__fuzz_0 GROUP BY multiply(intDiv(toUInt32(rtime), 20), cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 23)), 23), 23), currentDatabase(), t), toLowCardinality(1000)), cluster('test_cluster_two_shards', currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd56fae 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 73 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 74 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 75 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 76 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 77 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 78 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 79 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 80 out of 1000 EXPLAIN QUERY TREE dump_passes = true, passes = true SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN QUERY TREE dump_passes = true, passes = true SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "dump_passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 81 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 GROUP BY toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))), multiIf(s IN ('a', 'b'), 1, toLowCardinality(0)), tab__fuzz_9 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 GROUP BY toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))), multiIf(s IN ('a', 'b'), 1, toLowCardinality(0)), tab__fuzz_9': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 GROUP BY toLowCardinality(toFixedString(' ', toLowCardinality(toUInt256(1)))), multiIf(s IN ('a', 'b'), 1, toLowCardinality(0)), tab__fuzz_9. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 82 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 83 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 86 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 87 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 88 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 89 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 90 out of 1000 SELECT sum(toNullable(23), if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)), countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Error on processing query 'SELECT sum(toNullable(23), if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)), countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_32' in scope SELECT sum(toNullable(23), if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND (b != toNullable(100)) AND (c = 0), 1, 0)), countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 91 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 92 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 93 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 94 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 95 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 96 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 97 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 98 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 99 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 100 out of 1000 EXPLAIN AST optimize = true SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN AST optimize = true SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "optimize" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495f93b 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 101 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 102 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 103 out of 1000 EXPLAIN PIPELINE header = true SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN PIPELINE header = true SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 104 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 105 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 106 out of 1000 EXPLAIN PIPELINE compact = true SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 107 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 108 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 109 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx') FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx') FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstrings doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstrings('aaaxxxaa\0xxx') FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd56fae 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 110 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 111 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 112 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 113 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 114 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 115 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 117 out of 1000 SELECT countSubstrings(toFixedString(toLowCardinality(toNullable('aaaxxxaa\0xxx')), 12), pattern) FROM tab__fuzz_0 GROUP BY '2022-01-01', (number / 512) % 2, (sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * materialize(toLowCardinality(toFixedString(materialize(' '), toNullable(1)))), 100 Error on processing query 'SELECT countSubstrings(toFixedString(toLowCardinality(toNullable('aaaxxxaa\0xxx')), 12), pattern) FROM tab__fuzz_0 GROUP BY '2022-01-01', (number / 512) % 2, (sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * materialize(toLowCardinality(toFixedString(materialize(' '), toNullable(1)))), 100': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT countSubstrings(toFixedString(toLowCardinality(toNullable('aaaxxxaa\0xxx')), 12), pattern) FROM tab__fuzz_0 GROUP BY '2022-01-01', (number / 512) % 2, (sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * materialize(toLowCardinality(toFixedString(materialize(' '), toNullable(1)))), 100. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 118 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', materialize(12)), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', materialize(12)), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', materialize(12)), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 119 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 120 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 121 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 122 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 123 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 WHERE x8 OR (x9 OR (x10 OR x11)) Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 WHERE x8 OR (x9 OR (x10 OR x11))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x8' in scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 WHERE x8 OR (x9 OR (x10 OR x11)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 124 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 125 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 126 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 127 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 128 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 129 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 130 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 131 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 132 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 133 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 134 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 135 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 136 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 137 out of 1000 EXPLAIN PIPELINE header = true SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN PIPELINE header = true SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 138 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 139 out of 1000 EXPLAIN PIPELINE header = true SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN PIPELINE header = true SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 140 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 141 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 142 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 143 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 144 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12)) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12)) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstrings doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12)) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd56fae 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 145 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true, compact = true SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true, compact = true SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 146 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 147 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 148 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 149 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 150 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 151 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 153 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE sum(if((a >= 0) AND (b != 100) AND (c = 0), 0)) GROUP BY cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), 23), currentDatabase(), t), greaterOrEquals(0) AND (b != 100) AND (c > 220) Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE sum(if((a >= 0) AND (b != 100) AND (c = 0), 0)) GROUP BY cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), 23), currentDatabase(), t), greaterOrEquals(0) AND (b != 100) AND (c > 220)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE sum(if((a >= 0) AND (b != 100) AND (c = 0), 0)) GROUP BY cluster(toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23), 23), currentDatabase(), t), greaterOrEquals(0) AND (b != 100) AND (c > 220). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 154 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 155 out of 1000 SELECT toUInt8((number / 4) % toLowCardinality(2)), countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT toUInt8((number / 4) % toLowCardinality(2)), countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT toUInt8((number / 4) % toLowCardinality(2)), countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 156 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 157 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12)) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12)) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstrings doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12)) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd56fae 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 158 out of 1000 SELECT countSubstrings(toFixedString(materialize('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(toFixedString(materialize('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(toFixedString(materialize('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 159 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 160 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 161 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 162 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 163 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 164 out of 1000 SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 165 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstrings'): countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 166 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 167 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 168 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), materialize(12)), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), materialize(12)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), materialize(12)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 23. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 24. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 169 out of 1000 SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 170 out of 1000 SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 171 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 172 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 173 out of 1000 SELECT countSubstrings(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 174 out of 1000 SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 175 out of 1000 SELECT (number / 8) % toUInt128(2), countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT (number / 8) % toUInt128(2), countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT (number / 8) % toUInt128(2), countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 176 out of 1000 SELECT countSubstrings(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 177 out of 1000 SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 178 out of 1000 SELECT countSubstrings(pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstrings(pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstrings doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstrings(pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd56fae 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 179 out of 1000 SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 180 out of 1000 SELECT countSubstrings(toFixedString(toUInt256(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(toFixedString(toUInt256(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstrings(toFixedString(toUInt256(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 181 out of 1000 SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 182 out of 1000 SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 183 out of 1000 SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 184 out of 1000 SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 185 out of 1000 SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 186 out of 1000 SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 187 out of 1000 SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 188 out of 1000 SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 189 out of 1000 SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 190 out of 1000 SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 191 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 192 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 193 out of 1000 SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 194 out of 1000 SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 195 out of 1000 SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 196 out of 1000 SELECT countSubstrings((x1 AND x2) AND (toNullable(0) AND 1000 AND x3 AND x4), toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstrings((x1 AND x2) AND (toNullable(0) AND 1000 AND x3 AND x4), toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT countSubstrings((x1 AND x2) AND (toNullable(0) AND 1000 AND x3 AND x4), toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 197 out of 1000 SELECT countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 198 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 199 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 200 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 201 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 202 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstrings'): countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 203 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 204 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstrings'): countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 205 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 206 out of 1000 EXPLAIN AST SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 207 out of 1000 EXPLAIN AST SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 208 out of 1000 EXPLAIN AST SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 209 out of 1000 EXPLAIN AST SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 210 out of 1000 EXPLAIN AST SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 211 out of 1000 EXPLAIN AST SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 212 out of 1000 EXPLAIN AST SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 213 out of 1000 EXPLAIN AST SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 214 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstrings'): countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 215 out of 1000 EXPLAIN AST SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 216 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 217 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 218 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 219 out of 1000 SELECT countSubstrings(toFixedString(materialize('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstrings(toFixedString(materialize('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Function 'countSubstrings' doesn't support FixedString haystack argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dd550e1 4. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000837d9c2 5. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d58bb 6. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 7. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 8. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x000000003324d830 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x0000000033248983 11. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000003b82b8f7 12. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:0: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000003bdff695 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d2837e 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d111cc 15. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 16. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 220 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 221 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 222 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 223 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 224 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 225 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 226 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 227 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 228 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 229 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 230 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 231 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 232 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 233 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 234 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 235 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 236 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 237 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 238 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 239 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 240 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 241 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 242 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 243 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 244 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 245 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 246 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 247 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 248 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 249 out of 1000 EXPLAIN AST SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 250 out of 1000 EXPLAIN AST SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 251 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstrings'): countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 252 out of 1000 EXPLAIN AST SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 253 out of 1000 EXPLAIN AST SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 254 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 255 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 256 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 257 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 258 out of 1000 EXPLAIN AST SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 259 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstrings'): countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 260 out of 1000 EXPLAIN AST SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 261 out of 1000 EXPLAIN AST SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 262 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 263 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 264 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 265 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 266 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 267 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 268 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 269 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 270 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 271 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 272 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 273 out of 1000 SELECT countSubstrings(toFixedString(materialize(toFixedString('aaaxxxaa\0xxx', 12)), toNullable(12)), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstrings(toFixedString(materialize(toFixedString('aaaxxxaa\0xxx', 12)), toNullable(12)), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Function 'countSubstrings' doesn't support FixedString haystack argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dd550e1 4. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000837d9c2 5. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d58bb 6. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 7. DB::IExecutableFunction::defaultImplementationForNulls(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b6008d9 8. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffbf4 9. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 10. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x000000003324d830 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x0000000033248983 13. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000003b82b8f7 14. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:0: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000003bdff695 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d2837e 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d111cc 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 274 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 275 out of 1000 SELECT countSubstrings(pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstrings(pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstrings doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstrings(pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd56fae 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 276 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 277 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 278 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 279 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 280 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 281 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 282 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 283 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 GROUP BY toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23) Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 GROUP BY toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23)': Received from localhost:9000. DB::Exception: Column default.tab__fuzz_0.pattern is not under aggregate function and not in GROUP BY keys. In query SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 GROUP BY toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033593a48 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 284 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 285 out of 1000 SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 286 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 287 out of 1000 SELECT 256, countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 288 out of 1000 SELECT toNullable(256), countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 289 out of 1000 SELECT toNullable(256), countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT toNullable(256), countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT toNullable(256), countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 290 out of 1000 SELECT toNullable(materialize(256)), countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toNullable(materialize(256)), countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT toNullable(materialize(256)), countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 291 out of 1000 SELECT toNullable(256), countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT toNullable(256), countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT toNullable(256), countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 292 out of 1000 SELECT toNullable(256), countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 293 out of 1000 SELECT toNullable(256), countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 294 out of 1000 SELECT toNullable(256), countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 295 out of 1000 SELECT toNullable(256), countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 296 out of 1000 SELECT toNullable(256), countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 297 out of 1000 SELECT toNullable(256), countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 WHERE countSubstrings(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) Error on processing query 'SELECT toNullable(256), countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 WHERE countSubstrings(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT toNullable(256), countSubstrings('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 WHERE countSubstrings(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 298 out of 1000 SELECT toNullable(256), countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toNullable(256), countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT toNullable(256), countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 299 out of 1000 SELECT toNullable(256), countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 300 out of 1000 SELECT toNullable(256), countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 301 out of 1000 SELECT toNullable(256), countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 302 out of 1000 SELECT toNullable(256) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 303 out of 1000 SELECT 256 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 304 out of 1000 SELECT 256 FROM tab__fuzz_2 Got boring AST Fuzzing step 305 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 306 out of 1000 SELECT 256 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 SELECT 256 FROM tab__fuzz_2 Got boring AST Fuzzing step 308 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 309 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 310 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 311 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 312 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 313 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 314 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 315 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 316 out of 1000 SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 317 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 318 out of 1000 SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 319 out of 1000 SELECT 256 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 320 out of 1000 SELECT 256 FROM tab__fuzz_2 Got boring AST Fuzzing step 321 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 322 out of 1000 SELECT 256 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 323 out of 1000 SELECT 256 FROM tab__fuzz_2 Got boring AST Fuzzing step 324 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100), 256 FROM tab__fuzz_1 Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100), 256 FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100), 256 FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 325 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 326 out of 1000 SELECT 256 FROM tab__fuzz_0 PREWHERE toNullable(materialize(1000)) Error on processing query 'SELECT 256 FROM tab__fuzz_0 PREWHERE toNullable(materialize(1000))': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt16) of column for filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:76: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x0000000037f9ac20 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x0000000038d06faa 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::MergeTreeDataSelectExecutor::filterPartsByVirtualColumns(std::shared_ptr const&, DB::MergeTreeData const&, std::vector, std::allocator>> const&, DB::ActionsDAG const*, std::shared_ptr) @ 0x0000000039a5472c 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::buildIndexes(std::optional&, DB::ActionsDAG const*, DB::MergeTreeData const&, std::vector, std::allocator>> const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003bf2f170 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1639: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000003bf2e127 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000003c1827e4 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000003c1822fe 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c129752 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 327 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 328 out of 1000 SELECT 256 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 329 out of 1000 SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 330 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 331 out of 1000 SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 332 out of 1000 SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 333 out of 1000 SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 334 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 335 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 336 out of 1000 SELECT 256 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 337 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 338 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 339 out of 1000 SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 340 out of 1000 SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 341 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 342 out of 1000 SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 343 out of 1000 SELECT 256 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 344 out of 1000 SELECT 256 FROM tab__fuzz_2 Got boring AST Fuzzing step 345 out of 1000 SELECT 256 FROM tab__fuzz_2 Got boring AST Fuzzing step 346 out of 1000 SELECT 256 FROM tab__fuzz_2 Got boring AST Fuzzing step 347 out of 1000 SELECT 256 FROM tab__fuzz_2 Got boring AST Fuzzing step 348 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 349 out of 1000 SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 350 out of 1000 SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 351 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 352 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 353 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 354 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 256 FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 256 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 ('256'): 256 FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 355 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 356 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 357 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('256'): 256 FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 358 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 359 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 360 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 361 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 362 out of 1000 SELECT 256 FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 363 out of 1000 SELECT 256 FROM tab__fuzz_3 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 364 out of 1000 SELECT 256 FROM tab__fuzz_3 WHERE NULL Got boring AST Fuzzing step 365 out of 1000 SELECT 256 FROM tab__fuzz_2 PREWHERE toUInt256(2) WHERE NULL Error on processing query 'SELECT 256 FROM tab__fuzz_2 PREWHERE toUInt256(2) WHERE NULL': Received from localhost:9000. DB::Exception: Illegal type (UInt256) of 1 argument of function and. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000083f7cd7 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000a9c0d0e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:3058: DB::ActionsDAG::buildFilterActionsDAG(std::vector> const&, std::unordered_map, std::equal_to, std::allocator>> const&, bool) @ 0x00000000332a033e 12. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1630: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000003bf2d97f 13. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000003c1827e4 14. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000003c1822fe 15. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c129752 16. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 17. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 366 out of 1000 SELECT 256 FROM tab__fuzz_3 WHERE NULL Got boring AST Fuzzing step 367 out of 1000 SELECT 256 FROM tab__fuzz_3 WHERE NULL Got boring AST Fuzzing step 368 out of 1000 SELECT 256 FROM tab__fuzz_3 WHERE NULL Got boring AST Fuzzing step 369 out of 1000 SELECT 256 FROM tab__fuzz_3 WHERE NULL Got boring AST Fuzzing step 370 out of 1000 SELECT 256 FROM tab__fuzz_3 WHERE NULL Got boring AST Fuzzing step 371 out of 1000 SELECT 256 FROM tab__fuzz_3 WHERE NULL Got boring AST Fuzzing step 372 out of 1000 SELECT 256 FROM tab__fuzz_3 WHERE NULL Got boring AST Fuzzing step 373 out of 1000 SELECT 256 FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 374 out of 1000 SELECT 256 FROM tab__fuzz_1 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 375 out of 1000 SELECT 256 FROM tab__fuzz_2 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 SELECT 256 FROM tab__fuzz_2 WHERE NULL Got boring AST Fuzzing step 377 out of 1000 SELECT 256 FROM tab__fuzz_2 WHERE NULL Got boring AST Fuzzing step 378 out of 1000 SELECT 256 FROM tab__fuzz_2 WHERE NULL Got boring AST Fuzzing step 379 out of 1000 SELECT 256 FROM tab__fuzz_2 WHERE NULL Got boring AST Fuzzing step 380 out of 1000 SELECT 256 FROM tab__fuzz_2 WHERE NULL Got boring AST Fuzzing step 381 out of 1000 SELECT 256 FROM tab__fuzz_3 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 382 out of 1000 SELECT toUInt128(256) FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 383 out of 1000 SELECT toUInt128(256) FROM tab__fuzz_0 WHERE NULL Got boring AST Fuzzing step 384 out of 1000 SELECT toUInt128(256) FROM tab__fuzz_0 WHERE NULL Got boring AST Fuzzing step 385 out of 1000 SELECT toUInt128(256) FROM tab__fuzz_3 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 386 out of 1000 SELECT toUInt128(256) FROM tab__fuzz_3 WHERE NULL Got boring AST Fuzzing step 387 out of 1000 SELECT toUInt128(256) FROM tab__fuzz_3 WHERE NULL Got boring AST Fuzzing step 388 out of 1000 SELECT toUInt128(256) FROM tab__fuzz_1 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 389 out of 1000 SELECT toUInt128(256) FROM tab__fuzz_1 WHERE NULL Got boring AST Fuzzing step 390 out of 1000 SELECT toUInt128(256) FROM tab__fuzz_1 WHERE NULL Got boring AST Fuzzing step 391 out of 1000 SELECT toUInt128(256) FROM tab__fuzz_2 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 392 out of 1000 SELECT toUInt128(256) FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 393 out of 1000 SELECT toUInt128(256) FROM tab__fuzz_1 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 394 out of 1000 SELECT toUInt128(256) FROM tab__fuzz_1 WHERE NULL Got boring AST Fuzzing step 395 out of 1000 SELECT toUInt128(256) FROM tab__fuzz_3 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 396 out of 1000 EXPLAIN AST SELECT toUInt128(256) FROM tab__fuzz_3 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 EXPLAIN AST SELECT toUInt128(256) FROM tab__fuzz_3 WHERE NULL Got boring AST Fuzzing step 398 out of 1000 EXPLAIN SELECT toUInt128(256) FROM tab__fuzz_3 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 399 out of 1000 EXPLAIN SELECT toUInt128(256) FROM tab__fuzz_3 WHERE NULL Got boring AST Fuzzing step 400 out of 1000 EXPLAIN SELECT toUInt128(256) FROM tab__fuzz_3 WHERE NULL Got boring AST Fuzzing step 401 out of 1000 SELECT toUInt128(256) FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 402 out of 1000 SELECT toUInt128(256) FROM tab__fuzz_0 WHERE NULL Got boring AST Fuzzing step 403 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toUInt128(256) FROM tab__fuzz_0 WHERE NULL Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toUInt128(256) FROM tab__fuzz_0 WHERE NULL': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('toUInt128'): toUInt128(256) FROM tab__fuzz_0 WHERE NULL. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 404 out of 1000 SELECT 256 FROM tab__fuzz_3 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 405 out of 1000 SELECT 256 FROM tab__fuzz_3 WHERE NULL Got boring AST Fuzzing step 406 out of 1000 SELECT 256 FROM tab__fuzz_3 WHERE NULL Got boring AST Fuzzing step 407 out of 1000 SELECT 256 FROM tab__fuzz_1 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 408 out of 1000 SELECT 256 FROM tab__fuzz_1 WHERE NULL Got boring AST Fuzzing step 409 out of 1000 SELECT 256 FROM tab__fuzz_2 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 410 out of 1000 SELECT 256 FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 411 out of 1000 SELECT 256 FROM tab__fuzz_0 WHERE NULL Got boring AST Fuzzing step 412 out of 1000 SELECT 256 FROM tab__fuzz_1 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 413 out of 1000 SELECT 256 FROM tab__fuzz_1 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 414 out of 1000 SELECT 256 FROM tab__fuzz_1 PREWHERE NULL Got boring AST Fuzzing step 415 out of 1000 SELECT 256 FROM tab__fuzz_1 PREWHERE NULL Got boring AST Fuzzing step 416 out of 1000 SELECT 256 FROM tab__fuzz_1 PREWHERE NULL Got boring AST Fuzzing step 417 out of 1000 SELECT 256 FROM tab__fuzz_3 PREWHERE NULL WHERE countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) Error on processing query 'SELECT 256 FROM tab__fuzz_3 PREWHERE NULL WHERE countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstrings: In scope SELECT 256 FROM tab__fuzz_3 PREWHERE NULL WHERE countSubstrings(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 418 out of 1000 SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 419 out of 1000 SELECT 256 FROM tab__fuzz_0 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 420 out of 1000 SELECT 256 FROM tab__fuzz_0 PREWHERE NULL Got boring AST Fuzzing step 421 out of 1000 SELECT 256 FROM tab__fuzz_0 PREWHERE NULL Got boring AST Fuzzing step 422 out of 1000 SELECT 256 FROM tab__fuzz_3 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 423 out of 1000 SELECT 256 FROM tab__fuzz_3 PREWHERE NULL Got boring AST Fuzzing step 424 out of 1000 SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 425 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 426 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('256'): 256 FROM tab__fuzz_2 PREWHERE NULL. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 427 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 428 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 429 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 430 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 431 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 432 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 433 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 434 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 435 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 436 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 437 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_2 PREWHERE NULL': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('256'): 256 FROM tab__fuzz_2 PREWHERE NULL. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 438 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 439 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('256'): 256 FROM tab__fuzz_2 PREWHERE NULL. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 440 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 441 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 442 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 443 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 444 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 445 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 446 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 447 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 448 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_2 PREWHERE NULL': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('256'): 256 FROM tab__fuzz_2 PREWHERE NULL. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 449 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 450 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 451 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 452 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 453 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 454 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 455 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 456 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 457 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 458 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 459 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 460 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 461 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 462 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 463 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 464 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 465 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 466 out of 1000 EXPLAIN ESTIMATE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 467 out of 1000 EXPLAIN ESTIMATE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 468 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 469 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 470 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('256'): 256 FROM tab__fuzz_2 PREWHERE NULL. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 471 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 472 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 473 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 474 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 475 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 476 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_2 PREWHERE NULL': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('256'): 256 FROM tab__fuzz_2 PREWHERE NULL. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 477 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 478 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 479 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 480 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 481 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 482 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_2 PREWHERE NULL': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('256'): 256 FROM tab__fuzz_2 PREWHERE NULL. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 483 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 484 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 485 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 486 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 487 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 488 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 489 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 490 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 491 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 492 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 493 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 494 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 495 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 496 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 497 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 498 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 499 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 500 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 501 out of 1000 EXPLAIN ESTIMATE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 503 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 504 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 505 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 506 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 507 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_2 PREWHERE NULL': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('256'): 256 FROM tab__fuzz_2 PREWHERE NULL. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 508 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Got boring AST Fuzzing step 509 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 510 out of 1000 SELECT 256 FROM tab__fuzz_3 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 511 out of 1000 SELECT 256 FROM tab__fuzz_1 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 512 out of 1000 SELECT 256 FROM tab__fuzz_1 WHERE NULL Got boring AST Fuzzing step 513 out of 1000 SELECT 256 FROM tab__fuzz_1 WHERE NULL Got boring AST Fuzzing step 514 out of 1000 SELECT 256 FROM tab__fuzz_3 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 515 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 516 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_0 WHERE NULL Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_0 WHERE NULL': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('256'): 256 FROM tab__fuzz_0 WHERE NULL. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 517 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_0 WHERE NULL Got boring AST Fuzzing step 518 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 519 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_0 WHERE NULL Got boring AST Fuzzing step 520 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_0 WHERE NULL Got boring AST Fuzzing step 521 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 522 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_0 WHERE NULL Got boring AST Fuzzing step 523 out of 1000 EXPLAIN ESTIMATE SELECT 256 FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 525 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_0 WHERE NULL Got boring AST Fuzzing step 526 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 527 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 528 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 529 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_0 WHERE NULL Got boring AST Fuzzing step 530 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 531 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_0 WHERE NULL Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_0 WHERE NULL': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('256'): 256 FROM tab__fuzz_0 WHERE NULL. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 532 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_0 WHERE NULL Got boring AST Fuzzing step 533 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 534 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_0 WHERE NULL Got boring AST Fuzzing step 535 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_0 WHERE NULL Got boring AST Fuzzing step 536 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_0 WHERE NULL Got boring AST Fuzzing step 537 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_0 WHERE NULL Got boring AST Fuzzing step 538 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_0 WHERE NULL Got boring AST Fuzzing step 539 out of 1000 SELECT toLowCardinality(256) FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 540 out of 1000 SELECT 256 FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 541 out of 1000 SELECT 256 FROM tab__fuzz_1 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 542 out of 1000 SELECT 256 FROM tab__fuzz_3 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 543 out of 1000 SELECT 256 FROM tab__fuzz_3 WHERE NULL Got boring AST Fuzzing step 544 out of 1000 SELECT 256 FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 545 out of 1000 SELECT 256 FROM tab__fuzz_3 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 546 out of 1000 SELECT 256 FROM tab__fuzz_2 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 547 out of 1000 SELECT 256 FROM tab__fuzz_2 WHERE NULL Got boring AST Fuzzing step 548 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 549 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 550 out of 1000 SELECT 256 FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 551 out of 1000 SELECT 256 FROM tab__fuzz_0 WHERE NULL Got boring AST Fuzzing step 552 out of 1000 SELECT 256 FROM tab__fuzz_0 WHERE NULL Got boring AST Fuzzing step 553 out of 1000 SELECT 256 FROM tab__fuzz_2 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 SELECT 256 FROM tab__fuzz_0 WHERE NULL Query succeeded, using this AST as a start Fuzzing step 555 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 556 out of 1000 SELECT 256 FROM tab__fuzz_2 WHERE (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4) Error on processing query 'SELECT 256 FROM tab__fuzz_2 WHERE (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT 256 FROM tab__fuzz_2 WHERE (x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 557 out of 1000 SELECT materialize(256) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 558 out of 1000 SELECT materialize(256) FROM tab__fuzz_0 Got boring AST Fuzzing step 559 out of 1000 SELECT materialize(256) FROM tab__fuzz_0 Got boring AST Fuzzing step 560 out of 1000 SELECT materialize(256) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 561 out of 1000 SELECT materialize(toNullable(256)) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 562 out of 1000 SELECT materialize(toNullable(256)) FROM tab__fuzz_2 Got boring AST Fuzzing step 563 out of 1000 SELECT materialize(toNullable(256)) FROM tab__fuzz_2 Got boring AST Fuzzing step 564 out of 1000 SELECT toNullable(256) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 565 out of 1000 SELECT toNullable(256) FROM tab__fuzz_2 Got boring AST Fuzzing step 566 out of 1000 SELECT toNullable(256) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 567 out of 1000 SELECT toNullable(256) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 568 out of 1000 SELECT toNullable(256) FROM tab__fuzz_2 PREWHERE toUInt8((number / toNullable(2)) % 2) Error on processing query 'SELECT toNullable(256) FROM tab__fuzz_2 PREWHERE toUInt8((number / toNullable(2)) % 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT toNullable(256) FROM tab__fuzz_2 PREWHERE toUInt8((number / toNullable(2)) % 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 569 out of 1000 SELECT toNullable(256) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 570 out of 1000 SELECT toNullable(256) FROM tab__fuzz_0 Got boring AST Fuzzing step 571 out of 1000 SELECT toNullable(256) FROM tab__fuzz_0 Got boring AST Fuzzing step 572 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(256) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 573 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(256) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 574 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(256) FROM tab__fuzz_0 Got boring AST Fuzzing step 575 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(256) FROM tab__fuzz_0 Got boring AST Fuzzing step 576 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(256) FROM tab__fuzz_0 Got boring AST Fuzzing step 577 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(256) FROM tab__fuzz_0 Got boring AST Fuzzing step 578 out of 1000 EXPLAIN SYNTAX SELECT toNullable(256) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 579 out of 1000 EXPLAIN SYNTAX SELECT toNullable(256) FROM tab__fuzz_0 Got boring AST Fuzzing step 580 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toNullable(256) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toNullable(256) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('toNullable'): toNullable(256) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 581 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toNullable(256) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toNullable(256) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('toNullable'): toNullable(256) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 582 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(256) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 583 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(256) FROM tab__fuzz_0 Got boring AST Fuzzing step 584 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(256) FROM tab__fuzz_0 Got boring AST Fuzzing step 585 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(256) FROM tab__fuzz_0 Got boring AST Fuzzing step 586 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(256) FROM tab__fuzz_0 Got boring AST Fuzzing step 587 out of 1000 EXPLAIN AST SELECT toNullable(256) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 588 out of 1000 EXPLAIN AST SELECT toNullable(256) FROM tab__fuzz_0 Got boring AST Fuzzing step 589 out of 1000 EXPLAIN AST SELECT toNullable(256) FROM tab__fuzz_0 Got boring AST Fuzzing step 590 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toNullable(256) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toNullable(256) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('toNullable'): toNullable(256) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 591 out of 1000 EXPLAIN AST SELECT toNullable(256) FROM tab__fuzz_0 Got boring AST Fuzzing step 592 out of 1000 EXPLAIN PIPELINE SELECT toNullable(256) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 593 out of 1000 SELECT toNullable(256) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 594 out of 1000 SELECT toNullable(256) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 595 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 596 out of 1000 SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 597 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 598 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 599 out of 1000 SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 600 out of 1000 SELECT 256 FROM tab__fuzz_3 Got boring AST Fuzzing step 601 out of 1000 SELECT toLowCardinality(256) FROM tab__fuzz_2 PREWHERE (number / toLowCardinality(4)) % 2 Error on processing query 'SELECT toLowCardinality(256) FROM tab__fuzz_2 PREWHERE (number / toLowCardinality(4)) % 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT toLowCardinality(256) FROM tab__fuzz_2 PREWHERE (number / toLowCardinality(4)) % 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 602 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 603 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 604 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 605 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 606 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 607 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 608 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 609 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 610 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 611 out of 1000 SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 612 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 613 out of 1000 SELECT 256 FROM tab__fuzz_0 PREWHERE (intDiv(toUInt32(rtime), 20) * toLowCardinality(20)) * toNullable(1000) Error on processing query 'SELECT 256 FROM tab__fuzz_0 PREWHERE (intDiv(toUInt32(rtime), 20) * toLowCardinality(20)) * toNullable(1000)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT 256 FROM tab__fuzz_0 PREWHERE (intDiv(toUInt32(rtime), 20) * toLowCardinality(20)) * toNullable(1000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 614 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 615 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 616 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 617 out of 1000 SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 618 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 619 out of 1000 SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 620 out of 1000 SELECT 256 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 621 out of 1000 SELECT sum(if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(23)), toNullable(toLowCardinality(toUInt128(100)))) AND (c = 0), 1, 0)), 256 FROM tab__fuzz_0 Error on processing query 'SELECT sum(if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(23)), toNullable(toLowCardinality(toUInt128(100)))) AND (c = 0), 1, 0)), 256 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT sum(if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(23)), toNullable(toLowCardinality(toUInt128(100)))) AND (c = 0), 1, 0)), 256 FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 622 out of 1000 SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 623 out of 1000 SELECT 256 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 624 out of 1000 SELECT 256 FROM tab__fuzz_2 Got boring AST Fuzzing step 625 out of 1000 SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 626 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 627 out of 1000 SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 628 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 629 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 630 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 631 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('256'): 256 FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 632 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 633 out of 1000 EXPLAIN PIPELINE header = true SELECT 256 FROM tab__fuzz_0 Error on processing query 'EXPLAIN PIPELINE header = true SELECT 256 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 634 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 635 out of 1000 SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 636 out of 1000 SELECT 256 FROM tab__fuzz_3 Got boring AST Fuzzing step 637 out of 1000 SELECT 256 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 638 out of 1000 SELECT 256 FROM tab__fuzz_2 Got boring AST Fuzzing step 639 out of 1000 SELECT 256 FROM tab__fuzz_2 Got boring AST Fuzzing step 640 out of 1000 SELECT 256 FROM tab__fuzz_2 Got boring AST Fuzzing step 641 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 642 out of 1000 SELECT 256 FROM tab__fuzz_0 GROUP BY x10, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), 23)), 23), currentDatabase(), t) Error on processing query 'SELECT 256 FROM tab__fuzz_0 GROUP BY x10, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), 23)), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression identifier 'x10' in scope SELECT 256 FROM tab__fuzz_0 GROUP BY x10, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), 23)), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 643 out of 1000 SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 644 out of 1000 SELECT 256 FROM tab__fuzz_3 Got boring AST Fuzzing step 645 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 646 out of 1000 SELECT 256 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 647 out of 1000 SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 648 out of 1000 SELECT 256 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 649 out of 1000 SELECT 256 FROM tab__fuzz_2 Got boring AST Fuzzing step 650 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 651 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 652 out of 1000 SELECT toNullable(256) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 653 out of 1000 SELECT toNullable(256) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 654 out of 1000 SELECT toNullable(256) FROM tab__fuzz_1 GROUP BY number / 4, if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0) Error on processing query 'SELECT toNullable(256) FROM tab__fuzz_1 GROUP BY number / 4, if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT toNullable(256) FROM tab__fuzz_1 GROUP BY number / 4, if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 655 out of 1000 SELECT toNullable(256) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 656 out of 1000 SELECT toNullable(256) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 657 out of 1000 SELECT toNullable(256) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 658 out of 1000 SELECT toNullable(256) FROM tab__fuzz_2 Got boring AST Fuzzing step 659 out of 1000 SELECT toNullable(256) FROM tab__fuzz_2 Got boring AST Fuzzing step 660 out of 1000 SELECT toNullable(256) FROM tab__fuzz_2 Got boring AST Fuzzing step 661 out of 1000 SELECT toNullable(256) FROM tab__fuzz_2 Got boring AST Fuzzing step 662 out of 1000 SELECT toNullable(256) FROM tab__fuzz_2 Got boring AST Fuzzing step 663 out of 1000 SELECT toNullable(256) FROM tab__fuzz_2 Got boring AST Fuzzing step 664 out of 1000 SELECT toNullable(256) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 665 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 666 out of 1000 SELECT 256 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 667 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 668 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 669 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 670 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 671 out of 1000 EXPLAIN ESTIMATE SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 672 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 673 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 674 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 675 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 676 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 677 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 678 out of 1000 EXPLAIN ESTIMATE SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 679 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 680 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 681 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 682 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 683 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 684 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 685 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 686 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 687 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 688 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 256 FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 256 FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('256'): 256 FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 689 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 690 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 691 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 692 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 693 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 694 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 695 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 696 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 697 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('256'): 256 FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 698 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 699 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 700 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 701 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 702 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 703 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 704 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('256'): 256 FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 705 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 706 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('256'): 256 FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 707 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 708 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 709 out of 1000 EXPLAIN SYNTAX SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 710 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 711 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 712 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 713 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 256 FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 256 FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('256'): 256 FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 714 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 715 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 716 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 717 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 718 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 719 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 720 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 721 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 722 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 723 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 724 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 725 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 726 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 727 out of 1000 EXPLAIN SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 728 out of 1000 EXPLAIN AST SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 729 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 256 FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('256'): 256 FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 730 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 256 FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 256 FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('256'): 256 FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 731 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 732 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 733 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 734 out of 1000 EXPLAIN QUERY TREE SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 735 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 736 out of 1000 SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 737 out of 1000 SELECT 256 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 738 out of 1000 SELECT toUInt8(number % 2), 256 FROM tab__fuzz_3 Error on processing query 'SELECT toUInt8(number % 2), 256 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT toUInt8(number % 2), 256 FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 739 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 740 out of 1000 SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 SELECT 256 FROM tab__fuzz_3 PREWHERE x10 Error on processing query 'SELECT 256 FROM tab__fuzz_3 PREWHERE x10': Received from localhost:9000. DB::Exception: Unknown expression identifier 'x10' in scope SELECT 256 FROM tab__fuzz_3 PREWHERE x10. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 742 out of 1000 SELECT 256 FROM tab__fuzz_3 Got boring AST Fuzzing step 743 out of 1000 SELECT 256 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 744 out of 1000 SELECT 256 FROM tab__fuzz_2 Got boring AST Fuzzing step 745 out of 1000 SELECT 256 FROM tab__fuzz_2 Got boring AST Fuzzing step 746 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 747 out of 1000 SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 748 out of 1000 SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 749 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 750 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 751 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 752 out of 1000 SELECT 256 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 753 out of 1000 SELECT 256 FROM tab__fuzz_2 Got boring AST Fuzzing step 754 out of 1000 SELECT 256 FROM tab__fuzz_2 Got boring AST Fuzzing step 755 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 756 out of 1000 SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 757 out of 1000 EXPLAIN PIPELINE compact = true SELECT 256 FROM tab__fuzz_0 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 256 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 758 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 759 out of 1000 SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 760 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 761 out of 1000 SELECT 256 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 762 out of 1000 SELECT 256 FROM tab__fuzz_2 Got boring AST Fuzzing step 763 out of 1000 SELECT ((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))), 256 FROM tab__fuzz_0 Error on processing query 'SELECT ((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))), 256 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x2' in scope SELECT ((x2 AND x3) AND (x4 AND x5)) AND ((x6 AND x7) AND (x8 AND (x9 AND (x10 AND x11)))), 256 FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 764 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 765 out of 1000 SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 766 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 767 out of 1000 SELECT 256 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 768 out of 1000 SELECT 256 FROM tab__fuzz_2 Got boring AST Fuzzing step 769 out of 1000 SELECT toNullable(256) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 770 out of 1000 SELECT toNullable(256) FROM tab__fuzz_3 Got boring AST Fuzzing step 771 out of 1000 SELECT toFixedString(toFixedString(toNullable(23)), 23), 256 FROM tab__fuzz_2 Error on processing query 'SELECT toFixedString(toFixedString(toNullable(23)), 23), 256 FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toFixedString(toFixedString(toNullable(23)), 23), 256 FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 772 out of 1000 SELECT toNullable(256) FROM tab__fuzz_3 PREWHERE a >= materialize(toNullable(0)) Error on processing query 'SELECT toNullable(256) FROM tab__fuzz_3 PREWHERE a >= materialize(toNullable(0))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toNullable(256) FROM tab__fuzz_3 PREWHERE a >= materialize(toNullable(0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 773 out of 1000 SELECT toNullable(256) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 774 out of 1000 SELECT toNullable(256) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 775 out of 1000 SELECT toNullable(256) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 776 out of 1000 SELECT toNullable(256) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 777 out of 1000 SELECT toNullable(cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t), 256) FROM tab__fuzz_1 Error on processing query 'SELECT toNullable(cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t), 256) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT toNullable(cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 23), currentDatabase(), t), 256) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 778 out of 1000 SELECT toNullable(256) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 779 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 780 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 781 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 256 FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 256 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('256'): 256 FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 782 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 783 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 784 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 785 out of 1000 SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 786 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 787 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 788 out of 1000 SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 789 out of 1000 SELECT 256 FROM tab__fuzz_3 Got boring AST Fuzzing step 790 out of 1000 SELECT 256 FROM tab__fuzz_3 Got boring AST Fuzzing step 791 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 792 out of 1000 SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 793 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 794 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 795 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 796 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 797 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 798 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 799 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 800 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 801 out of 1000 SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 802 out of 1000 SELECT 256 FROM tab__fuzz_0 PREWHERE if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), toNullable(100)) AND (c = 0), 1, 0) Error on processing query 'SELECT 256 FROM tab__fuzz_0 PREWHERE if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), toNullable(100)) AND (c = 0), 1, 0)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 256 FROM tab__fuzz_0 PREWHERE if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), toNullable(100)) AND (c = 0), 1, 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 803 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 804 out of 1000 SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 805 out of 1000 SELECT 256 FROM tab__fuzz_3 Got boring AST Fuzzing step 806 out of 1000 SELECT 256 FROM tab__fuzz_3 Got boring AST Fuzzing step 807 out of 1000 SELECT 256 FROM tab__fuzz_3 Got boring AST Fuzzing step 808 out of 1000 SELECT x4 OR x5, 256 FROM tab__fuzz_0 Error on processing query 'SELECT x4 OR x5, 256 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x4' in scope SELECT x4 OR x5, 256 FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 809 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 810 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 811 out of 1000 SELECT 256 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 812 out of 1000 SELECT 256 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 813 out of 1000 SELECT 256 FROM tab__fuzz_0 WHERE sum(if((a >= toLowCardinality(0)) AND 1, 1, 0)) IGNORE NULLS Error on processing query 'SELECT 256 FROM tab__fuzz_0 WHERE sum(if((a >= toLowCardinality(0)) AND 1, 1, 0)) IGNORE NULLS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 256 FROM tab__fuzz_0 WHERE sum(if((a >= toLowCardinality(0)) AND 1, 1, 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 814 out of 1000 SELECT 256 FROM tab__fuzz_1 Got boring AST Fuzzing step 815 out of 1000 SELECT 256 FROM tab__fuzz_1 PREWHERE (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0) Error on processing query 'SELECT 256 FROM tab__fuzz_1 PREWHERE (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 256 FROM tab__fuzz_1 PREWHERE (a >= toLowCardinality(0)) AND (b != 100) AND (c = 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 816 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 817 out of 1000 SELECT 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 818 out of 1000 SELECT 256 FROM tab__fuzz_3 Got boring AST Fuzzing step 819 out of 1000 SELECT 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 820 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 821 out of 1000 SELECT 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 822 out of 1000 SELECT 0, 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 823 out of 1000 SELECT 0, 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 824 out of 1000 EXPLAIN PIPELINE SELECT 0, 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 825 out of 1000 EXPLAIN PIPELINE SELECT 0, 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 826 out of 1000 EXPLAIN PIPELINE SELECT 0, 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 827 out of 1000 EXPLAIN QUERY TREE SELECT 0, 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 828 out of 1000 EXPLAIN SELECT 0, 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 829 out of 1000 EXPLAIN SELECT 0, 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 830 out of 1000 EXPLAIN QUERY TREE SELECT 0, 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 831 out of 1000 EXPLAIN QUERY TREE SELECT 0, 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 832 out of 1000 EXPLAIN SYNTAX SELECT 0, 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 833 out of 1000 EXPLAIN SYNTAX SELECT 0, 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 834 out of 1000 EXPLAIN SELECT 0, 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 835 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 0, 256 FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 0, 256 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('0'): 0, 256 FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 836 out of 1000 EXPLAIN SYNTAX SELECT 0, 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 837 out of 1000 EXPLAIN SYNTAX SELECT 0, 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 838 out of 1000 EXPLAIN SELECT 0, 256 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 839 out of 1000 EXPLAIN SELECT 0, 256 FROM tab__fuzz_0 Got boring AST Fuzzing step 840 out of 1000 SELECT 0, 256 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 841 out of 1000 SELECT 0, toNullable(256) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 842 out of 1000 SELECT 0, toNullable(256) FROM tab__fuzz_3 Got boring AST Fuzzing step 843 out of 1000 SELECT 0 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 844 out of 1000 SELECT 0 FROM tab__fuzz_1 Got boring AST Fuzzing step 845 out of 1000 SELECT 0 FROM tab__fuzz_1 Got boring AST Fuzzing step 846 out of 1000 SELECT 0 FROM tab__fuzz_1 Got boring AST Fuzzing step 847 out of 1000 SELECT 0 FROM tab__fuzz_1 Got boring AST Fuzzing step 848 out of 1000 SELECT 0 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 849 out of 1000 SELECT 0 FROM tab__fuzz_3 Got boring AST Fuzzing step 850 out of 1000 SELECT 0 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 851 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT 0 FROM tab__fuzz_0 Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT 0 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 852 out of 1000 SELECT 0 FROM tab__fuzz_0 Got boring AST Fuzzing step 853 out of 1000 SELECT 0 FROM tab__fuzz_0 Got boring AST Fuzzing step 854 out of 1000 SELECT 0 FROM tab__fuzz_0 Got boring AST Fuzzing step 855 out of 1000 SELECT toNullable(0) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 856 out of 1000 SELECT toNullable(0) FROM tab__fuzz_0 WHERE tab__fuzz_43 Error on processing query 'SELECT toNullable(0) FROM tab__fuzz_0 WHERE tab__fuzz_43': Received from localhost:9000. DB::Exception: Unknown expression identifier 'tab__fuzz_43' in scope SELECT toNullable(0) FROM tab__fuzz_0 WHERE tab__fuzz_43. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 857 out of 1000 SELECT toNullable(0) FROM tab__fuzz_0 Got boring AST Fuzzing step 858 out of 1000 SELECT toNullable(0) FROM tab__fuzz_0 Got boring AST Fuzzing step 859 out of 1000 SELECT toNullable(0) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 860 out of 1000 SELECT toNullable(0) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 861 out of 1000 SELECT toNullable(0) FROM tab__fuzz_0 Got boring AST Fuzzing step 862 out of 1000 SELECT toNullable(0) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 863 out of 1000 SELECT toNullable(0) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 864 out of 1000 SELECT toNullable(0) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 865 out of 1000 SELECT 0 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 866 out of 1000 SELECT 0 FROM tab__fuzz_3 Got boring AST Fuzzing step 867 out of 1000 SELECT 0 FROM tab__fuzz_3 Got boring AST Fuzzing step 868 out of 1000 SELECT 0 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 869 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT 0 FROM tab__fuzz_3 Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT 0 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 870 out of 1000 SELECT 0 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 871 out of 1000 SELECT 0 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 872 out of 1000 SELECT 0 FROM tab__fuzz_2 GROUP BY xor(x2, x3) Error on processing query 'SELECT 0 FROM tab__fuzz_2 GROUP BY xor(x2, x3)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x2' in scope SELECT 0 FROM tab__fuzz_2 GROUP BY xor(x2, x3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 873 out of 1000 SELECT 0 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 874 out of 1000 EXPLAIN ESTIMATE SELECT 0 FROM tab__fuzz_0 PREWHERE a >= 0 Error on processing query 'EXPLAIN ESTIMATE SELECT 0 FROM tab__fuzz_0 PREWHERE a >= 0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 0 FROM tab__fuzz_0 PREWHERE a >= 0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 875 out of 1000 SELECT 0 FROM tab__fuzz_3 Got boring AST Fuzzing step 876 out of 1000 SELECT 0 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 877 out of 1000 SELECT 0 FROM tab__fuzz_1 Got boring AST Fuzzing step 878 out of 1000 EXPLAIN QUERY TREE SELECT 0 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 879 out of 1000 EXPLAIN SYNTAX SELECT 0 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 880 out of 1000 EXPLAIN SYNTAX SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 881 out of 1000 EXPLAIN SYNTAX SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 882 out of 1000 EXPLAIN SYNTAX SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 883 out of 1000 EXPLAIN SYNTAX SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 884 out of 1000 EXPLAIN QUERY TREE SELECT 0 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 885 out of 1000 EXPLAIN SYNTAX SELECT 0 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 886 out of 1000 EXPLAIN SYNTAX SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 887 out of 1000 EXPLAIN SYNTAX SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 888 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 0 FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 0 FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('0'): 0 FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 889 out of 1000 EXPLAIN SYNTAX SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 890 out of 1000 EXPLAIN QUERY TREE SELECT 0 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 891 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 0 FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 0 FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('0'): 0 FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 892 out of 1000 EXPLAIN QUERY TREE SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 893 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 0 FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 0 FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('0'): 0 FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 894 out of 1000 EXPLAIN AST SELECT 0 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 895 out of 1000 EXPLAIN AST SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 896 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 0 FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 0 FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('0'): 0 FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 897 out of 1000 EXPLAIN SYNTAX SELECT 0 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 898 out of 1000 EXPLAIN PIPELINE SELECT 0 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 899 out of 1000 EXPLAIN ESTIMATE SELECT 0 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 900 out of 1000 EXPLAIN QUERY TREE SELECT 0 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 901 out of 1000 EXPLAIN QUERY TREE SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 902 out of 1000 EXPLAIN AST SELECT 0 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 903 out of 1000 EXPLAIN AST SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 904 out of 1000 EXPLAIN AST SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 905 out of 1000 EXPLAIN AST SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 906 out of 1000 EXPLAIN AST SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 907 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 0 FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 0 FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('0'): 0 FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 908 out of 1000 EXPLAIN AST SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 909 out of 1000 EXPLAIN AST SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 910 out of 1000 EXPLAIN AST SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 911 out of 1000 EXPLAIN AST SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 912 out of 1000 EXPLAIN QUERY TREE SELECT 0 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 913 out of 1000 EXPLAIN QUERY TREE SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 914 out of 1000 EXPLAIN ESTIMATE SELECT 0 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 915 out of 1000 EXPLAIN ESTIMATE SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 916 out of 1000 EXPLAIN PIPELINE SELECT 0 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 917 out of 1000 EXPLAIN QUERY TREE SELECT 0 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 918 out of 1000 EXPLAIN AST SELECT 0 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 919 out of 1000 SELECT 0 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 920 out of 1000 SELECT 0 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 921 out of 1000 SELECT 0 FROM tab__fuzz_0 Got boring AST Fuzzing step 922 out of 1000 SELECT 0 FROM tab__fuzz_0 Got boring AST Fuzzing step 923 out of 1000 SELECT 0 FROM tab__fuzz_0 PREWHERE x2 OR x3 Error on processing query 'SELECT 0 FROM tab__fuzz_0 PREWHERE x2 OR x3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x2' in scope SELECT 0 FROM tab__fuzz_0 PREWHERE x2 OR x3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 924 out of 1000 SELECT 0 FROM tab__fuzz_0 Got boring AST Fuzzing step 925 out of 1000 SELECT 0 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 926 out of 1000 SELECT 0 FROM tab__fuzz_1 Got boring AST Fuzzing step 927 out of 1000 SELECT x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11, 0 FROM tab__fuzz_1 GROUP BY toUInt8((number / 4) % toLowCardinality(2)) Error on processing query 'SELECT x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11, 0 FROM tab__fuzz_1 GROUP BY toUInt8((number / 4) % toLowCardinality(2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT x1 AND x2 AND x3 AND x4 AND x5 AND x6 AND x7 AND x8 AND x9 AND x10 AND x11, 0 FROM tab__fuzz_1 GROUP BY toUInt8((number / 4) % toLowCardinality(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 928 out of 1000 SELECT 0 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 929 out of 1000 SELECT 0 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 930 out of 1000 SELECT 0 FROM tab__fuzz_2 Got boring AST Fuzzing step 931 out of 1000 SELECT 0 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 932 out of 1000 SELECT 0 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 933 out of 1000 SELECT 0 FROM tab__fuzz_0 Got boring AST Fuzzing step 934 out of 1000 SELECT 0 FROM tab__fuzz_0 Got boring AST Fuzzing step 935 out of 1000 SELECT 0 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 936 out of 1000 SELECT 0 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 937 out of 1000 SELECT toLowCardinality(0) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 938 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 0 FROM tab__fuzz_3 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 0 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 939 out of 1000 SELECT toLowCardinality(0) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 940 out of 1000 SELECT toLowCardinality(0) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 941 out of 1000 SELECT toLowCardinality(0) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 942 out of 1000 SELECT toLowCardinality(0) FROM tab__fuzz_3 WHERE round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100)) Error on processing query 'SELECT toLowCardinality(0) FROM tab__fuzz_3 WHERE round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toLowCardinality(0) FROM tab__fuzz_3 WHERE round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 943 out of 1000 SELECT toLowCardinality(0) FROM tab__fuzz_1 Got boring AST Fuzzing step 944 out of 1000 SELECT toLowCardinality(toNullable(0)) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 945 out of 1000 SELECT toLowCardinality(toNullable(0)) FROM tab__fuzz_1 Got boring AST Fuzzing step 946 out of 1000 SELECT toNullable(0) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 947 out of 1000 SELECT toNullable(toLowCardinality(0)) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 948 out of 1000 SELECT toNullable(toLowCardinality(0)) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 949 out of 1000 SELECT toNullable(toLowCardinality(0)) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 950 out of 1000 SELECT toNullable(toLowCardinality(0)) FROM tab__fuzz_3 WHERE if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(toLowCardinality(toUInt128(23)))), toNullable(23), 100) AND (c = 0), 1, 0) Error on processing query 'SELECT toNullable(toLowCardinality(0)) FROM tab__fuzz_3 WHERE if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(toLowCardinality(toUInt128(23)))), toNullable(23), 100) AND (c = 0), 1, 0)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toNullable(toLowCardinality(0)) FROM tab__fuzz_3 WHERE if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(toLowCardinality(toUInt128(23)))), toNullable(23), 100) AND (c = 0), 1, 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 951 out of 1000 SELECT toNullable(toLowCardinality(0)) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 952 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toLowCardinality(0) FROM tab__fuzz_1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toLowCardinality(0) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('toLowCardinality'): toLowCardinality(0) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 953 out of 1000 SELECT toNullable(0) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 954 out of 1000 SELECT toNullable(0) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 955 out of 1000 SELECT toNullable(0) FROM tab__fuzz_2 Got boring AST Fuzzing step 956 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true, compact = true SELECT toNullable(0) FROM tab__fuzz_2 Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true, compact = true SELECT toNullable(0) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 957 out of 1000 SELECT toNullable(0) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 958 out of 1000 SELECT toNullable(0) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 959 out of 1000 EXPLAIN PIPELINE compact = true SELECT toNullable(0) FROM tab__fuzz_2 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT toNullable(0) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 960 out of 1000 SELECT toNullable(0) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 961 out of 1000 SELECT toUInt8(number % materialize(2)), toNullable(0) FROM tab__fuzz_3 Error on processing query 'SELECT toUInt8(number % materialize(2)), toNullable(0) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT toUInt8(number % materialize(2)), toNullable(0) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 962 out of 1000 SELECT toNullable(0) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 963 out of 1000 SELECT toNullable(0) FROM tab__fuzz_1 Got boring AST Fuzzing step 964 out of 1000 SELECT toNullable(0) FROM tab__fuzz_1 Got boring AST Fuzzing step 965 out of 1000 EXPLAIN PIPELINE compact = true SELECT toNullable(0) FROM tab__fuzz_0 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT toNullable(0) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 966 out of 1000 SELECT toNullable(0) FROM tab__fuzz_1 Got boring AST Fuzzing step 967 out of 1000 SELECT toNullable(0) FROM tab__fuzz_1 Got boring AST Fuzzing step 968 out of 1000 SELECT toNullable(0) FROM tab__fuzz_1 Got boring AST Fuzzing step 969 out of 1000 SELECT toNullable(0) FROM tab__fuzz_3 PREWHERE materialize(toLowCardinality(toNullable(2))) Query succeeded, using this AST as a start Fuzzing step 970 out of 1000 SELECT toNullable(0) FROM tab__fuzz_0 PREWHERE materialize(toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 971 out of 1000 SELECT toNullable(0) FROM tab__fuzz_1 PREWHERE materialize(toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 972 out of 1000 SELECT 0 FROM tab__fuzz_1 PREWHERE materialize(toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 973 out of 1000 SELECT 0 FROM tab__fuzz_1 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 974 out of 1000 SELECT 0 FROM tab__fuzz_2 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 975 out of 1000 SELECT 0 FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 976 out of 1000 SELECT 0 FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 977 out of 1000 SELECT 0 FROM tab__fuzz_3 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 978 out of 1000 SELECT 0 FROM tab__fuzz_3 PREWHERE materialize(2) Got boring AST Fuzzing step 979 out of 1000 SELECT 0 FROM tab__fuzz_3 PREWHERE materialize(2) Got boring AST Fuzzing step 980 out of 1000 SELECT 0 FROM tab__fuzz_3 PREWHERE materialize(nums__fuzz_11, 2) Error on processing query 'SELECT 0 FROM tab__fuzz_3 PREWHERE materialize(nums__fuzz_11, 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_11' in scope SELECT 0 FROM tab__fuzz_3 PREWHERE materialize(nums__fuzz_11, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 981 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toUInt256(0) FROM tab__fuzz_1 PREWHERE materialize(2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toUInt256(0) FROM tab__fuzz_1 PREWHERE materialize(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('toUInt256'): toUInt256(0) FROM tab__fuzz_1 PREWHERE materialize(2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 982 out of 1000 SELECT 0 FROM tab__fuzz_3 PREWHERE materialize(2) Got boring AST Fuzzing step 983 out of 1000 SELECT 0 FROM tab__fuzz_3 PREWHERE materialize(2) GROUP BY x9 AND (x10 AND x11), toLowCardinality(toFixedString(materialize(' '), 1)) Error on processing query 'SELECT 0 FROM tab__fuzz_3 PREWHERE materialize(2) GROUP BY x9 AND (x10 AND x11), toLowCardinality(toFixedString(materialize(' '), 1))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x9' in scope SELECT 0 FROM tab__fuzz_3 PREWHERE materialize(2) GROUP BY x9 AND (x10 AND x11), toLowCardinality(toFixedString(materialize(' '), 1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 984 out of 1000 SELECT 0 FROM tab__fuzz_3 PREWHERE materialize(2) Got boring AST Fuzzing step 985 out of 1000 SELECT 0 FROM tab__fuzz_3 PREWHERE materialize(2) Got boring AST Fuzzing step 986 out of 1000 SELECT 0 FROM tab__fuzz_0 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 987 out of 1000 SELECT 0 FROM tab__fuzz_3 PREWHERE materialize(toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 988 out of 1000 SELECT 0 FROM tab__fuzz_0 PREWHERE materialize(toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 989 out of 1000 SELECT 0 FROM tab__fuzz_0 PREWHERE materialize(toLowCardinality(2)) Got boring AST Fuzzing step 990 out of 1000 SELECT 0 FROM tab__fuzz_0 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 991 out of 1000 SELECT 0 FROM tab__fuzz_1 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 992 out of 1000 SELECT 0 FROM tab__fuzz_1 PREWHERE materialize(2) Got boring AST Fuzzing step 993 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 0 FROM tab__fuzz_3 PREWHERE materialize(2) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 0 FROM tab__fuzz_3 PREWHERE materialize(2)': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 994 out of 1000 SELECT 0 FROM tab__fuzz_1 PREWHERE materialize(2) Got boring AST Fuzzing step 995 out of 1000 SELECT 0 FROM tab__fuzz_1 PREWHERE materialize(2) Got boring AST Fuzzing step 996 out of 1000 SELECT 0 FROM tab__fuzz_1 PREWHERE materialize(2) Got boring AST Fuzzing step 997 out of 1000 SELECT 0 FROM tab__fuzz_1 PREWHERE materialize(2) Got boring AST Fuzzing step 998 out of 1000 SELECT 0 FROM tab__fuzz_0 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 999 out of 1000 SELECT 0 FROM tab__fuzz_0 WHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 PREWHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 2 out of 1000 SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 Got boring AST Fuzzing step 4 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 5 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 6 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 Got boring AST Fuzzing step 7 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 8 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 Got boring AST Fuzzing step 9 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 Got boring AST Fuzzing step 10 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 11 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 Got boring AST Fuzzing step 12 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 Got boring AST Fuzzing step 13 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 Got boring AST Fuzzing step 14 out of 1000 SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 15 out of 1000 SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE equals(sum(if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(23)), toNullable(100)) AND (c = toNullable(0)), 1, 0)), id, 1) Error on processing query 'SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE equals(sum(if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(23)), toNullable(100)) AND (c = toNullable(0)), 1, 0)), id, 1)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE equals(sum(if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(23)), toNullable(100)) AND (c = toNullable(0)), 1, 0)), id, 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 16 out of 1000 SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 17 out of 1000 SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 18 out of 1000 SELECT toUInt8(sum(if((a >= 0) AND (b != toFixedString('2022-01-01', 10), 100) AND 1 AND (c > 220), toUInt128(1), 0)) RESPECT NULLS, (number / 8) % toUInt128(materialize(2))), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT toUInt8(sum(if((a >= 0) AND (b != toFixedString('2022-01-01', 10), 100) AND 1 AND (c > 220), toUInt128(1), 0)) RESPECT NULLS, (number / 8) % toUInt128(materialize(2))), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(sum(if((a >= 0) AND (b != toFixedString('2022-01-01', 10), 100) AND 1 AND (c > 220), toUInt128(1), 0)) RESPECT NULLS, (number / 8) % toUInt128(materialize(2))), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 19 out of 1000 SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 20 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 21 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 22 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 23 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 24 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 26 out of 1000 SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 GROUP BY 128, if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), 0) Error on processing query 'SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 GROUP BY 128, if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), 0)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 GROUP BY 128, if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 27 out of 1000 SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 28 out of 1000 SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 29 out of 1000 SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 30 out of 1000 SELECT countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 31 out of 1000 SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 32 out of 1000 SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 33 out of 1000 SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 34 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 35 out of 1000 EXPLAIN PIPELINE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 36 out of 1000 EXPLAIN SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 37 out of 1000 EXPLAIN SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 38 out of 1000 EXPLAIN SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 39 out of 1000 EXPLAIN QUERY TREE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 40 out of 1000 EXPLAIN QUERY TREE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 41 out of 1000 EXPLAIN QUERY TREE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 42 out of 1000 EXPLAIN AST SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 43 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toUInt128'): toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 44 out of 1000 EXPLAIN AST SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 45 out of 1000 EXPLAIN AST SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 46 out of 1000 EXPLAIN AST SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 47 out of 1000 EXPLAIN QUERY TREE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 48 out of 1000 EXPLAIN QUERY TREE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 49 out of 1000 EXPLAIN ESTIMATE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 50 out of 1000 EXPLAIN ESTIMATE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 51 out of 1000 EXPLAIN ESTIMATE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 52 out of 1000 EXPLAIN ESTIMATE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 53 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toUInt128'): toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 54 out of 1000 EXPLAIN AST SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 55 out of 1000 EXPLAIN SYNTAX SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 EXPLAIN SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 57 out of 1000 EXPLAIN SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 58 out of 1000 EXPLAIN SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 59 out of 1000 EXPLAIN SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 60 out of 1000 EXPLAIN SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 61 out of 1000 EXPLAIN SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 62 out of 1000 EXPLAIN AST SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 63 out of 1000 EXPLAIN AST SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 64 out of 1000 EXPLAIN AST SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 65 out of 1000 EXPLAIN AST SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 66 out of 1000 EXPLAIN QUERY TREE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 EXPLAIN ESTIMATE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 68 out of 1000 EXPLAIN PIPELINE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 69 out of 1000 EXPLAIN PIPELINE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 70 out of 1000 EXPLAIN PIPELINE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 71 out of 1000 EXPLAIN AST SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 EXPLAIN AST SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 73 out of 1000 EXPLAIN AST SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 74 out of 1000 SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 75 out of 1000 EXPLAIN AST SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 76 out of 1000 EXPLAIN AST SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 77 out of 1000 EXPLAIN AST SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 78 out of 1000 EXPLAIN SYNTAX SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 79 out of 1000 EXPLAIN SYNTAX SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 80 out of 1000 EXPLAIN SYNTAX SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 81 out of 1000 EXPLAIN SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 EXPLAIN SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 83 out of 1000 EXPLAIN SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 84 out of 1000 EXPLAIN SYNTAX SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 EXPLAIN SYNTAX SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 86 out of 1000 EXPLAIN QUERY TREE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 87 out of 1000 EXPLAIN QUERY TREE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 88 out of 1000 EXPLAIN PIPELINE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 89 out of 1000 EXPLAIN AST SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 90 out of 1000 EXPLAIN SYNTAX SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 91 out of 1000 EXPLAIN SYNTAX SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 92 out of 1000 EXPLAIN PIPELINE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 93 out of 1000 EXPLAIN PIPELINE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 94 out of 1000 EXPLAIN AST SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toUInt128'): toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 96 out of 1000 EXPLAIN AST SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 97 out of 1000 SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 98 out of 1000 SELECT toUInt128(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 99 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 100 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 101 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 102 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('2'): 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 103 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 105 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 106 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 107 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 108 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx') FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx') FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx') FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 109 out of 1000 SELECT materialize(toNullable(2)), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = toNullable(1) Error on processing query 'SELECT materialize(toNullable(2)), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = toNullable(1)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT materialize(toNullable(2)), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = toNullable(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 110 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 111 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 112 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = toUInt256(1) Query succeeded, using this AST as a start Fuzzing step 113 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = toUInt256(1) Error on processing query 'SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = toUInt256(1)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = toUInt256(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 114 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = toUInt256(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 115 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 117 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 118 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = materialize(1) Got boring AST Fuzzing step 119 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = materialize(1) Error on processing query 'SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = materialize(1)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 120 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 121 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = materialize(1) Got boring AST Fuzzing step 122 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 123 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 124 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 125 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 126 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = materialize(1) Got boring AST Fuzzing step 127 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 128 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 PREWHERE toNullable(1) WHERE equals(toNullable(materialize(toNullable(toNullable(1)))), id, 1) Error on processing query 'SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 PREWHERE toNullable(1) WHERE equals(toNullable(materialize(toNullable(toNullable(1)))), id, 1)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 PREWHERE toNullable(1) WHERE equals(toNullable(materialize(toNullable(toNullable(1)))), id, 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 129 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 130 out of 1000 SELECT toLowCardinality(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 131 out of 1000 SELECT toLowCardinality(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 132 out of 1000 SELECT toLowCardinality(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE sum(if((b != 100) AND (c = 0), 1, 0)) WHERE id = 1 Error on processing query 'SELECT toLowCardinality(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE sum(if((b != 100) AND (c = 0), 1, 0)) WHERE id = 1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toLowCardinality(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE sum(if((b != 100) AND (c = 0), 1, 0)) WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 133 out of 1000 SELECT toLowCardinality(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = toUInt256(1) Query succeeded, using this AST as a start Fuzzing step 134 out of 1000 SELECT toLowCardinality(2), countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = toUInt256(1) Query succeeded, using this AST as a start Fuzzing step 135 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = toUInt256(1) Query succeeded, using this AST as a start Fuzzing step 136 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = toUInt256(1) Got boring AST Fuzzing step 137 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE id = toUInt256(1) Got boring AST Fuzzing step 138 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = toUInt256(1) Query succeeded, using this AST as a start Fuzzing step 139 out of 1000 SELECT 2, countSubstringsCaseInsensitive(pattern) FROM tab__fuzz_0 WHERE id = toUInt256(1) Error on processing query 'SELECT 2, countSubstringsCaseInsensitive(pattern) FROM tab__fuzz_0 WHERE id = toUInt256(1)': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT 2, countSubstringsCaseInsensitive(pattern) FROM tab__fuzz_0 WHERE id = toUInt256(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 140 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = toUInt256(1) Error on processing query 'SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = toUInt256(1)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = toUInt256(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 141 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = toUInt256(1) Got boring AST Fuzzing step 142 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = toUInt256(1) Query succeeded, using this AST as a start Fuzzing step 143 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = toUInt256(1) Query succeeded, using this AST as a start Fuzzing step 144 out of 1000 EXPLAIN PIPELINE compact = true SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = 1': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 145 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = toUInt256(1) Got boring AST Fuzzing step 146 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 WHERE id = toUInt256(1) Got boring AST Fuzzing step 147 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(1) Query succeeded, using this AST as a start Fuzzing step 148 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(1) Got boring AST Fuzzing step 149 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 150 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = toUInt256(x1 AND x2, materialize(1)) Error on processing query 'SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = toUInt256(x1 AND x2, materialize(1))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = toUInt256(x1 AND x2, materialize(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 151 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', number / 512, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = toUInt256(test_alias__fuzz_33, materialize(1)) Error on processing query 'SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', number / 512, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = toUInt256(test_alias__fuzz_33, materialize(1))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', number / 512, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = toUInt256(test_alias__fuzz_33, materialize(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 152 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 153 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Got boring AST Fuzzing step 154 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Got boring AST Fuzzing step 155 out of 1000 SELECT 2, countSubstringsCaseInsensitive(toFixedString(toNullable('test_cluster_two_shards'), 23), 23, 'aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Error on processing query 'SELECT 2, countSubstringsCaseInsensitive(toFixedString(toNullable('test_cluster_two_shards'), 23), 23, 'aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1))': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 4, should be 2 or 3: In scope SELECT 2, countSubstringsCaseInsensitive(toFixedString(toNullable('test_cluster_two_shards'), 23), 23, 'aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 156 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE equals(sum(multiIf(s IN materialize(('a', 'b')), materialize(1), 0)) IGNORE NULLS, id, toUInt256(materialize(1))) Error on processing query 'SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE equals(sum(multiIf(s IN materialize(('a', 'b')), materialize(1), 0)) IGNORE NULLS, id, toUInt256(materialize(1)))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE equals(sum(multiIf(s IN materialize(('a', 'b')), materialize(1), 0)) IGNORE NULLS, id, toUInt256(materialize(1))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 157 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) GROUP BY cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias), if((b != 100) AND (c = 0), materialize(toUInt128(1)), 0), toFixedString(' ', toUInt128(1)) Error on processing query 'SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) GROUP BY cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias), if((b != 100) AND (c = 0), materialize(toUInt128(1)), 0), toFixedString(' ', toUInt128(1))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias' in scope SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) GROUP BY cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias), if((b != 100) AND (c = 0), materialize(toUInt128(1)), 0), toFixedString(' ', toUInt128(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 158 out of 1000 EXPLAIN PIPELINE compact = true SELECT (number / 8) % 2, 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = toUInt256(1) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT (number / 8) % 2, 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = toUInt256(1)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 159 out of 1000 SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 160 out of 1000 SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = materialize(1) Error on processing query 'SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = materialize(1)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 161 out of 1000 SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE equals(id) WHERE id = toUInt256(1) Error on processing query 'SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE equals(id) WHERE id = toUInt256(1)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE equals(id) WHERE id = toUInt256(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 162 out of 1000 SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Got boring AST Fuzzing step 163 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Error on processing query 'SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1))': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 164 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_3 PREWHERE equals(nums__fuzz_31, id, 1) WHERE id = materialize(1) Error on processing query 'SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_3 PREWHERE equals(nums__fuzz_31, id, 1) WHERE id = materialize(1)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_3 PREWHERE equals(nums__fuzz_31, id, 1) WHERE id = materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 165 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Error on processing query 'SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = toUInt256(materialize(1))': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 166 out of 1000 SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE equals(id) WHERE id = toUInt256(materialize(1)) Error on processing query 'SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE equals(id) WHERE id = toUInt256(materialize(1))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE equals(id) WHERE id = toUInt256(materialize(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 167 out of 1000 SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Got boring AST Fuzzing step 168 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Error on processing query 'SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = toUInt256(materialize(1))': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 169 out of 1000 EXPLAIN SYNTAX SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 170 out of 1000 EXPLAIN SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 171 out of 1000 EXPLAIN SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Got boring AST Fuzzing step 172 out of 1000 EXPLAIN SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Got boring AST Fuzzing step 173 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('2'): 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 174 out of 1000 EXPLAIN ESTIMATE SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 175 out of 1000 EXPLAIN QUERY TREE SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 176 out of 1000 EXPLAIN ESTIMATE SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 177 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('2'): 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 178 out of 1000 EXPLAIN AST SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 179 out of 1000 EXPLAIN ESTIMATE SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 180 out of 1000 EXPLAIN ESTIMATE SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Got boring AST Fuzzing step 181 out of 1000 EXPLAIN SYNTAX SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 182 out of 1000 EXPLAIN SYNTAX SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Got boring AST Fuzzing step 183 out of 1000 EXPLAIN SYNTAX SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Got boring AST Fuzzing step 184 out of 1000 EXPLAIN ESTIMATE SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 185 out of 1000 EXPLAIN ESTIMATE SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Got boring AST Fuzzing step 186 out of 1000 EXPLAIN SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 187 out of 1000 EXPLAIN SYNTAX SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 EXPLAIN SYNTAX SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Got boring AST Fuzzing step 189 out of 1000 EXPLAIN SYNTAX SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Got boring AST Fuzzing step 190 out of 1000 EXPLAIN SYNTAX SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Got boring AST Fuzzing step 191 out of 1000 EXPLAIN SYNTAX SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Got boring AST Fuzzing step 192 out of 1000 EXPLAIN AST SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 193 out of 1000 SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 194 out of 1000 SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 195 out of 1000 SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(1) GROUP BY toNullable('test_cluster_two_shards') Error on processing query 'SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(1) GROUP BY toNullable('test_cluster_two_shards')': Received from localhost:9000. DB::Exception: Column default.tab__fuzz_0.pattern is not under aggregate function and not in GROUP BY keys. In query SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(1) GROUP BY toNullable('test_cluster_two_shards'). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033593a48 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 196 out of 1000 SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 197 out of 1000 SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12)) FROM tab__fuzz_3 PREWHERE id = 1 Error on processing query 'SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12)) FROM tab__fuzz_3 PREWHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12)) FROM tab__fuzz_3 PREWHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 198 out of 1000 SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = toUInt256(materialize(toUInt128(1))) Error on processing query 'SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = toUInt256(materialize(toUInt128(1)))': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT 2, countSubstringsCaseInsensitive('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = toUInt256(materialize(toUInt128(1))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 199 out of 1000 SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = toUInt256(materialize(1)) Got boring AST Fuzzing step 200 out of 1000 SELECT 2, countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 201 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 202 out of 1000 SELECT countSubstringsCaseInsensitive(pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = materialize(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = materialize(1)': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitive(pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 203 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 204 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12))), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12))), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12))), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 205 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = materialize(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = materialize(1)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 206 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 PREWHERE id = toNullable(toUInt256(1)) WHERE id = materialize(1) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 PREWHERE id = toNullable(toUInt256(1)) WHERE id = materialize(1)': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 207 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = materialize(1) Got boring AST Fuzzing step 208 out of 1000 SELECT countSubstringsCaseInsensitive(materialize(toUInt128(2)), toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = materialize(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(materialize(toUInt128(2)), toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = materialize(1)': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 4, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitive(materialize(toUInt128(2)), toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 209 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_2 PREWHERE equals(id, (and1 != and2) OR (or1 != or2), 1) WHERE id = materialize(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_2 PREWHERE equals(id, (and1 != and2) OR (or1 != or2), 1) WHERE id = materialize(1)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_2 PREWHERE equals(id, (and1 != and2) OR (or1 != or2), 1) WHERE id = materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 210 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = materialize(1) Got boring AST Fuzzing step 211 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = materialize(if((a >= 0) AND (c > 220), 1, toLowCardinality(0)), 1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = materialize(if((a >= 0) AND (c > 220), 1, toLowCardinality(0)), 1)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = materialize(if((a >= 0) AND (c > 220), 1, toLowCardinality(0)), 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 212 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_2 PREWHERE equals(1) WHERE id = materialize(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_2 PREWHERE equals(1) WHERE id = materialize(1)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_2 PREWHERE equals(1) WHERE id = materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 213 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = materialize(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = materialize(1)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 214 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE equals(materialize(1)) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE equals(materialize(1))': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE equals(materialize(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 215 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_0 PREWHERE equals(1) WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_0 PREWHERE equals(1) WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_0 PREWHERE equals(1) WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 216 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 217 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 218 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 219 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 220 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 221 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 222 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_1 PREWHERE id = toNullable(1) WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_1 PREWHERE id = toNullable(1) WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_1 PREWHERE id = toNullable(1) WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 223 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE equals(id, toUInt8(divide(toNullable(toLowCardinality(2))) % toLowCardinality(2)), 1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE equals(id, toUInt8(divide(toNullable(toLowCardinality(2))) % toLowCardinality(2)), 1)': Received from localhost:9000. DB::Exception: Number of arguments for function divide doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE equals(id, toUInt8(divide(toNullable(toLowCardinality(2))) % toLowCardinality(2)), 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 224 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 225 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 226 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_2 PREWHERE equals(id, (x1 AND x2) AND (toNullable(0) AND 1000 AND x3 AND x4), 1) WHERE id = materialize(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_2 PREWHERE equals(id, (x1 AND x2) AND (toNullable(0) AND 1000 AND x3 AND x4), 1) WHERE id = materialize(1)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_2 PREWHERE equals(id, (x1 AND x2) AND (toNullable(0) AND 1000 AND x3 AND x4), 1) WHERE id = materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 227 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 228 out of 1000 SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 229 out of 1000 SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 230 out of 1000 SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 Error on processing query 'SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 231 out of 1000 SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 Error on processing query 'SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 232 out of 1000 SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 Error on processing query 'SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 233 out of 1000 SELECT toNullable(1), countSubstringsCaseInsensitive(toFixedString(toFixedString(materialize(toLowCardinality('aaaxxxaa\0xxx')), 12), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 Error on processing query 'SELECT toNullable(1), countSubstringsCaseInsensitive(toFixedString(toFixedString(materialize(toLowCardinality('aaaxxxaa\0xxx')), 12), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1': Received from localhost:9000. DB::Exception: Function 'countSubstringsCaseInsensitive' doesn't support FixedString haystack argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dd62958 4. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000837d9c2 5. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d58bb 6. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 7. DB::IExecutableFunction::defaultImplementationForNulls(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b6008d9 8. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffbf4 9. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 10. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x000000003324d830 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x0000000033248983 13. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000003b82b8f7 14. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:0: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000003bdff695 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d2837e 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d111cc 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 234 out of 1000 SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 Error on processing query 'SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 235 out of 1000 SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 PREWHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 236 out of 1000 SELECT toUInt256(toNullable(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), toNullable(1))), toUInt128(0)), 1)), countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 PREWHERE id = 1 Error on processing query 'SELECT toUInt256(toNullable(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), toNullable(1))), toUInt128(0)), 1)), countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 PREWHERE id = 1': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt256(toNullable(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), toNullable(1))), toUInt128(0)), 1)), countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 PREWHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 237 out of 1000 SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 PREWHERE id = 1 Got boring AST Fuzzing step 238 out of 1000 SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 PREWHERE id = 1 Got boring AST Fuzzing step 239 out of 1000 SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 240 out of 1000 SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString(round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() RESPECT NULLS) * 100))) * 100), toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 PREWHERE equals(1) WHERE id = 1 Error on processing query 'SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString(round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() RESPECT NULLS) * 100))) * 100), toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 PREWHERE equals(1) WHERE id = 1': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString(round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(round((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() RESPECT NULLS) * 100))) * 100), toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 PREWHERE equals(1) WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 31. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 Fuzzing step 241 out of 1000 SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 242 out of 1000 SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 243 out of 1000 SELECT toUInt256(1), countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'SELECT toUInt256(1), countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT toUInt256(1), countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 244 out of 1000 SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT toUInt256(toNullable(1)), countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 245 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 246 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 247 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 248 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 249 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 250 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 251 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 252 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 253 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 254 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 255 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 256 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(materialize(0)) AND 1000 AND x3 AND x4, 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(materialize(0)) AND 1000 AND x3 AND x4, 12), pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x3' in scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(materialize(0)) AND 1000 AND x3 AND x4, 12), pattern) FROM tab__fuzz_2 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 257 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 258 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 259 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 260 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 261 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 262 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 263 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(materialize(toNullable('aaaxxxaa\0xxx')), 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(materialize(toNullable('aaaxxxaa\0xxx')), 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Function 'countSubstringsCaseInsensitive' doesn't support FixedString haystack argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dd62958 4. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000837d9c2 5. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d58bb 6. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 7. DB::IExecutableFunction::defaultImplementationForNulls(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b6008d9 8. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffbf4 9. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 10. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x000000003324d830 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x0000000033248983 13. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000003b82b8f7 14. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:0: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000003bdff695 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d2837e 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d111cc 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 264 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 265 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 266 out of 1000 EXPLAIN QUERY TREE dump_passes = true SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE dump_passes = true SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_1 WHERE id = 1': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "dump_passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 267 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 268 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 269 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 270 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE equals(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0), id, 1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE equals(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0), id, 1)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE equals(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0), id, 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 271 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = toUInt128(1) Query succeeded, using this AST as a start Fuzzing step 272 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 273 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE id = toUInt128(1) Query succeeded, using this AST as a start Fuzzing step 274 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE id = toUInt128(1) Got boring AST Fuzzing step 275 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = toUInt128(1) Query succeeded, using this AST as a start Fuzzing step 276 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = toUInt128(1) Got boring AST Fuzzing step 277 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 WHERE id = toUInt128(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 WHERE id = toUInt128(1)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 WHERE id = toUInt128(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 278 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(sum(if((b != 100) AND (c = toLowCardinality(toNullable(0))), toLowCardinality(toNullable(1)))), toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = toUInt128(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(sum(if((b != 100) AND (c = toLowCardinality(toNullable(0))), toLowCardinality(toNullable(1)))), toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = toUInt128(1)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT countSubstringsCaseInsensitive(toFixedString(sum(if((b != 100) AND (c = toLowCardinality(toNullable(0))), toLowCardinality(toNullable(1)))), toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = toUInt128(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 279 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE id = toUInt128(1) Query succeeded, using this AST as a start Fuzzing step 280 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE id = toUInt128(1) Query succeeded, using this AST as a start Fuzzing step 281 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_1 WHERE equals(toUInt256(1), id, toUInt128(1)) GROUP BY t__fuzz_18 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_1 WHERE equals(toUInt256(1), id, toUInt128(1)) GROUP BY t__fuzz_18': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_1 WHERE equals(toUInt256(1), id, toUInt128(1)) GROUP BY t__fuzz_18. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 282 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 WHERE id = toUInt128(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 WHERE id = toUInt128(1)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 WHERE id = toUInt128(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 283 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE id = toUInt128(1) Query succeeded, using this AST as a start Fuzzing step 284 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 285 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 286 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 287 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 288 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 289 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 290 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 291 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(12), pattern) FROM tab__fuzz_1 WHERE equals(id) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(12), pattern) FROM tab__fuzz_1 WHERE equals(id)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(12), pattern) FROM tab__fuzz_1 WHERE equals(id). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 292 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 293 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 294 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 295 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(12)), 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(12)), 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(12)), 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 296 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 297 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 298 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 299 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx')), 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx')), 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx')), 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 300 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toLowCardinality(toLowCardinality('aaaxxxaa\0xxx')), 12), 12), materialize(toLowCardinality(toUInt256(12)))), pattern) FROM tab__fuzz_2 WHERE equals(id, toNullable(toUInt128(2)), 1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toLowCardinality(toLowCardinality('aaaxxxaa\0xxx')), 12), 12), materialize(toLowCardinality(toUInt256(12)))), pattern) FROM tab__fuzz_2 WHERE equals(id, toNullable(toUInt128(2)), 1)': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toLowCardinality(toLowCardinality('aaaxxxaa\0xxx')), 12), 12), materialize(toLowCardinality(toUInt256(12)))), pattern) FROM tab__fuzz_2 WHERE equals(id, toNullable(toUInt128(2)), 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 301 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 302 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, 12)) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, 12)) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, 12)) FROM tab__fuzz_2 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 303 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 304 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 305 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_2 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 306 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(12), pattern) FROM tab__fuzz_1 PREWHERE if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0)) WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(12), pattern) FROM tab__fuzz_1 PREWHERE if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0)) WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(12), pattern) FROM tab__fuzz_1 PREWHERE if((b != toLowCardinality(100)) AND (c > 220), 1, toLowCardinality(0)) WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 307 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 308 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 309 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), materialize(12))), materialize(x1 OR x2 OR x3, toNullable(8)), pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), materialize(12))), materialize(x1 OR x2 OR x3, toNullable(8)), pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), materialize(12))), materialize(x1 OR x2 OR x3, toNullable(8)), pattern) FROM tab__fuzz_2 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 310 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_3 WHERE id = materialize(toNullable(1)) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_3 WHERE id = materialize(toNullable(1))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_3 WHERE id = materialize(toNullable(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 311 out of 1000 SELECT countSubstringsCaseInsensitive(greaterOrEquals(a) AND (b != materialize(materialize(100))) AND (c > 220), toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(greaterOrEquals(a) AND (b != materialize(materialize(100))) AND (c > 220), toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT countSubstringsCaseInsensitive(greaterOrEquals(a) AND (b != materialize(materialize(100))) AND (c > 220), toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 312 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), toNullable(12))), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), toNullable(12))), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), toNullable(12))), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 313 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_0 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_0 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_0 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 314 out of 1000 EXPLAIN PIPELINE compact = true SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 315 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), toUInt256(12)), 12), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), toUInt256(12)), 12), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), toUInt256(12)), 12), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 316 out of 1000 SELECT (r1 * 100) / (r1 + r2), countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Error on processing query 'SELECT (r1 * 100) / (r1 + r2), countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_1 WHERE id = 1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'r1' in scope SELECT (r1 * 100) / (r1 + r2), countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 317 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 318 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 319 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 320 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 321 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 322 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 323 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 324 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 325 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 326 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 327 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 328 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_0 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_0 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 329 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(toLowCardinality(1)) WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(toLowCardinality(1)) WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(toLowCardinality(1)) WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 330 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_1 WHERE id = toUInt256(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_1 WHERE id = toUInt256(1)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_1 WHERE id = toUInt256(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 331 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 332 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 333 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 334 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 335 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 336 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 337 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 338 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 339 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE equals(id) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE equals(id)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE equals(id). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 340 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 341 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 342 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 343 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 344 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 345 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 346 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 347 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 348 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 349 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 350 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 351 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 352 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 353 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 354 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 356 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 357 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 358 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 359 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 360 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 361 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 362 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE id = toUInt128(1) Query succeeded, using this AST as a start Fuzzing step 363 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = toUInt128(1) Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = toUInt128(1)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = toUInt128(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 364 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(12)), 12), pattern) FROM tab__fuzz_0 WHERE id = toUInt128(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(12)), 12), pattern) FROM tab__fuzz_0 WHERE id = toUInt128(1)': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(12)), 12), pattern) FROM tab__fuzz_0 WHERE id = toUInt128(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 365 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE id = toUInt128(1) Got boring AST Fuzzing step 366 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 WHERE id = toUInt128(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 WHERE id = toUInt128(1)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 WHERE id = toUInt128(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 367 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = toUInt128(1) Query succeeded, using this AST as a start Fuzzing step 368 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE id = toUInt128(1) Query succeeded, using this AST as a start Fuzzing step 369 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 370 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 371 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, materialize(12)), pattern) FROM tab__fuzz_1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, materialize(12)), pattern) FROM tab__fuzz_1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, materialize(12)), pattern) FROM tab__fuzz_1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 372 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 373 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString((x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4), toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString((x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4), toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT countSubstringsCaseInsensitive(toFixedString((x1 AND x2) AND (0 AND toLowCardinality(1000) AND x3 AND x4), toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 374 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 375 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 376 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 377 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 378 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 379 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 380 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 381 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 382 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 383 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 384 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 385 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 386 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 387 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 388 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 389 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 390 out of 1000 SELECT 'aaaxxxaa\0xxx', countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 WHERE equals(id, toLowCardinality(toNullable(2)), 1) Error on processing query 'SELECT 'aaaxxxaa\0xxx', countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 WHERE equals(id, toLowCardinality(toNullable(2)), 1)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT 'aaaxxxaa\0xxx', countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 WHERE equals(id, toLowCardinality(toNullable(2)), 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 391 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 WHERE id = toUInt128(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 WHERE id = toUInt128(1)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 WHERE id = toUInt128(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 392 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE equals(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), id, 1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE equals(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), id, 1)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE equals(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), id, 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 393 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt128(12)), pattern) FROM tab__fuzz_1 WHERE id = toUInt128(1) Query succeeded, using this AST as a start Fuzzing step 394 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, toUInt128(12)), pattern) FROM tab__fuzz_1 WHERE id = toUInt128(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, toUInt128(12)), pattern) FROM tab__fuzz_1 WHERE id = toUInt128(1)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, toUInt128(12)), pattern) FROM tab__fuzz_1 WHERE id = toUInt128(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 395 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, toUInt128(12)), pattern) FROM tab__fuzz_1 WHERE id = toUInt128(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, toUInt128(12)), pattern) FROM tab__fuzz_1 WHERE id = toUInt128(1)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, toUInt128(12)), pattern) FROM tab__fuzz_1 WHERE id = toUInt128(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 396 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt128(12)), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt128(12)), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt128(12)), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt128(12)), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 398 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 399 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 400 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 401 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 402 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 403 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 404 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 405 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 406 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), id = 1, 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), id = 1, 12), pattern) FROM tab__fuzz_0 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), id = 1, 12), pattern) FROM tab__fuzz_0 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 407 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), toNullable(12)), pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 408 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 409 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_3 WHERE id = 1 GROUP BY x6 OR x7, intDiv(toUInt32(rtime)) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_3 WHERE id = 1 GROUP BY x6 OR x7, intDiv(toUInt32(rtime))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_3 WHERE id = 1 GROUP BY x6 OR x7, intDiv(toUInt32(rtime)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 410 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 411 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 412 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12)), pattern) FROM tab__fuzz_0 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12)), pattern) FROM tab__fuzz_0 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12)), pattern) FROM tab__fuzz_0 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 413 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 414 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 415 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 416 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 417 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 418 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 419 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 420 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 421 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 422 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), pattern) FROM tab__fuzz_2 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 423 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 424 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12)), pattern) FROM tab__fuzz_0 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12)), pattern) FROM tab__fuzz_0 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12)), pattern) FROM tab__fuzz_0 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 425 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 426 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 427 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 428 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 429 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 430 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 431 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 432 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 433 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(materialize(toLowCardinality(2)), 'aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(materialize(toLowCardinality(2)), 'aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(materialize(toLowCardinality(2)), 'aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 434 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE id = toLowCardinality(1) Query succeeded, using this AST as a start Fuzzing step 435 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 436 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 437 out of 1000 SELECT (number / materialize(toUInt128(2))) % 2, countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'SELECT (number / materialize(toUInt128(2))) % 2, countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT (number / materialize(toUInt128(2))) % 2, countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 438 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 439 out of 1000 SELECT (a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 WHERE id = 1 Error on processing query 'SELECT (a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 WHERE id = 1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT (a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 440 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 441 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 442 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 443 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 444 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 445 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 446 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 447 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 448 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 449 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 450 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toLowCardinality(12)), materialize(12)), pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toLowCardinality(12)), materialize(12)), pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toLowCardinality(12)), materialize(12)), pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 451 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 452 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 453 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), toNullable(12)), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), toNullable(12)), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), toNullable(12)), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 454 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 455 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 456 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, 12), pattern) FROM tab__fuzz_2 PREWHERE equals(toUInt128(toLowCardinality(1)), id, 1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, 12), pattern) FROM tab__fuzz_2 PREWHERE equals(toUInt128(toLowCardinality(1)), id, 1)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, 12), pattern) FROM tab__fuzz_2 PREWHERE equals(toUInt128(toLowCardinality(1)), id, 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 457 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), 12), pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 458 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 459 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 460 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 461 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 462 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 463 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 464 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 465 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 466 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 467 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 468 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12), pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 469 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, materialize(12)), 12), pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, materialize(12)), 12), pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, materialize(12)), 12), pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 470 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality(23), toNullable('aaaxxxaa\0xxx'), 12, 12), 12), pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality(23), toNullable('aaaxxxaa\0xxx'), 12, 12), 12), pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 4, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toLowCardinality(23), toNullable('aaaxxxaa\0xxx'), 12, 12), 12), pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 471 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 472 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 473 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 474 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 475 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 476 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 477 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 478 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 479 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 480 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 481 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 482 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 4, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 483 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 484 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 485 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 486 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 487 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 488 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 489 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 490 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 491 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 492 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 493 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 494 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 495 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 496 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 497 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 498 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 499 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 500 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 501 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 502 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 503 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 504 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 505 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), materialize(toLowCardinality(12))), 12), 12, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), materialize(toLowCardinality(12))), 12), 12, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), materialize(toLowCardinality(12))), 12), 12, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 506 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 507 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 508 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 509 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 510 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 511 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 512 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 513 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 514 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 515 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 516 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 517 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 518 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 519 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 520 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 521 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 522 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 523 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 524 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 525 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 526 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 527 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 528 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 529 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 530 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 531 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 532 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 533 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 534 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 535 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 536 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 537 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 538 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 539 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 540 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 541 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 542 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 543 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 544 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 545 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 546 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 547 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 548 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 549 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 550 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 551 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 552 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 553 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 554 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 555 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 556 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 557 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 558 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 559 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 560 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 561 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 562 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 563 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 564 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_1 PREWHERE equals(1) WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_1 PREWHERE equals(1) WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_1 PREWHERE equals(1) WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 565 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 566 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 567 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 568 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), toLowCardinality(12), pattern) FROM tab__fuzz_2 PREWHERE equals(cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), 23, currentDatabase(), t), id, 1) WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), toLowCardinality(12), pattern) FROM tab__fuzz_2 PREWHERE equals(cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), 23, currentDatabase(), t), id, 1) WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), toLowCardinality(12), pattern) FROM tab__fuzz_2 PREWHERE equals(cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), 23, currentDatabase(), t), id, 1) WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 569 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 570 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 571 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 572 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 573 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 574 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 575 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 576 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 577 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 578 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 579 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 580 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 581 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 582 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 583 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 584 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 585 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 586 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 587 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 588 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 589 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 590 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 591 out of 1000 SELECT (a >= toUInt256(toNullable(toNullable(1)))) AND 1, countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = toLowCardinality(1) Error on processing query 'SELECT (a >= toUInt256(toNullable(toNullable(1)))) AND 1, countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = toLowCardinality(1)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT (a >= toUInt256(toNullable(toNullable(1)))) AND 1, countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = toLowCardinality(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 592 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 593 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 594 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 595 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 596 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 597 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 598 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 599 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 600 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 601 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 602 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 603 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 604 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 605 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 606 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 607 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 608 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 609 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 610 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 611 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 612 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 613 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 614 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 615 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 616 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 617 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 618 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 619 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 620 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 621 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 622 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 623 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 624 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 625 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 626 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 627 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 628 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 629 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 630 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 631 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 632 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 633 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 634 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 635 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 636 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 637 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 638 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 639 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 640 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 641 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 642 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 643 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 644 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 645 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 646 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 647 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 648 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 649 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 650 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 651 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 652 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 653 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 654 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 655 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 656 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 657 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 658 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 659 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 660 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 661 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 662 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 663 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 664 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 665 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 666 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 667 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 668 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 669 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 670 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 671 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 672 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 673 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 674 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 675 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 676 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 677 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 678 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 679 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 680 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 681 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 682 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 683 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 684 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 685 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 686 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 687 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 688 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 689 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 690 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 691 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 692 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 693 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 694 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 695 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 696 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 697 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 698 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 699 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 700 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 701 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 702 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 703 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 704 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 705 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 706 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_2 PREWHERE equals(id, sum(multiIf(s IN ('a', 'b'), toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1), toUInt128(0))) IGNORE NULLS, 1) WHERE id = toUInt128(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_2 PREWHERE equals(id, sum(multiIf(s IN ('a', 'b'), toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1), toUInt128(0))) IGNORE NULLS, 1) WHERE id = toUInt128(1)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_2 PREWHERE equals(id, sum(multiIf(s IN ('a', 'b'), toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1), toUInt128(0))) IGNORE NULLS, 1) WHERE id = toUInt128(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 707 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 708 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 709 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 710 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 711 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 712 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 713 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 714 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 715 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 716 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 717 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 718 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 719 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 720 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 721 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 722 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 723 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 724 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 725 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 726 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 727 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 728 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 729 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 730 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 731 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 732 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 733 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 734 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 735 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 736 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 737 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 738 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 739 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 740 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 741 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 742 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 743 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 744 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 745 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 746 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 747 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 748 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 749 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 750 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 751 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 752 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 753 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 754 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 755 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 756 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 757 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 758 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 759 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 760 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 761 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 762 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 763 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 764 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 765 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 766 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 767 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 768 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 769 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 770 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 771 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 772 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 773 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 774 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 775 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 776 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 777 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 778 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 779 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 780 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 781 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 782 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 783 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 784 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 785 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 786 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 787 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 788 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 789 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 790 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 791 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 792 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 793 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 794 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 795 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 796 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 797 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 798 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 799 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 800 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 801 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 802 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 803 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 804 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 805 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 806 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 807 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), 12, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 808 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 809 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 810 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 811 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 812 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 813 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 814 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 815 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 816 out of 1000 SELECT tab__fuzz_43, countSubstringsCaseInsensitive(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT tab__fuzz_43, countSubstringsCaseInsensitive(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Unknown expression identifier 'tab__fuzz_43' in scope SELECT tab__fuzz_43, countSubstringsCaseInsensitive(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 817 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 818 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 819 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 820 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 821 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 822 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 823 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 824 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 4, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 825 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 826 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 827 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 828 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 829 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, 12, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, 12, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 4, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, 12, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 830 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 831 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 832 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 833 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 834 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 835 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 836 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 837 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 838 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 839 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 840 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 841 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 842 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 843 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 844 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 845 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 846 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 847 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 848 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 849 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 850 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 851 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 852 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 853 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 854 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 855 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 856 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 857 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 858 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 859 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 860 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 861 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 862 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 863 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 864 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 865 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 866 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 867 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 868 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 869 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 870 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 871 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 872 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 873 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 874 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 875 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 876 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 877 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(if(1 AND (c > 220), toUInt256(1), 0), toFixedString(toNullable('aaaxxxaa\0xxx'), materialize(12)), 12), 12, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(if(1 AND (c > 220), toUInt256(1), 0), toFixedString(toNullable('aaaxxxaa\0xxx'), materialize(12)), 12), 12, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT countSubstringsCaseInsensitive(toFixedString(if(1 AND (c > 220), toUInt256(1), 0), toFixedString(toNullable('aaaxxxaa\0xxx'), materialize(12)), 12), 12, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 878 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 879 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 880 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 881 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 882 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 883 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 884 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), toNullable(12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), toNullable(12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), toNullable(12), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 885 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 886 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 887 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 888 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 889 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 890 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 891 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 892 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 893 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 894 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 895 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 896 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 897 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 898 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 899 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 900 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 901 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 902 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 903 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 904 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 905 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 906 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 907 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 908 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 909 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 910 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 911 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 912 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 913 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 914 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 915 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 916 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 917 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 918 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 919 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 920 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 921 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 922 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 923 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 924 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 925 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 926 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 927 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 928 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 929 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 930 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 931 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 932 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 933 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 934 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 935 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 936 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 937 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 938 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 939 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 940 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 941 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 942 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 943 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 944 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 945 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 946 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 947 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 948 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 949 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 950 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 951 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 952 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 953 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 954 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 955 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 956 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 957 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 958 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 959 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 960 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 961 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 962 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 963 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 964 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 965 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 966 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 967 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 968 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 969 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 970 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 971 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 972 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 973 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 974 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 975 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 976 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 977 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 978 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 979 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 980 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: While processing countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE (id = 1) AND (id = 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 981 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 982 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 983 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 984 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 985 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 986 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 987 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), materialize(12)), 12, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), materialize(12)), 12, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), materialize(12)), 12, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 988 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 989 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 990 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 991 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 992 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 993 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 994 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 995 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 996 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 997 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 998 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 999 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), 12, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 2 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 3 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 4 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 5 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 6 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 7 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 8 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 9 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 10 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 11 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 12 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 13 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 14 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 15 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 16 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 17 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 18 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 19 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 20 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 21 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 22 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 23 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 24 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 25 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 26 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 27 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 28 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 29 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 30 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 31 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 32 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 33 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 34 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 35 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 36 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 37 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 38 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 39 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 40 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 41 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 42 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 PREWHERE round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * materialize(100)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 PREWHERE round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * materialize(100))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 PREWHERE round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * materialize(100)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 43 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 44 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 45 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 46 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 47 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 48 out of 1000 SELECT toUInt8(divide(materialize(toUInt256(toNullable(1))), number, toLowCardinality(8)) % toLowCardinality(2)), countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Error on processing query 'SELECT toUInt8(divide(materialize(toUInt256(toNullable(1))), number, toLowCardinality(8)) % toLowCardinality(2)), countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT toUInt8(divide(materialize(toUInt256(toNullable(1))), number, toLowCardinality(8)) % toLowCardinality(2)), countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 49 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 50 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toFixedString('aaaxxxaa\0xxx', 12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toFixedString('aaaxxxaa\0xxx', 12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toFixedString('aaaxxxaa\0xxx', 12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 51 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 52 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 53 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 54 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 55 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 56 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 57 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 58 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 59 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 60 out of 1000 SELECT toUInt8((number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(materialize(2))), countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Error on processing query 'SELECT toUInt8((number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(materialize(2))), countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT toUInt8((number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(materialize(2))), countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 61 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 GROUP BY (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 GROUP BY (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 GROUP BY (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 62 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 63 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 64 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 65 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 66 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 68 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE (number / toNullable(8)) % toUInt128(materialize(2)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE (number / toNullable(8)) % toUInt128(materialize(2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 WHERE (number / toNullable(8)) % toUInt128(materialize(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 69 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), 'aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), 'aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt64 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), 'aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f0c7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 70 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 71 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 73 out of 1000 EXPLAIN PIPELINE compact = true SELECT 3, countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 3, countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 74 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toNullable('aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 75 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toNullable('aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_2 WHERE multiIf(s IN ('a', 'b'), toUInt128(1), 0) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toNullable('aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_2 WHERE multiIf(s IN ('a', 'b'), toUInt128(1), 0)': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toNullable('aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_2 WHERE multiIf(s IN ('a', 'b'), toUInt128(1), 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 76 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 77 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 78 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 79 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toNullable('aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 80 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toNullable('aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_1 PREWHERE tab__fuzz_8 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toNullable('aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_1 PREWHERE tab__fuzz_8': Received from localhost:9000. DB::Exception: Unknown expression identifier 'tab__fuzz_8' in scope SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toNullable('aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_1 PREWHERE tab__fuzz_8. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 81 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toNullable('aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_0 WHERE b != 100 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toNullable('aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_0 WHERE b != 100': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toNullable('aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_0 WHERE b != 100. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 82 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toNullable('aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 83 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toNullable('aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_2 PREWHERE toLowCardinality(toFixedString('test_cluster_two_shards', 23)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_2 PREWHERE toLowCardinality(toFixedString('test_cluster_two_shards', 23))': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: LowCardinality(FixedString(23)). In query SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_2 PREWHERE toLowCardinality(toFixedString('test_cluster_two_shards', 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 85 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toNullable('aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 86 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 87 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 88 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 89 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 90 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 91 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 92 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(sum(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0)), toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(sum(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0)), toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(sum(if(greaterOrEquals(0) AND (b != 100) AND (c > 220), 1, 0)), toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 23. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 93 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 94 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 96 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 97 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 98 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 99 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 100 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 101 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 102 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 103 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 105 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 106 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 107 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 108 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 109 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 110 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 111 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 112 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 113 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 114 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 115 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 116 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 117 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 118 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 119 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 120 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 121 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 122 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 123 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 124 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 125 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 126 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 127 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 128 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 129 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 130 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 131 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 132 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 133 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 134 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 135 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 136 out of 1000 EXPLAIN sorting = true SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx') FROM tab__fuzz_1 Error on processing query 'EXPLAIN sorting = true SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx') FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "sorting" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496cdff 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 137 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 138 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 139 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 141 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 142 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 143 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 144 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 145 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23), currentDatabase(), t), 'aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23), currentDatabase(), t), 'aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT countSubstringsCaseInsensitiveUTF8(cluster(toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23), currentDatabase(), t), 'aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 146 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 147 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 148 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 149 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 150 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(r1 + r2, 'aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(r1 + r2, 'aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'r1' in scope SELECT countSubstringsCaseInsensitiveUTF8(r1 + r2, 'aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 151 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 152 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 153 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 154 out of 1000 SELECT (b != 100) AND (c = toNullable(0)), countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Error on processing query 'SELECT (b != 100) AND (c = toNullable(0)), countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT (b != 100) AND (c = toNullable(0)), countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 155 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 156 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 157 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 158 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 159 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 160 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 161 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 162 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 163 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 165 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 166 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_1 PREWHERE (b != 100) AND (c = toNullable(0)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_1 PREWHERE (b != 100) AND (c = toNullable(0))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_1 PREWHERE (b != 100) AND (c = toNullable(0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 167 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 168 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 169 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 170 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(materialize(toFixedString('aaaxxxaa\0xxx', 12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(materialize(toFixedString('aaaxxxaa\0xxx', 12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(materialize(toFixedString('aaaxxxaa\0xxx', 12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 171 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 PREWHERE if((a >= 0) AND 1 AND (c > 220), 1, 0) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 PREWHERE if((a >= 0) AND 1 AND (c > 220), 1, 0)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 PREWHERE if((a >= 0) AND 1 AND (c > 220), 1, 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 172 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 173 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 174 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 175 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 176 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 177 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 178 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 179 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toFixedString('aaaxxxaa\0xxx', 12)), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 180 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toFixedString('aaaxxxaa\0xxx', 12)), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 181 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 182 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 183 out of 1000 SELECT materialize(toNullable(toNullable(23))), countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12) FROM tab__fuzz_0 Error on processing query 'SELECT materialize(toNullable(toNullable(23))), countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT materialize(toNullable(toNullable(23))), countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 184 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 185 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 186 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 187 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 189 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable(23), toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toNullable(23), toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toNullable(23), toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f0c7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 190 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 191 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 192 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 193 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 194 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 195 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 196 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 197 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 198 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_1 GROUP BY toNullable(materialize(toFixedString('OK', 2))) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_1 GROUP BY toNullable(materialize(toFixedString('OK', 2)))': Received from localhost:9000. DB::Exception: Column default.tab__fuzz_1.pattern is not under aggregate function and not in GROUP BY keys. In query SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_1 GROUP BY toNullable(materialize(toFixedString('OK', 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033593a48 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 199 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 200 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 201 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 202 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(test_alias__fuzz_20, 'aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(test_alias__fuzz_20, 'aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_20' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(test_alias__fuzz_20, 'aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 203 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(materialize(toNullable(12)))), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(materialize(toNullable(12)))), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(materialize(toNullable(12)))), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 23. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 24. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 204 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toNullable(12), pattern) FROM tab__fuzz_2 PREWHERE toLowCardinality(220) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toNullable(12), pattern) FROM tab__fuzz_2 PREWHERE toLowCardinality(220)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toNullable(12), pattern) FROM tab__fuzz_2 PREWHERE toLowCardinality(220). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 205 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 206 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 207 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toNullable(12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toNullable(12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toNullable(12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 208 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 209 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 210 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 211 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 212 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 213 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 214 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 215 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 0, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 0, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 0, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 216 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 217 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 218 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 219 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 220 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 221 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 222 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 223 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 224 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 225 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 WHERE toFixedString(toLowCardinality(toLowCardinality(23)), materialize(23)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 WHERE toFixedString(toLowCardinality(toLowCardinality(23)), materialize(23))': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 WHERE toFixedString(toLowCardinality(toLowCardinality(23)), materialize(23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 226 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 227 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 228 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 229 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 230 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 231 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 232 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 233 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 234 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 235 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 236 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 237 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 238 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 239 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 240 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 241 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 242 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 243 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 244 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 245 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 246 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(materialize('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(materialize('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Function 'countSubstringsCaseInsensitiveUTF8' doesn't support FixedString haystack argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dd6cd50 4. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000837d9c2 5. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d58bb 6. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 7. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 8. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x000000003324d830 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x0000000033248983 11. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000003b82b8f7 12. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:0: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000003bdff695 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d2837e 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d111cc 15. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 16. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 247 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 248 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 249 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 250 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 251 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 252 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 253 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 254 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 255 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 256 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 257 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', materialize(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', materialize(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', materialize(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 258 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 259 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 260 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 261 out of 1000 EXPLAIN PIPELINE header = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN PIPELINE header = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 262 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 263 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(materialize(toFixedString('aaaxxxaa\0xxx', 12)), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(materialize(toFixedString('aaaxxxaa\0xxx', 12)), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Function 'countSubstringsCaseInsensitiveUTF8' doesn't support FixedString haystack argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dd6cd50 4. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000837d9c2 5. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d58bb 6. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 7. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 8. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x000000003324d830 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x0000000033248983 11. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000003b82b8f7 12. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:0: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000003bdff695 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d2837e 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d111cc 15. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 16. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 264 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 265 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 266 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 267 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 268 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 269 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toLowCardinality(toNullable(12)), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toLowCardinality(toNullable(12)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toLowCardinality(toNullable(12)), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 270 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 271 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 272 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 273 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 274 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 275 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 276 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 277 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 278 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 279 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 280 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 281 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 282 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 283 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 284 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 285 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 286 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 287 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toNullable(12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toNullable(12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toNullable(12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 288 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 289 out of 1000 EXPLAIN QUERY TREE dump_ast = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN QUERY TREE dump_ast = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "dump_ast" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 290 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 291 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toNullable(12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toNullable(12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toNullable(12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 292 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', Log, toNullable(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', Log, toNullable(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'Log' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', Log, toNullable(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 293 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_0 GROUP BY s, version_pair[materialize(1)], test_alias__fuzz_20, if(if((b != 100) AND (c > 220), 1, 0) AND (b != 100) AND (c = 0), toNullable(1), 0) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_0 GROUP BY s, version_pair[materialize(1)], test_alias__fuzz_20, if(if((b != 100) AND (c > 220), 1, 0) AND (b != 100) AND (c = 0), toNullable(1), 0)': Received from localhost:9000. DB::Exception: Unknown expression identifier 's' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_0 GROUP BY s, version_pair[materialize(1)], test_alias__fuzz_20, if(if((b != 100) AND (c > 220), 1, 0) AND (b != 100) AND (c = 0), toNullable(1), 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 294 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 295 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 296 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 297 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 GROUP BY x8, toUInt256(12), if((a >= 0) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0), greaterOrEquals(test_alias__fuzz_32, a, 0) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 GROUP BY x8, toUInt256(12), if((a >= 0) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0), greaterOrEquals(test_alias__fuzz_32, a, 0)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 GROUP BY x8, toUInt256(12), if((a >= 0) AND (c > 220), 1, toLowCardinality('test_cluster_two_shards'), 23, 0), greaterOrEquals(test_alias__fuzz_32, a, 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 298 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type FixedString(12) of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 299 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toNullable(12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toNullable(12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toNullable(12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 300 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 301 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 302 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 303 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 304 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 305 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 306 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 308 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 309 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 310 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 311 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 312 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 313 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 314 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE s WHERE toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE s WHERE toFixedString('test_cluster_two_shards', 23, toLowCardinality(23))': Received from localhost:9000. DB::Exception: Unknown expression identifier 's' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE s WHERE toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 315 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 316 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 317 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 318 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), ((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11)))), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), ((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11)))), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x2' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), ((x2 OR x3) OR (x4 OR x5)) OR ((x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11)))), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 319 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 320 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 321 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 322 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 323 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 324 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 325 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 326 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 327 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 328 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 329 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 330 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 331 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 332 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 333 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 334 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 335 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 336 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 337 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 338 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 339 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 340 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 341 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 342 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 343 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 344 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 345 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 346 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 347 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 348 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 349 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 350 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 351 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 352 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 353 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 354 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 356 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 357 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 358 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 359 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 360 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 361 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 362 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 363 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 364 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 365 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 366 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 367 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 368 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 369 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 370 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 371 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 372 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 373 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 374 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8((number / 2) % 2, toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8((number / 2) % 2, toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT countSubstringsCaseInsensitiveUTF8((number / 2) % 2, toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 375 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 377 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 378 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 379 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 380 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 381 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 382 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 383 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 384 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 385 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 386 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 387 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 388 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 389 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 390 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 391 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 392 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 393 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 394 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 395 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 396 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 398 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 399 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 400 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 401 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 402 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 403 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 404 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 405 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 406 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 407 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 408 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 409 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 410 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 411 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 412 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 413 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 414 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 415 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 416 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 417 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 418 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 419 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 420 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 421 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 422 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 423 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 424 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 425 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 426 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 427 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 428 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 429 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 430 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 431 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 432 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 433 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 434 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 435 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 436 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 437 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 438 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 439 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 440 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 441 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 442 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 443 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 444 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 445 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 446 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 447 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 448 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 449 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 PREWHERE materialize(toLowCardinality(1)) Query succeeded, using this AST as a start Fuzzing step 450 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 PREWHERE materialize(toLowCardinality(1)) Got boring AST Fuzzing step 451 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 452 out of 1000 SELECT sum(if(1, 0)) IGNORE NULLS, countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0 PREWHERE materialize(1) Error on processing query 'SELECT sum(if(1, 0)) IGNORE NULLS, countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0 PREWHERE materialize(1)': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope SELECT sum(if(1, 0)) IGNORE NULLS, countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0 PREWHERE materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 453 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(toUInt256(12))), pattern) FROM tab__fuzz_3 WHERE materialize(1) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(toUInt256(12))), pattern) FROM tab__fuzz_3 WHERE materialize(1)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(toUInt256(12))), pattern) FROM tab__fuzz_3 WHERE materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 454 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE materialize(1) Got boring AST Fuzzing step 455 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE materialize(1) Got boring AST Fuzzing step 456 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE materialize(1) Got boring AST Fuzzing step 457 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0 PREWHERE materialize(1) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0 PREWHERE materialize(1)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_0 PREWHERE materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 458 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', (b != toNullable(100)) AND toNullable(toUInt256(100)) AND (c = 0), 12), pattern) FROM tab__fuzz_3 PREWHERE materialize(1) WHERE round((sum(multiIf(((a >= 0) AND toLowCardinality(1)) IN (s), toUInt128(1), 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', (b != toNullable(100)) AND toNullable(toUInt256(100)) AND (c = 0), 12), pattern) FROM tab__fuzz_3 PREWHERE materialize(1) WHERE round((sum(multiIf(((a >= 0) AND toLowCardinality(1)) IN (s), toUInt128(1), 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', (b != toNullable(100)) AND toNullable(toUInt256(100)) AND (c = 0), 12), pattern) FROM tab__fuzz_3 PREWHERE materialize(1) WHERE round((sum(multiIf(((a >= 0) AND toLowCardinality(1)) IN (s), toUInt128(1), 0)) IGNORE NULLS / count(1) IGNORE NULLS) * 100). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 459 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE materialize(1) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE materialize(1)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 460 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 PREWHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 461 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 463 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE materialize(1) Got boring AST Fuzzing step 464 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_1 PREWHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 465 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_1 PREWHERE materialize(1) Got boring AST Fuzzing step 466 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_1 PREWHERE materialize(1) Got boring AST Fuzzing step 467 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_1 PREWHERE materialize(1) Got boring AST Fuzzing step 468 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_2 PREWHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 469 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_1 PREWHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 470 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 471 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 472 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 473 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 474 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 475 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 476 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 477 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 478 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toNullable(12))), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 479 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 480 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12)), pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12)), pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 481 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 482 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 483 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), toUInt8((number / toLowCardinality(8)) % 2), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), toUInt8((number / toLowCardinality(8)) % 2), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), toUInt8((number / toLowCardinality(8)) % 2), pattern) FROM tab__fuzz_2', required columns: 'number' 'pattern', maybe you meant: 'pattern': While processing SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), toUInt8((number / toLowCardinality(8)) % 2), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 484 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 486 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern), toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern), toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern), toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 487 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), toNullable(12)), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), toNullable(12)), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), toNullable(12)), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 488 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 489 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_2 WHERE modulo(number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_2 WHERE modulo(number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8))))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_2 WHERE modulo(number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 490 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 491 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 492 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_1 PREWHERE greaterOrEquals(a, nums__fuzz_45, 0) AND (b != toNullable(100)) AND (c = 0) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_1 PREWHERE greaterOrEquals(a, nums__fuzz_45, 0) AND (b != toNullable(100)) AND (c = 0)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_1 PREWHERE greaterOrEquals(a, nums__fuzz_45, 0) AND (b != toNullable(100)) AND (c = 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 493 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 494 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 495 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 496 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), toNullable(12)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 497 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), toNullable(12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), toNullable(12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), toNullable(12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 498 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), toNullable(12)), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 499 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), toNullable(12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), toNullable(12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), toNullable(12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 500 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 501 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 502 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 503 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 504 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 505 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 506 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 507 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 508 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 509 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 510 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 511 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 512 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 513 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 SELECT 256, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT 256, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 256, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 515 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 516 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), round((sum(multiIf(s IN ('a', 'b'), toLowCardinality(0))) IGNORE NULLS / count()) * 100), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), round((sum(multiIf(s IN ('a', 'b'), toLowCardinality(0))) IGNORE NULLS / count()) * 100), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), round((sum(multiIf(s IN ('a', 'b'), toLowCardinality(0))) IGNORE NULLS / count()) * 100), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 517 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 518 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 519 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(materialize('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(materialize('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Function 'countSubstringsCaseInsensitiveUTF8' doesn't support FixedString haystack argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dd6cd50 4. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000837d9c2 5. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d58bb 6. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 7. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 8. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x000000003324d830 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x0000000033248983 11. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000003b82b8f7 12. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:0: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000003bdff695 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d2837e 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d111cc 15. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 16. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 520 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 521 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 522 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 523 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 524 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 525 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 PREWHERE if((a >= 0) AND (b != materialize(100)) AND (c = 0), 1, 0) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 PREWHERE if((a >= 0) AND (b != materialize(100)) AND (c = 0), 1, 0)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 PREWHERE if((a >= 0) AND (b != materialize(100)) AND (c = 0), 1, 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 526 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 527 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 528 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 529 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 530 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 531 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 532 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 533 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 534 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 535 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 536 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 PREWHERE multiply(multiply(toNullable(materialize(test_alias__fuzz_9, materialize(1))), intDiv(toUInt32(rtime)), toNullable(20)), a, toUInt128(1000)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 PREWHERE multiply(multiply(toNullable(materialize(test_alias__fuzz_9, materialize(1))), intDiv(toUInt32(rtime)), toNullable(20)), a, toUInt128(1000))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_9' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 PREWHERE multiply(multiply(toNullable(materialize(test_alias__fuzz_9, materialize(1))), intDiv(toUInt32(rtime)), toNullable(20)), a, toUInt128(1000)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 537 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 538 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 539 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 540 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 541 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(1000) AND x3 AND x4, 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(1000) AND x3 AND x4, 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x3' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(1000) AND x3 AND x4, 12), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 542 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 543 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 544 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 545 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 546 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(materialize('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(materialize('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Function 'countSubstringsCaseInsensitiveUTF8' doesn't support FixedString haystack argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dd6cd50 4. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000837d9c2 5. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d58bb 6. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 7. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 8. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x000000003324d830 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x0000000033248983 11. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000003b82b8f7 12. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:0: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000003bdff695 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d2837e 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d111cc 15. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 16. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 547 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 548 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 PREWHERE intDiv(toUInt32(rtime), 20) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 PREWHERE intDiv(toUInt32(rtime), 20)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 PREWHERE intDiv(toUInt32(rtime), 20). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 549 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 550 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 551 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 552 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 GROUP BY (number / 2) % 2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 GROUP BY (number / 2) % 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 GROUP BY (number / 2) % 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 553 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 555 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 556 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 557 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 558 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 559 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 560 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 561 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 562 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 563 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 564 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 565 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 GROUP BY tab__fuzz_0, if((b != 100) AND (c = 0), materialize(toNullable(toUInt128(1))), 0) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 GROUP BY tab__fuzz_0, if((b != 100) AND (c = 0), materialize(toNullable(toUInt128(1))), 0)': Received from localhost:9000. DB::Exception: Unknown expression identifier 'tab__fuzz_0' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 GROUP BY tab__fuzz_0, if((b != 100) AND (c = 0), materialize(toNullable(toUInt128(1))), 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 566 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 567 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 568 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23), 23), currentDatabase(), t), 12)), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23), 23), currentDatabase(), t), 12)), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), toNullable(23), 23), currentDatabase(), t), 12)), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 569 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 570 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 571 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(toLowCardinality(23)), 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(toLowCardinality(23)), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(toLowCardinality(23)), 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 572 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 573 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 574 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 575 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 PREWHERE toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), id = 1, 12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 PREWHERE toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), id = 1, 12)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 PREWHERE toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), id = 1, 12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 576 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 PREWHERE toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(2))) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 PREWHERE toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(2)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 PREWHERE toUInt8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 577 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 578 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 579 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 580 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 581 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 582 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(materialize(toNullable('aaaxxxaa\0xxx')), 12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(materialize(toNullable('aaaxxxaa\0xxx')), 12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Function 'countSubstringsCaseInsensitiveUTF8' doesn't support FixedString haystack argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dd6cd50 4. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000837d9c2 5. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d58bb 6. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 7. DB::IExecutableFunction::defaultImplementationForNulls(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b6008d9 8. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffbf4 9. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 10. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x000000003324d830 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x0000000033248983 13. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000003b82b8f7 14. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:0: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000003bdff695 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d2837e 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d111cc 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 583 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 584 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 585 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 586 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 587 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 588 out of 1000 EXPLAIN optimize = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN optimize = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "optimize" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496cdff 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 589 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 590 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 591 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 592 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 593 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 594 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 595 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 596 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 597 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 598 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 599 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 600 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 601 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 602 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 603 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 604 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 605 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 606 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 607 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 608 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 609 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 610 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 611 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 612 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 613 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 614 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 615 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 616 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 617 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 618 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 619 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 620 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), toLowCardinality(12)), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 621 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), toLowCardinality(12)), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 622 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), toLowCardinality(12)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 623 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), toLowCardinality(12)), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 624 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), toLowCardinality(toNullable(12))), toLowCardinality(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), toLowCardinality(toNullable(12))), toLowCardinality(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), toLowCardinality(toNullable(12))), toLowCardinality(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 625 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable(toFixedString('aaaxxxaa\0xxx', 12)), 12)), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable(toFixedString('aaaxxxaa\0xxx', 12)), 12)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable(toFixedString('aaaxxxaa\0xxx', 12)), 12)), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 626 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(n, toFixedString(toNullable('aaaxxxaa\0xxx'), 12), toLowCardinality(12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(n, toFixedString(toNullable('aaaxxxaa\0xxx'), 12), toLowCardinality(12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'n' in scope SELECT countSubstringsCaseInsensitiveUTF8(n, toFixedString(toNullable('aaaxxxaa\0xxx'), 12), toLowCardinality(12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 627 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), toLowCardinality(12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), toLowCardinality(12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), toLowCardinality(12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 628 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 629 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_0 PREWHERE toFixedString('test_cluster_two_shards', toNullable(23)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_0 PREWHERE toFixedString('test_cluster_two_shards', toNullable(23))': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: Nullable(FixedString(23)). In query SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_0 PREWHERE toFixedString('test_cluster_two_shards', toNullable(23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 630 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 631 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 632 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 633 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 634 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 635 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 636 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable(toUInt256(23), 'aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable(toUInt256(23), 'aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable(toUInt256(23), 'aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 637 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 638 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 640 out of 1000 EXPLAIN QUERY TREE passes = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN QUERY TREE passes = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 641 out of 1000 EXPLAIN PIPELINE compact = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 642 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 643 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, toUInt256(12)), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, toUInt256(12)), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, toUInt256(12)), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 644 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12)) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12)) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12)) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 645 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 646 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(toUInt256(12))), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(toUInt256(12))), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(toUInt256(12))), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 647 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 648 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_3 GROUP BY toNullable(materialize(toNullable(toUInt256(toLowCardinality(materialize(toLowCardinality(1))), 1)))), (number / toUInt256(8)) % materialize(2), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_3 GROUP BY toNullable(materialize(toNullable(toUInt256(toLowCardinality(materialize(toLowCardinality(1))), 1)))), (number / toUInt256(8)) % materialize(2), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_3 GROUP BY toNullable(materialize(toNullable(toUInt256(toLowCardinality(materialize(toLowCardinality(1))), 1)))), (number / toUInt256(8)) % materialize(2), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 649 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 650 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 651 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 652 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 GROUP BY (b != toLowCardinality(100)) AND (c > toUInt256(220)), toUInt128(23) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 GROUP BY (b != toLowCardinality(100)) AND (c > toUInt256(220)), toUInt128(23)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 GROUP BY (b != toLowCardinality(100)) AND (c > toUInt256(220)), toUInt128(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 653 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 654 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 655 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 656 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 WHERE divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 WHERE divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 WHERE divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 657 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 658 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 659 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 660 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 661 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 663 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 664 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 665 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 666 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 667 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 668 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 669 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 670 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 671 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 672 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 673 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 674 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 675 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 676 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 678 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 679 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 680 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 681 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 682 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 683 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 684 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 685 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 686 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 688 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 689 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 690 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 691 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 692 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 693 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 694 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 695 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 696 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 697 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 698 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 699 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 700 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 701 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression identifier 'tab__fuzz_2' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 702 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 703 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(materialize('aaaxxxaa\0xxx'), toUInt256(12)), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(materialize('aaaxxxaa\0xxx'), toUInt256(12)), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Function 'countSubstringsCaseInsensitiveUTF8' doesn't support FixedString haystack argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dd6cd50 4. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000837d9c2 5. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d58bb 6. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 7. DB::IExecutableFunction::defaultImplementationForNulls(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b6008d9 8. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffbf4 9. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 10. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x000000003324d830 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x0000000033248983 13. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000003b82b8f7 14. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:0: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000003bdff695 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d2837e 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d111cc 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 704 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 705 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 GROUP BY toUInt256(2), round(materialize(toLowCardinality(' ')), multiply(sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS / count())) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 GROUP BY toUInt256(2), round(materialize(toLowCardinality(' ')), multiply(sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS / count()))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 GROUP BY toUInt256(2), round(materialize(toLowCardinality(' ')), multiply(sum(multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0))) IGNORE NULLS / count())). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 706 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 707 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 708 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 709 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 710 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 711 out of 1000 EXPLAIN PIPELINE compact = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 712 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 713 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 714 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 715 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 716 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 717 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 718 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 719 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 720 out of 1000 EXPLAIN PIPELINE compact = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 721 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 722 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 723 out of 1000 EXPLAIN PIPELINE compact = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 GROUP BY toUInt8((number / 64) % 2), sum(if(greaterOrEquals(a, toLowCardinality(toUInt256(23)), 0) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS Error on processing query 'EXPLAIN PIPELINE compact = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 GROUP BY toUInt8((number / 64) % 2), sum(if(greaterOrEquals(a, toLowCardinality(toUInt256(23)), 0) AND 1 AND (c > toUInt256(220)), toUInt256(1), 0)) IGNORE NULLS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 724 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), materialize(12)), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), materialize(12)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), materialize(12)), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 725 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), toNullable(23)), 23, 23), toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), toNullable(23)), 23, 23), toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23), toNullable(23)), 23, 23), toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 726 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 727 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 728 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 729 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 730 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 731 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 732 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 733 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 734 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 735 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 736 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 737 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 738 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 739 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 740 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 742 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 743 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 744 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 745 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 746 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 747 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 748 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 749 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 750 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 751 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 752 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), tab__fuzz_6, toNullable(12)), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), tab__fuzz_6, toNullable(12)), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'tab__fuzz_6' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), tab__fuzz_6, toNullable(12)), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 753 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 754 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 755 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 756 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 757 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 758 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 759 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 760 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt128(12)), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 761 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 762 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), toUInt128(12)), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 763 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), toUInt128(12)), 12), (number / toUInt256(8)) % materialize(2), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), toUInt128(12)), 12), (number / toUInt256(8)) % materialize(2), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), toUInt128(12)), 12), (number / toUInt256(8)) % materialize(2), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 764 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), toUInt128(12)), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 765 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), toUInt128(12)), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), toUInt128(12)), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), toUInt128(12)), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 766 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), toUInt128(12)), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 767 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), toUInt128(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 768 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt128(intDiv(toUInt32(rtime), 20) * 1000, 12)), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt128(intDiv(toUInt32(rtime), 20) * 1000, 12)), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt128(intDiv(toUInt32(rtime), 20) * 1000, 12)), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 769 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), toUInt128(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 770 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 771 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 772 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 773 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 774 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 GROUP BY toUInt8((number / 8) % toLowCardinality(2)), if((number / toUInt256(2)) % 2, (a >= 0) AND notEquals(b, (number / toNullable(2)) % 2, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), 1, 0), toUInt8(divide(materialize(materialize(1)), number, 1024) % 2), tab__fuzz_6, cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23), 23), currentDatabase(), t) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 GROUP BY toUInt8((number / 8) % toLowCardinality(2)), if((number / toUInt256(2)) % 2, (a >= 0) AND notEquals(b, (number / toNullable(2)) % 2, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), 1, 0), toUInt8(divide(materialize(materialize(1)), number, 1024) % 2), tab__fuzz_6, cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23), 23), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 GROUP BY toUInt8((number / 8) % toLowCardinality(2)), if((number / toUInt256(2)) % 2, (a >= 0) AND notEquals(b, (number / toNullable(2)) % 2, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), 1, 0), toUInt8(divide(materialize(materialize(1)), number, 1024) % 2), tab__fuzz_6, cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23), 23), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 775 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 776 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 777 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 778 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 779 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 780 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 781 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 782 out of 1000 SELECT number / toLowCardinality(8), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT number / toLowCardinality(8), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT number / toLowCardinality(8), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 783 out of 1000 SELECT if((a >= 0) AND (b != 100) AND (c > 220), 1, materialize(0)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT if((a >= 0) AND (b != 100) AND (c > 220), 1, materialize(0)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT if((a >= 0) AND (b != 100) AND (c > 220), 1, materialize(0)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 784 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 785 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 786 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 787 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 788 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 789 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(materialize(toUInt256(23)))), 220)), 1, 0)), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(materialize(toUInt256(23)))), 220)), 1, 0)), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(materialize(toUInt256(23)))), 220)), 1, 0)), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 790 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 791 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 792 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 793 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 794 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 795 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 796 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 797 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 798 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(modulo(multiply(toNullable(materialize(test_alias__fuzz_9, materialize(1))), intDiv(toUInt32(rtime), 20), toNullable(20)), number, 2), 'aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(modulo(multiply(toNullable(materialize(test_alias__fuzz_9, materialize(1))), intDiv(toUInt32(rtime), 20), toNullable(20)), number, 2), 'aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_9' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(modulo(multiply(toNullable(materialize(test_alias__fuzz_9, materialize(1))), intDiv(toUInt32(rtime), 20), toNullable(20)), number, 2), 'aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 799 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 800 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE toLowCardinality(toNullable(12)) Query succeeded, using this AST as a start Fuzzing step 801 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE toLowCardinality(toNullable(12)) Got boring AST Fuzzing step 802 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(toNullable(12)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(toNullable(12))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(toNullable(12)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 803 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_0 WHERE toLowCardinality(12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_0 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_0 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 804 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE toLowCardinality(toNullable(12)) Got boring AST Fuzzing step 805 out of 1000 EXPLAIN PIPELINE header = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 WHERE toLowCardinality(toNullable(toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), 12)) Error on processing query 'EXPLAIN PIPELINE header = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 WHERE toLowCardinality(toNullable(toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), 12))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 806 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE toLowCardinality(toNullable(12)) Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE toLowCardinality(toNullable(12))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 WHERE toLowCardinality(toNullable(12)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 807 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE toLowCardinality(toNullable(12)) Got boring AST Fuzzing step 808 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 WHERE toLowCardinality(toNullable(12)) Got boring AST Fuzzing step 809 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_0 WHERE toLowCardinality(toNullable(12)) Query succeeded, using this AST as a start Fuzzing step 810 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(toNullable(12)) Query succeeded, using this AST as a start Fuzzing step 811 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), 12), 12), pattern) FROM tab__fuzz_2 WHERE toLowCardinality(toNullable(12)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), 12), 12), pattern) FROM tab__fuzz_2 WHERE toLowCardinality(toNullable(12))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), 12), 12), pattern) FROM tab__fuzz_2 WHERE toLowCardinality(toNullable(12)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 812 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), materialize(220), pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), materialize(220), pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), materialize(220), pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 813 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12)) FROM tab__fuzz_1 WHERE toLowCardinality(toNullable(12)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12)) FROM tab__fuzz_1 WHERE toLowCardinality(toNullable(12))': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12)) FROM tab__fuzz_1 WHERE toLowCardinality(toNullable(12)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 814 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Query succeeded, using this AST as a start Fuzzing step 815 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), toLowCardinality(12)), 12), pattern) FROM tab__fuzz_1 PREWHERE toLowCardinality(12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), toLowCardinality(12)), 12), pattern) FROM tab__fuzz_1 PREWHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), toLowCardinality(12)), 12), pattern) FROM tab__fuzz_1 PREWHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 816 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Query succeeded, using this AST as a start Fuzzing step 817 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Query succeeded, using this AST as a start Fuzzing step 818 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Got boring AST Fuzzing step 819 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Query succeeded, using this AST as a start Fuzzing step 820 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE t. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 821 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Got boring AST Fuzzing step 822 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Query succeeded, using this AST as a start Fuzzing step 823 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Query succeeded, using this AST as a start Fuzzing step 824 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Query succeeded, using this AST as a start Fuzzing step 825 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Query succeeded, using this AST as a start Fuzzing step 826 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Got boring AST Fuzzing step 827 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Got boring AST Fuzzing step 828 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Got boring AST Fuzzing step 829 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Query succeeded, using this AST as a start Fuzzing step 830 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Got boring AST Fuzzing step 831 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Got boring AST Fuzzing step 832 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE t. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 833 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Query succeeded, using this AST as a start Fuzzing step 834 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Got boring AST Fuzzing step 835 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Got boring AST Fuzzing step 836 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Got boring AST Fuzzing step 837 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Got boring AST Fuzzing step 838 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Query succeeded, using this AST as a start Fuzzing step 839 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12) Query succeeded, using this AST as a start Fuzzing step 840 out of 1000 EXPLAIN PIPELINE compact = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 841 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12, pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12, pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12, pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 842 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12, 12), pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12, 12), pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12, 12), pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 843 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 844 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12) Got boring AST Fuzzing step 845 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), 12), 12), pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), 12), 12), pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), 12), 12), pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 846 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12) Got boring AST Fuzzing step 847 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Query succeeded, using this AST as a start Fuzzing step 848 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Got boring AST Fuzzing step 849 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(0), toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(0), toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(0), toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 850 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), 12), 12), pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), 12), 12), pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), 12), 12), pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 851 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12), pattern) FROM tab__fuzz_0 WHERE toLowCardinality(12) Query succeeded, using this AST as a start Fuzzing step 852 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12, pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12, pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), 12, pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 853 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_0 WHERE toLowCardinality(12) Query succeeded, using this AST as a start Fuzzing step 854 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 855 out of 1000 SELECT sum(toLowCardinality(23), if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toLowCardinality(23), materialize(toNullable(toUInt256(23))), toNullable(100)) AND (c = 0), 1, 0)) RESPECT NULLS, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_0 WHERE toLowCardinality(12) Error on processing query 'SELECT sum(toLowCardinality(23), if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toLowCardinality(23), materialize(toNullable(toUInt256(23))), toNullable(100)) AND (c = 0), 1, 0)) RESPECT NULLS, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_0 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_32' in scope SELECT sum(toLowCardinality(23), if(greaterOrEquals(test_alias__fuzz_32, a, 0) AND notEquals(b, toLowCardinality(23), materialize(toNullable(toUInt256(23))), toNullable(100)) AND (c = 0), 1, 0)) RESPECT NULLS, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_0 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 856 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 857 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Query succeeded, using this AST as a start Fuzzing step 858 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), toUInt8((number / 8) % toLowCardinality(2)), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(tab__fuzz_22, 12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), toUInt8((number / 8) % toLowCardinality(2)), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(tab__fuzz_22, 12)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), toUInt8((number / 8) % toLowCardinality(2)), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(tab__fuzz_22, 12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 859 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 860 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Got boring AST Fuzzing step 861 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Query succeeded, using this AST as a start Fuzzing step 862 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 863 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 864 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 865 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 866 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: While processing countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 867 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 868 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 869 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 870 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 871 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 872 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 873 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 874 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 875 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 876 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), 12, pattern) FROM tab__fuzz_0 WHERE toLowCardinality(12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), 12, pattern) FROM tab__fuzz_0 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), 12, pattern) FROM tab__fuzz_0 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 877 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 878 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 879 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 880 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 881 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 882 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 883 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 884 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 885 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 886 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 887 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 888 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 889 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 890 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 891 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 892 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 893 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 894 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 895 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 896 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 897 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 898 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 899 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 900 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 901 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 902 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 903 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 904 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 905 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_0 WHERE toLowCardinality(12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_0 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_0 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 906 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 907 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 908 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 909 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 910 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 911 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 912 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 913 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 914 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 915 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 916 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 917 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 918 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 919 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 920 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 921 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 922 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 923 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 924 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 925 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 926 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 927 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 928 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 929 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 930 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 931 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: While processing countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 932 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 933 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 934 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 935 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 936 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 937 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 938 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 939 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 940 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 941 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 942 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 943 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 944 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 945 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 946 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 947 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: While processing countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 948 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 949 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 950 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 951 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 952 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 953 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 954 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 955 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 956 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 957 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 958 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 959 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 960 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 961 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 962 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 963 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 964 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 965 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 966 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 967 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 968 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 969 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 970 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 971 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 972 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, 12, pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, 12, pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 4, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, 12, pattern) FROM tab__fuzz_1 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 973 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 974 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 975 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: While processing countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 976 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 977 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 978 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 979 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 980 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 981 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 982 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 983 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 984 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 985 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 986 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 987 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 988 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 989 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 990 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 991 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 992 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 993 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 994 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: While processing countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern): While processing SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 995 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 996 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 997 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 998 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern), toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern), toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern), toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_2 WHERE toLowCardinality(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 999 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 WHERE toLowCardinality(12) Got boring AST Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab PREWHERE multiIf(s IN ('a', 'b'), 1, toNullable(0)) WHERE id = 1 GROUP BY round((sum(multiIf(s IN (('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100) Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab PREWHERE multiIf(s IN ('a', 'b'), 1, toNullable(0)) WHERE id = 1 GROUP BY round((sum(multiIf(s IN (('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100)': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT countSubstrings(haystack, pattern) FROM tab PREWHERE multiIf(s IN ('a', 'b'), 1, toNullable(0)) WHERE id = 1 GROUP BY round((sum(multiIf(s IN tuple(('a', 'b')), 1, 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 2 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 4 out of 1000 EXPLAIN QUERY TREE dump_ast = true SELECT countSubstrings(haystack, xor(xor(x9, xor(x10, x11))), pattern) FROM tab__fuzz_0 WHERE id = 1 Error on processing query 'EXPLAIN QUERY TREE dump_ast = true SELECT countSubstrings(haystack, xor(xor(x9, xor(x10, x11))), pattern) FROM tab__fuzz_0 WHERE id = 1': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "dump_ast" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 5 out of 1000 SELECT countSubstrings(haystack) FROM tab__fuzz_2 WHERE id = 1 Error on processing query 'SELECT countSubstrings(haystack) FROM tab__fuzz_2 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstrings doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstrings(haystack) FROM tab__fuzz_2 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd56fae 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 6 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 WHERE id = materialize(toUInt128(1)) Query succeeded, using this AST as a start Fuzzing step 7 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 WHERE id = materialize(toUInt128(1)) Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 WHERE id = materialize(toUInt128(1))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 WHERE id = materialize(toUInt128(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 8 out of 1000 SELECT countSubstrings(toUInt128(8), pattern) FROM tab__fuzz_1 WHERE id = materialize(toUInt128(1)) Error on processing query 'SELECT countSubstrings(toUInt128(8), pattern) FROM tab__fuzz_1 WHERE id = materialize(toUInt128(1))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function countSubstrings: In scope SELECT countSubstrings(toUInt128(8), pattern) FROM tab__fuzz_1 WHERE id = materialize(toUInt128(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd57447 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 9 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 WHERE id = materialize(toUInt128(1)) Got boring AST Fuzzing step 10 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 WHERE id = materialize(toUInt128(1)) Got boring AST Fuzzing step 11 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 12 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 13 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 WHERE id = materialize(1) Got boring AST Fuzzing step 14 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 15 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 16 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 17 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_3 WHERE id = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 18 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 19 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 20 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 21 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 22 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE id = 1': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 23 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE id = materialize(toUInt128(1)) Query succeeded, using this AST as a start Fuzzing step 24 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 WHERE id = materialize(toUInt128(1)) Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 WHERE id = materialize(toUInt128(1))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 WHERE id = materialize(toUInt128(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 25 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE id = materialize(toUInt128(1)) Query succeeded, using this AST as a start Fuzzing step 26 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE id = materialize(toUInt128(1)) Got boring AST Fuzzing step 27 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE id = materialize(toUInt128(1)) Got boring AST Fuzzing step 28 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE id = materialize(toUInt128(1)) Got boring AST Fuzzing step 29 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE id = materialize(toUInt128(1)) Got boring AST Fuzzing step 30 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE id = materialize(toUInt128(1)) Got boring AST Fuzzing step 31 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE id = materialize(toUInt128(1)) Query succeeded, using this AST as a start Fuzzing step 32 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE id = toUInt128(1) Query succeeded, using this AST as a start Fuzzing step 33 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE id = toUInt128(1) Got boring AST Fuzzing step 34 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 PREWHERE toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), toUInt128(12)), 12) WHERE id = toUInt128(1) Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 PREWHERE toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), toUInt128(12)), 12) WHERE id = toUInt128(1)': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: Nullable(FixedString(12)). In query SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 PREWHERE toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), toUInt128(12)), 12) WHERE id = toUInt128(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 35 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE id = toUInt128(1) Got boring AST Fuzzing step 36 out of 1000 SELECT countSubstrings(haystack, greaterOrEquals(test_alias__fuzz_32, a, 0), pattern) FROM tab__fuzz_2 WHERE id = toUInt128(1) Error on processing query 'SELECT countSubstrings(haystack, greaterOrEquals(test_alias__fuzz_32, a, 0), pattern) FROM tab__fuzz_2 WHERE id = toUInt128(1)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_32' in scope SELECT countSubstrings(haystack, greaterOrEquals(test_alias__fuzz_32, a, 0), pattern) FROM tab__fuzz_2 WHERE id = toUInt128(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 37 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 WHERE id = toUInt128(1) Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 WHERE id = toUInt128(1)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 WHERE id = toUInt128(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 38 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(1) Query succeeded, using this AST as a start Fuzzing step 39 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(1) Got boring AST Fuzzing step 40 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(1) Got boring AST Fuzzing step 41 out of 1000 SELECT countSubstrings(cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23)), 23), currentDatabase(), t), haystack, pattern) FROM tab__fuzz_0 WHERE id = toUInt128(1) Error on processing query 'SELECT countSubstrings(cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23)), 23), currentDatabase(), t), haystack, pattern) FROM tab__fuzz_0 WHERE id = toUInt128(1)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT countSubstrings(cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toNullable(23)), 23), currentDatabase(), t), haystack, pattern) FROM tab__fuzz_0 WHERE id = toUInt128(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 42 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE equals(id) Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE equals(id)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE equals(id). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 43 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toUInt128(1) Query succeeded, using this AST as a start Fuzzing step 44 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toUInt128(cluster(currentDatabase(), test_alias), 1) Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toUInt128(cluster(currentDatabase(), test_alias), 1)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias' in scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toUInt128(cluster(currentDatabase(), test_alias), 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 45 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 PREWHERE equals(toUInt128(toNullable(materialize(toLowCardinality(1000))), 1)) Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 PREWHERE equals(toUInt128(toNullable(materialize(toLowCardinality(1000))), 1))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt128'. Expected 1 argument, got 2 arguments: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 PREWHERE equals(toUInt128(toNullable(materialize(toLowCardinality(1000))), 1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000890dd2e 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000088e682a 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 46 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toUInt128(1) Query succeeded, using this AST as a start Fuzzing step 47 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toUInt128(1) Got boring AST Fuzzing step 48 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toUInt128(1) Got boring AST Fuzzing step 49 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toUInt128(1) Got boring AST Fuzzing step 50 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toUInt128(1) Query succeeded, using this AST as a start Fuzzing step 51 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toUInt128(1) Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toUInt128(1) Got boring AST Fuzzing step 53 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toUInt128(1) Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toUInt128(1)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toUInt128(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 54 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toUInt128(1) Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toUInt128(1)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 55 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toUInt128(1) Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toUInt128(1) Got boring AST Fuzzing step 57 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toUInt128(1) Got boring AST Fuzzing step 58 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 59 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 60 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 61 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 62 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 63 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 64 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 65 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 68 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 69 out of 1000 SELECT countSubstrings(haystack) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstrings(haystack) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstrings doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstrings(haystack) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd56fae 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 70 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 71 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 73 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 74 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 75 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 76 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 77 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 78 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 79 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 80 out of 1000 EXPLAIN SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 81 out of 1000 EXPLAIN SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 82 out of 1000 EXPLAIN SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 83 out of 1000 EXPLAIN SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 84 out of 1000 EXPLAIN SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 85 out of 1000 EXPLAIN SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 86 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 87 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 88 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 89 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 90 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 91 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 92 out of 1000 EXPLAIN SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 93 out of 1000 SELECT countSubstrings(if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), toNullable(100)) AND (c = 0), 1, 0), haystack, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstrings(if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), toNullable(100)) AND (c = 0), 1, 0), haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT countSubstrings(if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), toNullable(100)) AND (c = 0), 1, 0), haystack, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 94 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 96 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 98 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 99 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 100 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 101 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 102 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 103 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 104 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 105 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 106 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 107 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 108 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 109 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 110 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 111 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 112 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 113 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 114 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 115 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 116 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 117 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 118 out of 1000 EXPLAIN SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 119 out of 1000 EXPLAIN SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 120 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 121 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 122 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 123 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 124 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 125 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 126 out of 1000 EXPLAIN SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 127 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 128 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 129 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 130 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 131 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 132 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 133 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 134 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 135 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 136 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 137 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 138 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 WHERE countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), id = 1, 12), pattern) Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 WHERE countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), id = 1, 12), pattern)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 WHERE countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), id = 1, 12), pattern). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 139 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 141 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 142 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 143 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 144 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 145 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 146 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 147 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 148 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 149 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 150 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 151 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 152 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 153 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 154 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 155 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 156 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 157 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 158 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 159 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 160 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 161 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 162 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 163 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 165 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 166 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 167 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 168 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 169 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 170 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 171 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 172 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 173 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 174 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 175 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 176 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 177 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 178 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 179 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 180 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 181 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 182 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 183 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 184 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 185 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 186 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 187 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 189 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 190 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 191 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 192 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 193 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 194 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 195 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 196 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 197 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 198 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 199 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 200 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 201 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 202 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 203 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 204 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 205 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 206 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 207 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 208 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 209 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 210 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 WHERE if((a >= 0) AND (b != toUInt128(100)) AND (c > toUInt256(220)), 1, 0) Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 WHERE if((a >= 0) AND (b != toUInt128(100)) AND (c > toUInt256(220)), 1, 0)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 WHERE if((a >= 0) AND (b != toUInt128(100)) AND (c > toUInt256(220)), 1, 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 211 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 212 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 213 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 214 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 215 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 216 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 217 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 218 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 219 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 220 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 221 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 222 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 223 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 224 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 225 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 226 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 227 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 228 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 229 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 230 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 231 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 232 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 233 out of 1000 EXPLAIN SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 234 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 235 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 236 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 237 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 238 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 239 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 240 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 241 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 242 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 243 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 244 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 245 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 246 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 247 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 248 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 249 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 250 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 251 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 252 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 253 out of 1000 SELECT countSubstrings(haystack) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstrings doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstrings(haystack) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd56fae 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 254 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 255 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 256 out of 1000 EXPLAIN SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 257 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 258 out of 1000 EXPLAIN SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 259 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 260 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 261 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 262 out of 1000 EXPLAIN ESTIMATE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 263 out of 1000 EXPLAIN QUERY TREE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 264 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 265 out of 1000 EXPLAIN AST SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 266 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 267 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 268 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 269 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 PREWHERE (a >= 0) AND toLowCardinality(1) Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 PREWHERE (a >= 0) AND toLowCardinality(1)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 PREWHERE (a >= 0) AND toLowCardinality(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 270 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 271 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 272 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 273 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 274 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 GROUP BY t__fuzz_44, toUInt128(12) Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 GROUP BY t__fuzz_44, toUInt128(12)': Received from localhost:9000. DB::Exception: Unknown expression identifier 't__fuzz_44' in scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 GROUP BY t__fuzz_44, toUInt128(12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 275 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 276 out of 1000 SELECT countSubstrings(pattern) FROM tab__fuzz_0 GROUP BY sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString(toFixedString(sum(if((a >= 0) AND (b != 100) AND equals(toUInt256(0)), 1, 0)), 'test_cluster_two_shards', 23), 23), toNullable(23)), 220)), 1, 0)), nums__fuzz_43, (number / materialize(2)) % 2, x8 OR (x9 OR (x10 OR x11)) Error on processing query 'SELECT countSubstrings(pattern) FROM tab__fuzz_0 GROUP BY sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString(toFixedString(sum(if((a >= 0) AND (b != 100) AND equals(toUInt256(0)), 1, 0)), 'test_cluster_two_shards', 23), 23), toNullable(23)), 220)), 1, 0)), nums__fuzz_43, (number / materialize(2)) % 2, x8 OR (x9 OR (x10 OR x11))': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstrings doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstrings(pattern) FROM tab__fuzz_0 GROUP BY sum(if((a >= 0) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString(toFixedString(sum(if((a >= 0) AND (b != 100) AND equals(toUInt256(0)), 1, 0)), 'test_cluster_two_shards', 23), 23), toNullable(23)), 220)), 1, 0)), nums__fuzz_43, (number / materialize(2)) % 2, x8 OR (x9 OR (x10 OR x11)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd56fae 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 277 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 278 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 279 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 280 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 281 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 282 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 283 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 PREWHERE toFixedString('aaaxxxaa\0xxx', toUInt256(12)) Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 PREWHERE toFixedString('aaaxxxaa\0xxx', toUInt256(12))': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: FixedString(12). In query SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 PREWHERE toFixedString('aaaxxxaa\0xxx', toUInt256(12)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 284 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 285 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 286 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 287 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 288 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 289 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 290 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 291 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 292 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 293 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 294 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 295 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 296 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 297 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 298 out of 1000 SELECT toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23, 23), countSubstrings(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23, 23), countSubstrings(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23, toNullable(23)), 23, 23), countSubstrings(haystack, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 299 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 300 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 301 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 302 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 303 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 304 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 305 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 306 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 307 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 308 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 309 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstrings'): countSubstrings(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 310 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 311 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 312 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 313 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 314 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 315 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 316 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 317 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 318 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 319 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 320 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 321 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 322 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 323 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 324 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 325 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 326 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 327 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 328 out of 1000 EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 329 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 GROUP BY (number / 128) % 2, sum(if((b != toNullable(100)) AND equals(c), 1, 0)), if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0), divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(1), count()) Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 GROUP BY (number / 128) % 2, sum(if((b != toNullable(100)) AND equals(c), 1, 0)), if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0), divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(1), count())': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 GROUP BY (number / 128) % 2, sum(if((b != toNullable(100)) AND equals(c), 1, 0)), if((a >= 0) AND (b != toLowCardinality(100)) AND (c = 0), 1, 0), divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(1), count()). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 330 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 331 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 332 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 333 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 334 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 335 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 336 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 337 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 338 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 339 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 340 out of 1000 SELECT countSubstrings(haystack) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstrings(haystack) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstrings doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstrings(haystack) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd56fae 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 341 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 342 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 343 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 GROUP BY toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), 23), 23) Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 GROUP BY toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), 23), 23)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 GROUP BY toFixedString(toFixedString('test_cluster_two_shards', toNullable(23), 23), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 344 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 345 out of 1000 SELECT (intDiv(74, toUInt32(rtime), 20) * materialize(20)) * materialize(toUInt256(1000)), countSubstrings(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT (intDiv(74, toUInt32(rtime), 20) * materialize(20)) * materialize(toUInt256(1000)), countSubstrings(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT (intDiv(74, toUInt32(rtime), 20) * materialize(20)) * materialize(toUInt256(1000)), countSubstrings(haystack, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 346 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 347 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 GROUP BY toUInt8((number / toUInt256(4)) % 2) Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 GROUP BY toUInt8((number / toUInt256(4)) % 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 GROUP BY toUInt8((number / toUInt256(4)) % 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 348 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 349 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 350 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 351 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 352 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 353 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 354 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 356 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 357 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 358 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 359 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 360 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 361 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 362 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 363 out of 1000 SELECT countSubstrings(pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstrings(pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstrings doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstrings(pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd56fae 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 364 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 365 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 366 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 367 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 368 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 369 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 370 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 371 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 372 out of 1000 SELECT countSubstrings(haystack, toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(' ', toLowCardinality(1)) IGNORE NULLS) * toNullable(100), 20), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstrings(haystack, toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(' ', toLowCardinality(1)) IGNORE NULLS) * toNullable(100), 20), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT countSubstrings(haystack, toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(' ', toLowCardinality(1)) IGNORE NULLS) * toNullable(100), 20), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 373 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 374 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 375 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 377 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 378 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 379 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 380 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 381 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 382 out of 1000 SELECT countSubstrings(haystack, countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstrings(haystack, countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstrings(haystack, countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, 12), pattern), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 383 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 384 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 385 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 386 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 387 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 388 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 389 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 390 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 391 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 392 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 393 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 394 out of 1000 SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 395 out of 1000 EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: While processing countSubstrings(haystack, pattern): While processing SELECT countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 396 out of 1000 SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 398 out of 1000 SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 399 out of 1000 SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 400 out of 1000 SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 401 out of 1000 SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 402 out of 1000 SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 403 out of 1000 SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE toUInt8(divide(number) % toUInt128(toUInt256(2))) Error on processing query 'SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE toUInt8(divide(number) % toUInt128(toUInt256(2)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE toUInt8(divide(number) % toUInt128(toUInt256(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 404 out of 1000 SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 405 out of 1000 SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_3 PREWHERE t__fuzz_40 Error on processing query 'SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_3 PREWHERE t__fuzz_40': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_3 PREWHERE t__fuzz_40. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 406 out of 1000 SELECT 512, countSubstrings(haystack, cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 512, countSubstrings(haystack, cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias' in scope SELECT 512, countSubstrings(haystack, cluster(toLowCardinality('test_cluster_two_shards'), currentDatabase(), test_alias), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 407 out of 1000 SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 408 out of 1000 SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE (a >= 0) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(materialize(23))), 220)) Error on processing query 'SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE (a >= 0) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(materialize(23))), 220))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_1 WHERE (a >= 0) AND (b != 100) AND (c > toUInt256(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(materialize(23))), 220)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 409 out of 1000 SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 410 out of 1000 SELECT 512, countSubstrings(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 411 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 412 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 413 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 414 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 415 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 416 out of 1000 SELECT 512 FROM tab__fuzz_3 WHERE divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, toNullable(toNullable(1)), count()) Error on processing query 'SELECT 512 FROM tab__fuzz_3 WHERE divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, toNullable(toNullable(1)), count())': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT 512 FROM tab__fuzz_3 WHERE divide(sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, toNullable(toNullable(1)), count()). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 417 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 418 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 419 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 420 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 421 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 422 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 423 out of 1000 SELECT 512 FROM tab__fuzz_0 GROUP BY nums__fuzz_13, sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))) Error on processing query 'SELECT 512 FROM tab__fuzz_0 GROUP BY nums__fuzz_13, sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0)))': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_13' in scope SELECT 512 FROM tab__fuzz_0 GROUP BY nums__fuzz_13, sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 424 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 425 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 426 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 427 out of 1000 EXPLAIN AST graph = true SELECT 512 FROM tab__fuzz_1 Error on processing query 'EXPLAIN AST graph = true SELECT 512 FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "graph" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495f93b 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 428 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 429 out of 1000 SELECT test_alias__fuzz_39, 512 FROM tab__fuzz_1 Error on processing query 'SELECT test_alias__fuzz_39, 512 FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression identifier 'test_alias__fuzz_39' in scope SELECT test_alias__fuzz_39, 512 FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 430 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 431 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 432 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 433 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 434 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 435 out of 1000 SELECT materialize(512) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 436 out of 1000 SELECT materialize(512) FROM tab__fuzz_2 Got boring AST Fuzzing step 437 out of 1000 SELECT materialize(512) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 438 out of 1000 SELECT materialize(512) FROM tab__fuzz_0 Got boring AST Fuzzing step 439 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 440 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 441 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 442 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 443 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 444 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 445 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 446 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 447 out of 1000 SELECT 512 FROM tab__fuzz_1 WHERE tab__fuzz_9 Error on processing query 'SELECT 512 FROM tab__fuzz_1 WHERE tab__fuzz_9': Received from localhost:9000. DB::Exception: Unknown expression identifier 'tab__fuzz_9' in scope SELECT 512 FROM tab__fuzz_1 WHERE tab__fuzz_9. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 448 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 449 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 450 out of 1000 SELECT b != toUInt256(toFixedString('2022-01-01', 10), 100), 512 FROM tab__fuzz_1 Error on processing query 'SELECT b != toUInt256(toFixedString('2022-01-01', 10), 100), 512 FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT b != toUInt256(toFixedString('2022-01-01', 10), 100), 512 FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 451 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 452 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 453 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 454 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 455 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 456 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 457 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 458 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 459 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 460 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 461 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 463 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 464 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 465 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 466 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 467 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 468 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 469 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 470 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 471 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 472 out of 1000 SELECT 512 FROM tab__fuzz_1 WHERE countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), 12, 12), pattern) Error on processing query 'SELECT 512 FROM tab__fuzz_1 WHERE countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), 12, 12), pattern)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 4, should be 2: In scope SELECT 512 FROM tab__fuzz_1 WHERE countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), 12, 12), pattern). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 473 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 474 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 475 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 476 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 477 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 478 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 479 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 480 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 481 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 482 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 483 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 512 FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 512 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('512'): 512 FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 484 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 ('512'): 512 FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 486 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 487 out of 1000 EXPLAIN ESTIMATE SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 488 out of 1000 EXPLAIN ESTIMATE SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 489 out of 1000 EXPLAIN PIPELINE SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 490 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 512 FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 512 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('512'): 512 FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 491 out of 1000 EXPLAIN PIPELINE SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 492 out of 1000 EXPLAIN PIPELINE SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 493 out of 1000 EXPLAIN ESTIMATE SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 494 out of 1000 EXPLAIN ESTIMATE SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 495 out of 1000 EXPLAIN ESTIMATE SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 496 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 512 FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 512 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('512'): 512 FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 497 out of 1000 EXPLAIN ESTIMATE SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 498 out of 1000 EXPLAIN ESTIMATE SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 499 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 500 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 501 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 503 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 504 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 505 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 506 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 507 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 508 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 509 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 510 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 511 out of 1000 SELECT 512 FROM tab__fuzz_1 GROUP BY greaterOrEquals(test_alias__fuzz_32, a, 0) AND (c = 0), toLowCardinality(12), 38, sum(if((a >= materialize(0)) AND 1 AND (c > 220), toUInt256(sum(if((a >= 0) AND (b != materialize(materialize(100))) AND (c > 220), 1, 0)), 1), 0)), materialize(toNullable(1)) Error on processing query 'SELECT 512 FROM tab__fuzz_1 GROUP BY greaterOrEquals(test_alias__fuzz_32, a, 0) AND (c = 0), toLowCardinality(12), 38, sum(if((a >= materialize(0)) AND 1 AND (c > 220), toUInt256(sum(if((a >= 0) AND (b != materialize(materialize(100))) AND (c > 220), 1, 0)), 1), 0)), materialize(toNullable(1))': Received from localhost:9000. DB::Exception: Positional argument number 38 is out of bounds. Expected in range [1, 1]. In scope SELECT 512 FROM tab__fuzz_1 GROUP BY greaterOrEquals(test_alias__fuzz_32, a, 0) AND (c = 0), toLowCardinality(12), 38, sum(if((a >= materialize(0)) AND 1 AND (c > 220), toUInt256(sum(if((a >= 0) AND (b != materialize(materialize(100))) AND (c > 220), 1, 0)), 1), 0)), materialize(toNullable(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 512 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 513 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 515 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 516 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 517 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 518 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 519 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 520 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 522 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 523 out of 1000 SELECT 512 FROM tab__fuzz_1 WHERE (r1 * materialize(100)) / plus(r1) Error on processing query 'SELECT 512 FROM tab__fuzz_1 WHERE (r1 * materialize(100)) / plus(r1)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'r1' in scope SELECT 512 FROM tab__fuzz_1 WHERE (r1 * materialize(100)) / plus(r1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 524 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 525 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 526 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 527 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 528 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 529 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 530 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 531 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 532 out of 1000 EXPLAIN PIPELINE header = true SELECT materialize(512) FROM tab__fuzz_0 Error on processing query 'EXPLAIN PIPELINE header = true SELECT materialize(512) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 533 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 534 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 535 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 536 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 537 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 538 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 539 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 540 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 541 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 542 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 543 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 544 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 545 out of 1000 SELECT 512 FROM tab__fuzz_2 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 546 out of 1000 SELECT 512 FROM tab__fuzz_1 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 547 out of 1000 SELECT 512 FROM tab__fuzz_2 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 548 out of 1000 SELECT 512 FROM tab__fuzz_3 WHERE 1048576 Error on processing query 'SELECT 512 FROM tab__fuzz_3 WHERE 1048576': Received from localhost:9000. DB::Exception: Illegal type UInt32 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x0000000034e16cd8 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000034e00ca0 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0eea9 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 13. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 18. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 19. ? @ 0x00007fa035818ac3 20. ? @ 0x00007fa0358aa850 Fuzzing step 549 out of 1000 SELECT 512 FROM tab__fuzz_0 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 550 out of 1000 SELECT 512 FROM tab__fuzz_0 WHERE 9 Got boring AST Fuzzing step 551 out of 1000 SELECT 512 FROM tab__fuzz_2 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 552 out of 1000 SELECT 512 FROM tab__fuzz_2 WHERE 9 Got boring AST Fuzzing step 553 out of 1000 SELECT 512 FROM tab__fuzz_1 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 SELECT 512 FROM tab__fuzz_0 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 555 out of 1000 SELECT 512 FROM tab__fuzz_3 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 556 out of 1000 SELECT 512 FROM tab__fuzz_3 WHERE 9 Got boring AST Fuzzing step 557 out of 1000 SELECT 512 FROM tab__fuzz_3 WHERE 9 Got boring AST Fuzzing step 558 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 512 FROM tab__fuzz_3 WHERE 9 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 512 FROM tab__fuzz_3 WHERE 9': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('512'): 512 FROM tab__fuzz_3 WHERE 9. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 559 out of 1000 SELECT 512 FROM tab__fuzz_2 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 560 out of 1000 SELECT 512 FROM tab__fuzz_2 WHERE 9 Got boring AST Fuzzing step 561 out of 1000 SELECT 512 FROM tab__fuzz_1 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 562 out of 1000 SELECT 512 FROM tab__fuzz_2 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 563 out of 1000 SELECT materialize(512) FROM tab__fuzz_3 WHERE -1 GROUP BY xor(x9, xor(x10, x11)) Error on processing query 'SELECT materialize(512) FROM tab__fuzz_3 WHERE -1 GROUP BY xor(x9, xor(x10, x11))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x9' in scope SELECT materialize(512) FROM tab__fuzz_3 WHERE -1 GROUP BY xor(x9, xor(x10, x11)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 564 out of 1000 SELECT 512 FROM tab__fuzz_0 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 565 out of 1000 SELECT 512 FROM tab__fuzz_2 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 566 out of 1000 SELECT 512 FROM tab__fuzz_3 PREWHERE if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0) WHERE 9 Error on processing query 'SELECT 512 FROM tab__fuzz_3 PREWHERE if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0) WHERE 9': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 512 FROM tab__fuzz_3 PREWHERE if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0) WHERE 9. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 567 out of 1000 SELECT 512 FROM tab__fuzz_2 WHERE 9 Got boring AST Fuzzing step 568 out of 1000 SELECT 512 FROM tab__fuzz_1 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 569 out of 1000 SELECT 512 FROM tab__fuzz_0 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 570 out of 1000 SELECT 512 FROM tab__fuzz_3 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 571 out of 1000 SELECT 512 FROM tab__fuzz_0 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 572 out of 1000 SELECT 512 FROM tab__fuzz_0 WHERE 9 Got boring AST Fuzzing step 573 out of 1000 SELECT 512 FROM tab__fuzz_0 WHERE 9 Got boring AST Fuzzing step 574 out of 1000 SELECT 512 FROM tab__fuzz_0 WHERE 9 Got boring AST Fuzzing step 575 out of 1000 SELECT 512 FROM tab__fuzz_2 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 576 out of 1000 SELECT 512 FROM tab__fuzz_2 WHERE 9 Got boring AST Fuzzing step 577 out of 1000 SELECT 512 FROM tab__fuzz_2 WHERE 9 Got boring AST Fuzzing step 578 out of 1000 SELECT 512 FROM tab__fuzz_2 WHERE 9 Got boring AST Fuzzing step 579 out of 1000 SELECT 512 FROM tab__fuzz_3 PREWHERE 9 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 580 out of 1000 SELECT 512 FROM tab__fuzz_2 PREWHERE 9 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 581 out of 1000 SELECT 512 FROM tab__fuzz_0 PREWHERE -1 WHERE 9 Error on processing query 'SELECT 512 FROM tab__fuzz_0 PREWHERE -1 WHERE 9': Received from localhost:9000. DB::Exception: Illegal type Int8 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x0000000037f9adfa 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x0000000038d06faa 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::MergeTreeDataSelectExecutor::filterPartsByVirtualColumns(std::shared_ptr const&, DB::MergeTreeData const&, std::vector, std::allocator>> const&, DB::ActionsDAG const*, std::shared_ptr) @ 0x0000000039a5472c 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::buildIndexes(std::optional&, DB::ActionsDAG const*, DB::MergeTreeData const&, std::vector, std::allocator>> const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003bf2f170 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1639: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000003bf2e127 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000003c1827e4 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000003c1822fe 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c129752 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 582 out of 1000 SELECT 512 FROM tab__fuzz_2 PREWHERE -9223372036854775807 WHERE 9 Error on processing query 'SELECT 512 FROM tab__fuzz_2 PREWHERE -9223372036854775807 WHERE 9': Received from localhost:9000. DB::Exception: Illegal type Int64 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x0000000037f9adfa 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x0000000038d06faa 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::MergeTreeDataSelectExecutor::filterPartsByVirtualColumns(std::shared_ptr const&, DB::MergeTreeData const&, std::vector, std::allocator>> const&, DB::ActionsDAG const*, std::shared_ptr) @ 0x0000000039a5472c 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::buildIndexes(std::optional&, DB::ActionsDAG const*, DB::MergeTreeData const&, std::vector, std::allocator>> const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003bf2f170 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1639: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000003bf2e127 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000003c1827e4 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000003c1822fe 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c129752 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 583 out of 1000 SELECT 512 FROM tab__fuzz_0 PREWHERE 9 WHERE 9 Query succeeded, using this AST as a start Fuzzing step 584 out of 1000 SELECT 512 FROM tab__fuzz_0 PREWHERE '65535' WHERE 9 Error on processing query 'SELECT 512 FROM tab__fuzz_0 PREWHERE '65535' WHERE 9': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: String. In query SELECT 512 FROM tab__fuzz_0 PREWHERE '65535' WHERE 9. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 585 out of 1000 SELECT 512 FROM tab__fuzz_1 PREWHERE 9 WHERE 257 Error on processing query 'SELECT 512 FROM tab__fuzz_1 PREWHERE 9 WHERE 257': Received from localhost:9000. DB::Exception: Illegal type UInt16 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x0000000034e16cd8 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000034e00ca0 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0eea9 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 13. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 18. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 19. ? @ 0x00007fa035818ac3 20. ? @ 0x00007fa0358aa850 Fuzzing step 586 out of 1000 SELECT 512 FROM tab__fuzz_0 PREWHERE 9 WHERE 9 Got boring AST Fuzzing step 587 out of 1000 SELECT 512 FROM tab__fuzz_0 PREWHERE 2147483647 WHERE 9 Error on processing query 'SELECT 512 FROM tab__fuzz_0 PREWHERE 2147483647 WHERE 9': Received from localhost:9000. DB::Exception: Illegal type UInt32 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x0000000037f9adfa 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x0000000038d06faa 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::MergeTreeDataSelectExecutor::filterPartsByVirtualColumns(std::shared_ptr const&, DB::MergeTreeData const&, std::vector, std::allocator>> const&, DB::ActionsDAG const*, std::shared_ptr) @ 0x0000000039a5472c 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::buildIndexes(std::optional&, DB::ActionsDAG const*, DB::MergeTreeData const&, std::vector, std::allocator>> const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003bf2f170 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1639: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000003bf2e127 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000003c1827e4 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000003c1822fe 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c129752 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 588 out of 1000 SELECT 512 FROM tab__fuzz_0 PREWHERE 9 WHERE 9 Got boring AST Fuzzing step 589 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_2 PREWHERE 9 WHERE 3 Query succeeded, using this AST as a start Fuzzing step 590 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_3 PREWHERE 9 WHERE 3 Query succeeded, using this AST as a start Fuzzing step 591 out of 1000 SELECT toNullable(' ', 1), 512 FROM tab__fuzz_0 PREWHERE 9 WHERE 3 Error on processing query 'SELECT toNullable(' ', 1), 512 FROM tab__fuzz_0 PREWHERE 9 WHERE 3': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toNullable(' ', 1), 512 FROM tab__fuzz_0 PREWHERE 9 WHERE 3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 592 out of 1000 EXPLAIN PIPELINE SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_2 PREWHERE 9 WHERE 3 Query succeeded, using this AST as a start Fuzzing step 593 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_2 PREWHERE 9 WHERE 3 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_2 PREWHERE 9 WHERE 3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 ('toNullable'): toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_2 PREWHERE 9 WHERE 3. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 594 out of 1000 EXPLAIN PIPELINE SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_2 PREWHERE 9 WHERE 3 Got boring AST Fuzzing step 595 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_2 PREWHERE 9 WHERE 3 Query succeeded, using this AST as a start Fuzzing step 596 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_0 PREWHERE 9 WHERE 3 Query succeeded, using this AST as a start Fuzzing step 597 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_3 PREWHERE NULL WHERE 3 Query succeeded, using this AST as a start Fuzzing step 598 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_1 PREWHERE NULL WHERE 3 Query succeeded, using this AST as a start Fuzzing step 599 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_2 PREWHERE NULL WHERE 3 Query succeeded, using this AST as a start Fuzzing step 600 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_2 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 601 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_3 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 602 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_3 PREWHERE NULL Got boring AST Fuzzing step 603 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_3 PREWHERE NULL Got boring AST Fuzzing step 604 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_3 PREWHERE NULL Got boring AST Fuzzing step 605 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_0 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 606 out of 1000 SELECT toNullable(' ', 1), 512 FROM tab__fuzz_2 PREWHERE NULL Error on processing query 'SELECT toNullable(' ', 1), 512 FROM tab__fuzz_2 PREWHERE NULL': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toNullable(' ', 1), 512 FROM tab__fuzz_2 PREWHERE NULL. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 607 out of 1000 SELECT toNullable(toFixedString(materialize(toFixedString('OK', 2)), ' ', 1)), 512 FROM tab__fuzz_0 PREWHERE NULL Error on processing query 'SELECT toNullable(toFixedString(materialize(toFixedString('OK', 2)), ' ', 1)), 512 FROM tab__fuzz_0 PREWHERE NULL': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toNullable(toFixedString(materialize(toFixedString('OK', 2)), ' ', 1)), 512 FROM tab__fuzz_0 PREWHERE NULL. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 608 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_1 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 609 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_0 PREWHERE NULL WHERE if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0) Error on processing query 'SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_0 PREWHERE NULL WHERE if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_0 PREWHERE NULL WHERE if((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), 1, 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 610 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_0 PREWHERE NULL Query succeeded, using this AST as a start Fuzzing step 611 out of 1000 SELECT toNullable(' ', 1), 512 FROM tab__fuzz_1 PREWHERE NULL Error on processing query 'SELECT toNullable(' ', 1), 512 FROM tab__fuzz_1 PREWHERE NULL': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toNullable(' ', 1), 512 FROM tab__fuzz_1 PREWHERE NULL. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 612 out of 1000 SELECT toNullable(toFixedString(toNullable(' '), 1)), 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 613 out of 1000 SELECT toNullable(toFixedString(toNullable(' '), 1)), 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 614 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 615 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 616 out of 1000 SELECT toNullable(toFixedString(' ', 1)), 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 617 out of 1000 SELECT toNullable(if((b != 100) AND toNullable(100) AND equals(c, t__fuzz_38, 0), 1, 0), toFixedString(' ', 1)), 512 FROM tab__fuzz_0 Error on processing query 'SELECT toNullable(if((b != 100) AND toNullable(100) AND equals(c, t__fuzz_38, 0), 1, 0), toFixedString(' ', 1)), 512 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toNullable(if((b != 100) AND toNullable(100) AND equals(c, t__fuzz_38, 0), 1, 0), toFixedString(' ', 1)), 512 FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 618 out of 1000 SELECT toNullable(toFixedString(toNullable(' '), 1)), 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 619 out of 1000 SELECT toNullable(toFixedString(toNullable(' '), 1)), 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 620 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 621 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 622 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 623 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 624 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 625 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 626 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 627 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 628 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 629 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 630 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 631 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 632 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 633 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 634 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 635 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 636 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 637 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 638 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 639 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 640 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 641 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 642 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 643 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 644 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 645 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 646 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 647 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 648 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 649 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 ('512'): 512 FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 650 out of 1000 EXPLAIN ESTIMATE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 651 out of 1000 EXPLAIN ESTIMATE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 652 out of 1000 EXPLAIN ESTIMATE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 653 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 654 out of 1000 EXPLAIN PIPELINE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 655 out of 1000 EXPLAIN PIPELINE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 656 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 657 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 658 out of 1000 EXPLAIN PIPELINE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 659 out of 1000 EXPLAIN PIPELINE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 660 out of 1000 EXPLAIN PIPELINE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 661 out of 1000 EXPLAIN PIPELINE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 662 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 663 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 664 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 665 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 512 FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 512 FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('512'): 512 FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 666 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 667 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 ('512'): 512 FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 668 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 669 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 ('512'): 512 FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 670 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 671 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 672 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 673 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 674 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 675 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 676 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 677 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 678 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 679 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 680 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 681 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 682 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 683 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 684 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 ('512'): 512 FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 685 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 686 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 687 out of 1000 EXPLAIN PIPELINE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 688 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 689 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 690 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 691 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 692 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 ('512'): 512 FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 693 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 694 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 695 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 696 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 697 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 698 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 699 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 700 out of 1000 EXPLAIN ESTIMATE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 701 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 702 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 703 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 704 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 705 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 512 FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 512 FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('512'): 512 FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 706 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 707 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 708 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 709 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 710 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 ('512'): 512 FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 711 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 712 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 713 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 714 out of 1000 SELECT 512 FROM tab__fuzz_2 PREWHERE toNullable(220) Query succeeded, using this AST as a start Fuzzing step 715 out of 1000 SELECT 512 FROM tab__fuzz_2 PREWHERE toNullable(220) Got boring AST Fuzzing step 716 out of 1000 SELECT 512 FROM tab__fuzz_3 PREWHERE toNullable(220) Query succeeded, using this AST as a start Fuzzing step 717 out of 1000 SELECT 512 FROM tab__fuzz_3 PREWHERE toNullable(220) Got boring AST Fuzzing step 718 out of 1000 SELECT 512 FROM tab__fuzz_2 PREWHERE toNullable(toUInt8((number / 4) % 2), 220) Error on processing query 'SELECT 512 FROM tab__fuzz_2 PREWHERE toNullable(toUInt8((number / 4) % 2), 220)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT 512 FROM tab__fuzz_2 PREWHERE toNullable(toUInt8((number / 4) % 2), 220). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 719 out of 1000 SELECT 512 FROM tab__fuzz_3 PREWHERE toNullable(220) Got boring AST Fuzzing step 720 out of 1000 SELECT 512 FROM tab__fuzz_2 PREWHERE toNullable(220) Query succeeded, using this AST as a start Fuzzing step 721 out of 1000 SELECT 512 FROM tab__fuzz_1 PREWHERE toNullable(220) Query succeeded, using this AST as a start Fuzzing step 722 out of 1000 SELECT 512 FROM tab__fuzz_2 PREWHERE toNullable(220) Query succeeded, using this AST as a start Fuzzing step 723 out of 1000 SELECT 512 FROM tab__fuzz_3 PREWHERE toNullable(220) Query succeeded, using this AST as a start Fuzzing step 724 out of 1000 SELECT 512 FROM tab__fuzz_0 PREWHERE toNullable(220) WHERE x10 OR x11 Error on processing query 'SELECT 512 FROM tab__fuzz_0 PREWHERE toNullable(220) WHERE x10 OR x11': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x10' in scope SELECT 512 FROM tab__fuzz_0 PREWHERE toNullable(220) WHERE x10 OR x11. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 725 out of 1000 SELECT 512 FROM tab__fuzz_3 PREWHERE toNullable(220) Got boring AST Fuzzing step 726 out of 1000 SELECT materialize(512) FROM tab__fuzz_3 PREWHERE toNullable(if(and(b != 100), 1, 0), 220) Error on processing query 'SELECT materialize(512) FROM tab__fuzz_3 PREWHERE toNullable(if(and(b != 100), 1, 0), 220)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT materialize(512) FROM tab__fuzz_3 PREWHERE toNullable(if(and(b != 100), 1, 0), 220). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 727 out of 1000 SELECT 512 FROM tab__fuzz_3 PREWHERE toNullable(220) Got boring AST Fuzzing step 728 out of 1000 SELECT 512 FROM tab__fuzz_3 PREWHERE toNullable(220) Got boring AST Fuzzing step 729 out of 1000 SELECT 512 FROM tab__fuzz_1 PREWHERE toNullable(220) Query succeeded, using this AST as a start Fuzzing step 730 out of 1000 SELECT sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS, 512 FROM tab__fuzz_1 PREWHERE toNullable(220) Error on processing query 'SELECT sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS, 512 FROM tab__fuzz_1 PREWHERE toNullable(220)': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS, 512 FROM tab__fuzz_1 PREWHERE toNullable(220). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 731 out of 1000 SELECT 512 FROM tab__fuzz_1 PREWHERE toNullable(220) Got boring AST Fuzzing step 732 out of 1000 SELECT 512 FROM tab__fuzz_3 PREWHERE toNullable(220) Query succeeded, using this AST as a start Fuzzing step 733 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 734 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 735 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 736 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 737 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 738 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 739 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 740 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 742 out of 1000 SELECT 512 FROM tab__fuzz_3 PREWHERE countSubstrings(haystack, pattern) Error on processing query 'SELECT 512 FROM tab__fuzz_3 PREWHERE countSubstrings(haystack, pattern)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT 512 FROM tab__fuzz_3 PREWHERE countSubstrings(haystack, pattern). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 743 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 744 out of 1000 SELECT countSubstringsCaseInsensitive(pattern), 512 FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitive(pattern), 512 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitive(pattern), 512 FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 745 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 746 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 747 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 748 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 749 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 750 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 751 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 752 out of 1000 SELECT toNullable(512) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 753 out of 1000 SELECT toNullable(512) FROM tab__fuzz_3 Got boring AST Fuzzing step 754 out of 1000 SELECT toNullable(512) FROM tab__fuzz_3 Got boring AST Fuzzing step 755 out of 1000 SELECT toNullable(512) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 756 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 757 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 758 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 759 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 760 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 761 out of 1000 SELECT 512 FROM tab__fuzz_2 GROUP BY divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()), (x1 OR x2) OR (x3 OR x4) Error on processing query 'SELECT 512 FROM tab__fuzz_2 GROUP BY divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()), (x1 OR x2) OR (x3 OR x4)': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT 512 FROM tab__fuzz_2 GROUP BY divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()), (x1 OR x2) OR (x3 OR x4). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 762 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 763 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 764 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 765 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 766 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 767 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 768 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 769 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 770 out of 1000 EXPLAIN PIPELINE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 771 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 772 out of 1000 EXPLAIN ESTIMATE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 773 out of 1000 EXPLAIN ESTIMATE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 774 out of 1000 EXPLAIN PIPELINE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 775 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 776 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 777 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 778 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 779 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 780 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 781 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 782 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 783 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 784 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 785 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 786 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 787 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 788 out of 1000 SELECT toLowCardinality(512) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 789 out of 1000 SELECT toLowCardinality(512) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 790 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 791 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 792 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 793 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 794 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 795 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 796 out of 1000 SELECT toNullable(512) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 797 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 798 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 799 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 800 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 801 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 802 out of 1000 SELECT 512 FROM tab__fuzz_2 GROUP BY (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4) Error on processing query 'SELECT 512 FROM tab__fuzz_2 GROUP BY (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT 512 FROM tab__fuzz_2 GROUP BY (x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 803 out of 1000 EXPLAIN ESTIMATE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 804 out of 1000 EXPLAIN ESTIMATE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 805 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 806 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 807 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 808 out of 1000 EXPLAIN ESTIMATE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 809 out of 1000 EXPLAIN PIPELINE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 810 out of 1000 EXPLAIN PIPELINE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 811 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 812 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 813 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 814 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('512'): 512 FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 815 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 816 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 817 out of 1000 SELECT toNullable(512) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 818 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 819 out of 1000 SELECT 512 FROM tab__fuzz_3 PREWHERE round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), toUInt256(1), 0)), materialize(1)) IGNORE NULLS) * 100) Error on processing query 'SELECT 512 FROM tab__fuzz_3 PREWHERE round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), toUInt256(1), 0)), materialize(1)) IGNORE NULLS) * 100)': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT 512 FROM tab__fuzz_3 PREWHERE round((sum(multiIf(s IN ('a', 'b'), materialize(1), 0)) IGNORE NULLS / count(sum(if((a >= 0) AND (b != materialize(100)) AND (c > 220), toUInt256(1), 0)), materialize(1)) IGNORE NULLS) * 100). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 31. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec Fuzzing step 820 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 821 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 822 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 823 out of 1000 SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), id = 1, 12), 512 FROM tab__fuzz_0 GROUP BY materialize(toLowCardinality(toFixedString(' ', 1))), toUInt8((number / toUInt256(2)) % 2), (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100) Error on processing query 'SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), id = 1, 12), 512 FROM tab__fuzz_0 GROUP BY materialize(toLowCardinality(toFixedString(' ', 1))), toUInt8((number / toUInt256(2)) % 2), (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), id = 1, 12), 512 FROM tab__fuzz_0 GROUP BY materialize(toLowCardinality(toFixedString(' ', 1))), toUInt8((number / toUInt256(2)) % 2), (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * toLowCardinality(100). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 824 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 825 out of 1000 SELECT 512 FROM tab__fuzz_0 PREWHERE cluster(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23)), toLowCardinality(23)), 23, currentDatabase(), t) Error on processing query 'SELECT 512 FROM tab__fuzz_0 PREWHERE cluster(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23)), toLowCardinality(23)), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 512 FROM tab__fuzz_0 PREWHERE cluster(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23)), toLowCardinality(23)), 23, currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 826 out of 1000 SELECT 512 FROM tab__fuzz_3 WHERE sum(if((a >= 0) AND (b != materialize(materialize(100))) AND greater(c, (a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 220), 1, 0)) Error on processing query 'SELECT 512 FROM tab__fuzz_3 WHERE sum(if((a >= 0) AND (b != materialize(materialize(100))) AND greater(c, (a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 220), 1, 0))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 512 FROM tab__fuzz_3 WHERE sum(if((a >= 0) AND (b != materialize(materialize(100))) AND greater(c, (a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 220), 1, 0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 827 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 828 out of 1000 SELECT 512 FROM tab__fuzz_0 PREWHERE if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0)) Error on processing query 'SELECT 512 FROM tab__fuzz_0 PREWHERE if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 512 FROM tab__fuzz_0 PREWHERE if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 829 out of 1000 SELECT toLowCardinality(512) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 830 out of 1000 SELECT toLowCardinality(512) FROM tab__fuzz_2 Got boring AST Fuzzing step 831 out of 1000 SELECT toLowCardinality(512) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 832 out of 1000 SELECT toLowCardinality(512) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 833 out of 1000 SELECT toLowCardinality(512) FROM tab__fuzz_0 Got boring AST Fuzzing step 834 out of 1000 SELECT toLowCardinality(512) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 835 out of 1000 SELECT toLowCardinality(512) FROM tab__fuzz_3 Got boring AST Fuzzing step 836 out of 1000 SELECT toLowCardinality(512) FROM tab__fuzz_3 Got boring AST Fuzzing step 837 out of 1000 SELECT toLowCardinality(512) FROM tab__fuzz_3 Got boring AST Fuzzing step 838 out of 1000 SELECT toLowCardinality(512) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 839 out of 1000 SELECT toLowCardinality(512) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 840 out of 1000 SELECT toLowCardinality(512) FROM tab__fuzz_0 Got boring AST Fuzzing step 841 out of 1000 SELECT toLowCardinality(512) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 842 out of 1000 SELECT toLowCardinality(512) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 843 out of 1000 SELECT toLowCardinality(materialize(512)) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 844 out of 1000 SELECT toLowCardinality(materialize(512)) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 845 out of 1000 SELECT materialize(512) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 846 out of 1000 EXPLAIN PIPELINE header = true SELECT if((a >= 0) AND (c > 220), 1, toLowCardinality(0)), 512 FROM tab__fuzz_3 Error on processing query 'EXPLAIN PIPELINE header = true SELECT if((a >= 0) AND (c > 220), 1, toLowCardinality(0)), 512 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 847 out of 1000 SELECT materialize(512) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 848 out of 1000 SELECT materialize(512) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 849 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 850 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 851 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 852 out of 1000 SELECT 512 FROM tab__fuzz_3 WHERE toUInt8((number / 2) % 2) Error on processing query 'SELECT 512 FROM tab__fuzz_3 WHERE toUInt8((number / 2) % 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT 512 FROM tab__fuzz_3 WHERE toUInt8((number / 2) % 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 853 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 854 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 855 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 856 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 857 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 858 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 859 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 860 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 861 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 512 FROM tab__fuzz_3 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 512 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('512'): 512 FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 862 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_3 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('512'): 512 FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 863 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 864 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 865 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 866 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 867 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 868 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 869 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 870 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 871 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 872 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 873 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 874 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 875 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 876 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT 512 FROM tab__fuzz_2 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT 512 FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 877 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 878 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 879 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 880 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 881 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 882 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 883 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 884 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 885 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 886 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 887 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 888 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 889 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 890 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 891 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 892 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 893 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 894 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 895 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 896 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 897 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 898 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 899 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 900 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 901 out of 1000 SELECT 512 FROM tab__fuzz_0 GROUP BY sum(if((a >= toUInt128(toUInt256(0))) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS, materialize(toLowCardinality(toFixedString(' ', 1))), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), (number / materialize(2)) % 2 Error on processing query 'SELECT 512 FROM tab__fuzz_0 GROUP BY sum(if((a >= toUInt128(toUInt256(0))) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS, materialize(toLowCardinality(toFixedString(' ', 1))), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), (number / materialize(2)) % 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 512 FROM tab__fuzz_0 GROUP BY sum(if((a >= toUInt128(toUInt256(0))) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS, materialize(toLowCardinality(toFixedString(' ', 1))), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), (number / materialize(2)) % 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 902 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 903 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 904 out of 1000 SELECT 512 FROM tab__fuzz_3 PREWHERE (r1 * 100) / plus(r1) Error on processing query 'SELECT 512 FROM tab__fuzz_3 PREWHERE (r1 * 100) / plus(r1)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'r1' in scope SELECT 512 FROM tab__fuzz_3 PREWHERE (r1 * 100) / plus(r1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 905 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 906 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 907 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 908 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 909 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 910 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 911 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 912 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 913 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 914 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 915 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 916 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 917 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 918 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 919 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 920 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 921 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 922 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 923 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 924 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 925 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 926 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 927 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 928 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 929 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 930 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 931 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 932 out of 1000 EXPLAIN PIPELINE compact = true SELECT 512 FROM tab__fuzz_1 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 512 FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 933 out of 1000 SELECT 512 FROM tab__fuzz_1 WHERE sum(if((a >= toNullable(toNullable(0))) AND (b != materialize(100)) AND (c > 220), 1, 0)) Error on processing query 'SELECT 512 FROM tab__fuzz_1 WHERE sum(if((a >= toNullable(toNullable(0))) AND (b != materialize(100)) AND (c > 220), 1, 0))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 512 FROM tab__fuzz_1 WHERE sum(if((a >= toNullable(toNullable(0))) AND (b != materialize(100)) AND (c > 220), 1, 0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 934 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 935 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 936 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 937 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 938 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 939 out of 1000 SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 940 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 941 out of 1000 SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 942 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 943 out of 1000 SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 944 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 945 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 946 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 947 out of 1000 SELECT 512 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 948 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 949 out of 1000 SELECT 512 FROM tab__fuzz_0 Got boring AST Fuzzing step 950 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 951 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 952 out of 1000 SELECT 512 FROM tab__fuzz_3 Got boring AST Fuzzing step 953 out of 1000 SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 954 out of 1000 EXPLAIN PIPELINE SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 955 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('512'): 512 FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 956 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 958 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 959 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 960 out of 1000 EXPLAIN PIPELINE SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 961 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 962 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 963 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 964 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 965 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 966 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 967 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 968 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 969 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 970 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 971 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_1 Got boring AST Fuzzing step 972 out of 1000 SELECT 512 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 973 out of 1000 EXPLAIN PIPELINE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 974 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 512 FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 512 FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('512'): 512 FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 975 out of 1000 EXPLAIN PIPELINE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 976 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 977 out of 1000 EXPLAIN PIPELINE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 978 out of 1000 EXPLAIN ESTIMATE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 979 out of 1000 EXPLAIN AST SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 980 out of 1000 EXPLAIN ESTIMATE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 981 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 982 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 983 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 984 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 985 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 986 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 987 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 988 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 989 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 512 FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('512'): 512 FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 990 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 991 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 992 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 993 out of 1000 EXPLAIN QUERY TREE SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 994 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 995 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 996 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 997 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 998 out of 1000 EXPLAIN SYNTAX SELECT 512 FROM tab__fuzz_2 Got boring AST Fuzzing step 999 out of 1000 EXPLAIN SELECT 512 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab WHERE id = 1 Got boring AST Fuzzing step 2 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 GROUP BY toFixedString(toFixedString(' ', toNullable(1)), 1) Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 GROUP BY toFixedString(toFixedString(' ', toNullable(1)), 1)': Received from localhost:9000. DB::Exception: Column default.tab__fuzz_0.haystack is not under aggregate function and not in GROUP BY keys. In query SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 GROUP BY toFixedString(toFixedString(' ', toNullable(1)), 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033593a48 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 4 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 5 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = materialize(1) Got boring AST Fuzzing step 6 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = materialize(toLowCardinality(1)) Query succeeded, using this AST as a start Fuzzing step 7 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = materialize(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = materialize(1)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 8 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = materialize(toLowCardinality(1)) Got boring AST Fuzzing step 9 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = materialize(toLowCardinality(1)) Got boring AST Fuzzing step 10 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = materialize(toLowCardinality(1)) Got boring AST Fuzzing step 11 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 12 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toLowCardinality(1) WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 13 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 14 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toLowCardinality(1) WHERE id = materialize(1) Got boring AST Fuzzing step 15 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toLowCardinality(1) WHERE id = materialize(1) Got boring AST Fuzzing step 16 out of 1000 SELECT countSubstringsCaseInsensitive(pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = materialize(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = materialize(1)': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitive(pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 17 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toLowCardinality(1) WHERE id = materialize(1) Got boring AST Fuzzing step 18 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toLowCardinality(1) WHERE id = materialize(1) Got boring AST Fuzzing step 19 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 20 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 21 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = materialize(1) Got boring AST Fuzzing step 22 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 23 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 24 out of 1000 EXPLAIN QUERY TREE run_passes = true SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = materialize(1) Error on processing query 'EXPLAIN QUERY TREE run_passes = true SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = materialize(1)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "run_passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 25 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = materialize(1) Got boring AST Fuzzing step 26 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 27 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 28 out of 1000 SELECT countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = materialize(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = materialize(1)': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 29 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = materialize(1) Got boring AST Fuzzing step 30 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 31 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 32 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = materialize(1) Query succeeded, using this AST as a start Fuzzing step 33 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = materialize(1) Got boring AST Fuzzing step 34 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = materialize(1) Got boring AST Fuzzing step 35 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 36 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 37 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 38 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 39 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 40 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 41 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 42 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 43 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE equals((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), id, 1) Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE equals((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), id, 1)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE equals((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(100)) AND (c = 0), id, 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 44 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 45 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 46 out of 1000 SELECT countSubstringsCaseInsensitive(sum(multiIf(in(s, toUInt8((number / toUInt256(8)) % toUInt128(materialize(toFixedString(toFixedString(' ', toUInt128(1)), 1), toUInt256(2)))), ('a', 'b')), 1, 0)) IGNORE NULLS, haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(sum(multiIf(in(s, toUInt8((number / toUInt256(8)) % toUInt128(materialize(toFixedString(toFixedString(' ', toUInt128(1)), 1), toUInt256(2)))), ('a', 'b')), 1, 0)) IGNORE NULLS, haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT countSubstringsCaseInsensitive(sum(multiIf(in(s, toUInt8((number / toUInt256(8)) % toUInt128(materialize(toFixedString(toFixedString(' ', toUInt128(1)), 1), toUInt256(2)))), ('a', 'b')), 1, 0)) IGNORE NULLS, haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 47 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 48 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = toNullable(toUInt256(1)) Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = toNullable(toUInt256(1))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = toNullable(toUInt256(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 49 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 50 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 51 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 52 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(1) WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 53 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(1) WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 54 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(1) WHERE id = 1 Got boring AST Fuzzing step 55 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(materialize(toUInt128(1))) WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(materialize(sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))), toUInt128(1))) WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(materialize(sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))), toUInt128(1))) WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(materialize(sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))), toUInt128(1))) WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 57 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, t__fuzz_28, pattern) FROM tab__fuzz_0 PREWHERE equals(tab__fuzz_11, id, materialize(toUInt128(1))) WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, t__fuzz_28, pattern) FROM tab__fuzz_0 PREWHERE equals(tab__fuzz_11, id, materialize(toUInt128(1))) WHERE id = 1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_28' in scope SELECT countSubstringsCaseInsensitive(haystack, t__fuzz_28, pattern) FROM tab__fuzz_0 PREWHERE equals(tab__fuzz_11, id, materialize(toUInt128(1))) WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 58 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(materialize(toUInt128(1))) WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 59 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(materialize(toUInt128(1))) WHERE id = 1 Got boring AST Fuzzing step 60 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(materialize(1)) WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(materialize(1)) WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(materialize(1)) WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 61 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(materialize(toUInt128(1))) WHERE id = 1 Got boring AST Fuzzing step 62 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(materialize(toUInt128(1))) WHERE id = 1 Got boring AST Fuzzing step 63 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(materialize(toUInt128(1))) WHERE id = 1 Got boring AST Fuzzing step 64 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(materialize(toUInt128(1))) WHERE equals(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(materialize(toUInt128(1))) WHERE equals(1)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(materialize(toUInt128(1))) WHERE equals(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 65 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE equals(modulo(number / toNullable(8), toFixedString('aaaxxxaa\0xxx', toUInt256(12)), toUInt128(2)), id, materialize(materialize(toUInt128(1)))) WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE equals(modulo(number / toNullable(8), toFixedString('aaaxxxaa\0xxx', toUInt256(12)), toUInt128(2)), id, materialize(materialize(toUInt128(1)))) WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE equals(modulo(number / toNullable(8), toFixedString('aaaxxxaa\0xxx', toUInt256(12)), toUInt128(2)), id, materialize(materialize(toUInt128(1)))) WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 66 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(materialize(toUInt128(1))) WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 SELECT countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_3 PREWHERE id = materialize(toUInt128(1)) WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_3 PREWHERE id = materialize(toUInt128(1)) WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_3 PREWHERE id = materialize(toUInt128(1)) WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 68 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(toUInt128(1)) WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 69 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(toUInt128(1)) WHERE id = 1 Got boring AST Fuzzing step 70 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(toUInt128(1)) WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(toUInt128(1)) WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(toUInt128(1)) WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 71 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toUInt128(1) WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toUInt128(1) WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toUInt128(1) WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toUInt128(1) WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 73 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toUInt128(1) WHERE id = 1 Got boring AST Fuzzing step 74 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toUInt128(1) WHERE equals(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toUInt128(1) WHERE equals(1)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toUInt128(1) WHERE equals(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 75 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toUInt128(1) WHERE id = 1 Got boring AST Fuzzing step 76 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toUInt128(1) WHERE id = 1 Got boring AST Fuzzing step 77 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 78 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 79 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, toLowCardinality(' ', toLowCardinality(toUInt256(1))), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, toLowCardinality(' ', toLowCardinality(toUInt256(1))), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT countSubstringsCaseInsensitive(haystack, toLowCardinality(' ', toLowCardinality(toUInt256(1))), pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 80 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 81 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 83 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 84 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toNullable(toUInt256(1)) WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toNullable(toUInt256(1)) WHERE id = 1 Got boring AST Fuzzing step 86 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toNullable(toUInt256(1)) WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toNullable(toUInt256(1)) WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toNullable(toUInt256(1)) WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 87 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toNullable(toUInt256(1)) WHERE id = 1 Got boring AST Fuzzing step 88 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toNullable(toUInt256(1)) WHERE id = 1 Got boring AST Fuzzing step 89 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toNullable(1) WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 90 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toNullable(1) WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toNullable(1) WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toNullable(1) WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 91 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toNullable(1) WHERE id = 1 Got boring AST Fuzzing step 92 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toNullable(1) WHERE id = 1 Got boring AST Fuzzing step 93 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toNullable(1) WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toNullable(1) WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toNullable(1) WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 94 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 96 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 98 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 99 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 100 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 101 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 1 WHERE id = 1 Got boring AST Fuzzing step 102 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = materialize(1) Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = materialize(1)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 1 WHERE id = materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 103 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 105 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 106 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE id = 1 GROUP BY number / 512, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), 23), 23), currentDatabase(t__fuzz_24), t) Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE id = 1 GROUP BY number / 512, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), 23), 23), currentDatabase(t__fuzz_24), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE id = 1 GROUP BY number / 512, cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards'), 23), 23), currentDatabase(t__fuzz_24), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 107 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 108 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 109 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 110 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE equals(nums__fuzz_12, id, 1) Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE equals(nums__fuzz_12, id, 1)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_12' in scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE equals(nums__fuzz_12, id, 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 111 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 112 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 113 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 114 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 115 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 116 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 117 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 118 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 119 out of 1000 SELECT countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 120 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12, 12), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT toFixedString('aaaxxxaa\0xxx', 12, 12), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString('aaaxxxaa\0xxx', 12, 12), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 121 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 122 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 123 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 124 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE id = 1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE id = 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE id = 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 125 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE id = 1 Got boring AST Fuzzing step 126 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 127 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 128 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 129 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 130 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 131 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 132 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 133 out of 1000 SELECT toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 134 out of 1000 SELECT toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 135 out of 1000 SELECT toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 136 out of 1000 SELECT toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 137 out of 1000 SELECT toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100), 23)), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE round(divide(count()), (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100) Error on processing query 'SELECT toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100), 23)), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE round(divide(count()), (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100)': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100), 23)), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE round(divide(count()), (sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count()) * 100). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 31. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 Fuzzing step 138 out of 1000 SELECT toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 139 out of 1000 SELECT toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 140 out of 1000 SELECT toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 141 out of 1000 SELECT toFixedString(toFixedString('test_cluster_two_shards', 23, (sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), materialize(1)) IGNORE NULLS) * 100, 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT toFixedString(toFixedString('test_cluster_two_shards', 23, (sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), materialize(1)) IGNORE NULLS) * 100, 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toFixedString(toFixedString('test_cluster_two_shards', 23, (sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), materialize(1)) IGNORE NULLS) * 100, 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 142 out of 1000 SELECT toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 143 out of 1000 SELECT toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 144 out of 1000 SELECT toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 145 out of 1000 SELECT toFixedString(toFixedString(toFixedString(if((a >= toLowCardinality(0)) AND 1, 1, 0), 'test_cluster_two_shards', 23), 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toFixedString(toFixedString(toFixedString(if((a >= toLowCardinality(0)) AND 1, 1, 0), 'test_cluster_two_shards', 23), 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toFixedString(toFixedString(toFixedString(if((a >= toLowCardinality(0)) AND 1, 1, 0), 'test_cluster_two_shards', 23), 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 146 out of 1000 SELECT toFixedString(toFixedString(toFixedString(23), 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toFixedString(toFixedString(toFixedString(23), 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toFixedString(toFixedString(toFixedString(23), 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 147 out of 1000 SELECT toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 148 out of 1000 SELECT toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 149 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT toFixedString('test_cluster_two_shards', 23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 150 out of 1000 EXPLAIN ESTIMATE SELECT toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN ESTIMATE SELECT toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 151 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23, 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23, 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString('test_cluster_two_shards', 23, 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 152 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 23, 23, countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_2 Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23), 23, 23, countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT toFixedString('test_cluster_two_shards', 23), 23, 23, countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 153 out of 1000 SELECT toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_2 Error on processing query 'SELECT toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 154 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23, 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23, 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString('test_cluster_two_shards', 23, 23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 155 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 156 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 157 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 158 out of 1000 SELECT toFixedString(materialize('test_cluster_two_shards'), 23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toFixedString(materialize('test_cluster_two_shards'), 23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT toFixedString(materialize('test_cluster_two_shards'), 23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 159 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), id = 1, 12) Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), id = 1, 12)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString('test_cluster_two_shards', 23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), id = 1, 12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 160 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 161 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT toFixedString('test_cluster_two_shards', 23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 162 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 163 out of 1000 SELECT 'test_cluster_two_shards', toUInt128(23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 SELECT 'test_cluster_two_shards', toUInt128(23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 165 out of 1000 SELECT 'test_cluster_two_shards', toUInt128(23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'test_cluster_two_shards', toUInt128(23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT 'test_cluster_two_shards', toUInt128(23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 166 out of 1000 SELECT 'test_cluster_two_shards', toUInt128(23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 167 out of 1000 SELECT 'test_cluster_two_shards', toUInt128(23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 168 out of 1000 SELECT 'test_cluster_two_shards', toUInt128(23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 GROUP BY toUInt128(1), sum(if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), toNullable(100)) AND (c = 0), 1, 0)), tab__fuzz_24 Error on processing query 'SELECT 'test_cluster_two_shards', toUInt128(23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 GROUP BY toUInt128(1), sum(if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), toNullable(100)) AND (c = 0), 1, 0)), tab__fuzz_24': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 'test_cluster_two_shards', toUInt128(23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 GROUP BY toUInt128(1), sum(if((a >= 0) AND notEquals(b, toLowCardinality(toLowCardinality(23)), materialize(toNullable(23)), toNullable(100)) AND (c = 0), 1, 0)), tab__fuzz_24. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 169 out of 1000 SELECT 'test_cluster_two_shards', toUInt128(23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 170 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 171 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 172 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 173 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 174 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 175 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 176 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 177 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 45 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 178 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 179 out of 1000 SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 180 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 181 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 182 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 183 out of 1000 SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 184 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 185 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 186 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 187 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 188 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 45 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 189 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 190 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 191 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 192 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 193 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 194 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 195 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 196 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 197 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 198 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 199 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 200 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 201 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 202 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 203 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 204 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 205 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT 'test_cluster_two_shards', 23, 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 206 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 207 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 208 out of 1000 SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE toUInt8((number / toNullable(round((sum(multiIf(s IN (('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100), materialize(2))) % 2) Error on processing query 'SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE toUInt8((number / toNullable(round((sum(multiIf(s IN (('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100), materialize(2))) % 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE toUInt8((number / toNullable(round((sum(multiIf(s IN tuple(('a', 'b')), 1, 0)) IGNORE NULLS / count()) * 100), materialize(2))) % 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 209 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 210 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 211 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 212 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 213 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 214 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 215 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 216 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 217 out of 1000 SELECT 'test_cluster_two_shards', 23, materialize(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 218 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 219 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 220 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 221 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 222 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 223 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 224 out of 1000 SELECT materialize('test_cluster_two_shards'), toNullable(23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 225 out of 1000 SELECT materialize('test_cluster_two_shards'), toNullable(23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT materialize('test_cluster_two_shards'), toNullable(23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT materialize('test_cluster_two_shards'), toNullable(23), 23, 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 226 out of 1000 SELECT materialize('test_cluster_two_shards'), toNullable(23), toNullable(23), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 227 out of 1000 SELECT materialize('test_cluster_two_shards'), toNullable(23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 228 out of 1000 SELECT materialize('test_cluster_two_shards'), toNullable(23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT materialize('test_cluster_two_shards'), toNullable(23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT materialize('test_cluster_two_shards'), toNullable(23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 229 out of 1000 SELECT materialize('test_cluster_two_shards'), toNullable(23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 230 out of 1000 SELECT materialize('test_cluster_two_shards'), toNullable(23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 231 out of 1000 SELECT materialize('test_cluster_two_shards'), toNullable(23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE b != 100 Error on processing query 'SELECT materialize('test_cluster_two_shards'), toNullable(23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE b != 100': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT materialize('test_cluster_two_shards'), toNullable(23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE b != 100. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 232 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 233 out of 1000 SELECT 'test_cluster_two_shards', toNullable(if(greaterOrEquals(0) AND (b != 100) AND greater((number / 4) % toNullable(2), c, 220), 1, 0), 23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT 'test_cluster_two_shards', toNullable(if(greaterOrEquals(0) AND (b != 100) AND greater((number / 4) % toNullable(2), c, 220), 1, 0), 23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope SELECT 'test_cluster_two_shards', toNullable(if(greaterOrEquals(0) AND (b != 100) AND greater((number / 4) % toNullable(2), c, 220), 1, 0), 23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 234 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 235 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 236 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 237 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 238 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'test_cluster_two_shards', toNullable(23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT 'test_cluster_two_shards', toNullable(23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 239 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), toNullable(materialize(23)), 23, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 240 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 241 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 242 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 243 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 244 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 245 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitive(haystack, toFixedString('test_cluster_two_shards', 23, toLowCardinality(23)), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 246 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 247 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 248 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 249 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 250 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 251 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 252 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, tab__fuzz_44, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, tab__fuzz_44, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'tab__fuzz_44' in scope SELECT countSubstringsCaseInsensitive(haystack, tab__fuzz_44, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 253 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 254 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 255 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 256 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 WHERE nums__fuzz_45 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 WHERE nums__fuzz_45': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_45' in scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 WHERE nums__fuzz_45. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 257 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_2 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 1, should be 2 or 3: While processing countSubstringsCaseInsensitive(haystack): While processing SELECT countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 258 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 259 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 260 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 261 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 262 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 263 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 264 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 265 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 266 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 267 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 268 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 269 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 270 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 271 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 272 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 273 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 274 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 275 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 276 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 277 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 278 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 279 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 WHERE equals(c, toLowCardinality(1), 0) Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 WHERE equals(c, toLowCardinality(1), 0)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 WHERE equals(c, toLowCardinality(1), 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 280 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 281 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 282 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 283 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 284 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 285 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 286 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 287 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 288 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 289 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 290 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 291 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 292 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 293 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 294 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 295 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 296 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 297 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 298 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 299 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 300 out of 1000 SELECT countSubstringsCaseInsensitive(number / 1024, haystack, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitive(number / 1024, haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT countSubstringsCaseInsensitive(number / 1024, haystack, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 301 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 302 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 303 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 304 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 305 out of 1000 SELECT countSubstringsCaseInsensitive(pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitive(pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitive(pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 306 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 308 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 309 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 310 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 311 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 312 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 313 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 314 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 315 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 316 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 317 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 318 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 319 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 320 out of 1000 SELECT sum(multiIf(s IN toLowCardinality(('a', 'b')), 1, 0)) IGNORE NULLS, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT sum(multiIf(s IN toLowCardinality(('a', 'b')), 1, 0)) IGNORE NULLS, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT sum(multiIf(s IN toLowCardinality(('a', 'b')), 1, 0)) IGNORE NULLS, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 321 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 322 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 323 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 324 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 325 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 326 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 327 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 328 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 329 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 330 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 331 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 332 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 333 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 334 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 335 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 336 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 337 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 338 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 339 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 340 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 341 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 342 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 343 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 344 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 345 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 346 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 347 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 348 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 349 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 350 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 351 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 352 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 353 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 354 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 355 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 356 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 357 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 358 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 359 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 360 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 361 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 362 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 363 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 364 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 365 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 366 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 367 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 368 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 369 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 370 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 371 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 372 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 373 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 374 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 375 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 377 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 378 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 379 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 380 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 381 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 382 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 383 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 384 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 385 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 386 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 387 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 388 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 389 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 390 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 391 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 392 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 393 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 394 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 395 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 396 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 397 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 398 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 399 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 400 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 401 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 402 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, multiIf(s IN ('a', 'b'), 1, toNullable(0)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, multiIf(s IN ('a', 'b'), 1, toNullable(0)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT countSubstringsCaseInsensitive(haystack, multiIf(s IN ('a', 'b'), 1, toNullable(0)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 403 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, toNullable(toNullable(23)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, toNullable(toNullable(23)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, toNullable(toNullable(23)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 404 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 405 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 406 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 407 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 408 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 409 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 410 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 411 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 412 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 413 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 414 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 415 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 416 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 417 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 418 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 419 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE (number / toUInt256(2)) % 2 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE (number / toUInt256(2)) % 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE (number / toUInt256(2)) % 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 420 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 421 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 422 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 423 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 424 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 425 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 426 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 427 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 428 out of 1000 SELECT Log, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT Log, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression identifier 'Log' in scope SELECT Log, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 429 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) IGNORE NULLS Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) IGNORE NULLS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 430 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 431 out of 1000 EXPLAIN PIPELINE compact = true SELECT (sum(multiIf(s IN ('a', 'b'), toNullable(materialize(toNullable(toNullable(1)))), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT (sum(multiIf(s IN ('a', 'b'), toNullable(materialize(toNullable(toNullable(1)))), toUInt256(1), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 432 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE toUInt256(8) Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE toUInt256(8)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x0000000034e16cd8 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000034e00ca0 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0eea9 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 13. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 18. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 19. ? @ 0x00007fa035818ac3 20. ? @ 0x00007fa0358aa850 Fuzzing step 433 out of 1000 EXPLAIN PIPELINE header = true SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN PIPELINE header = true SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 434 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 435 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 436 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 437 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 438 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 439 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 440 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 441 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 442 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 443 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 444 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 445 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitive'): countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 446 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 447 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 448 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 449 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 450 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 451 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 452 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 453 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 454 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 455 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 456 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 457 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 458 out of 1000 SELECT countSubstringsCaseInsensitive(countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitive(countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstrings: In scope SELECT countSubstringsCaseInsensitive(countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd5759e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 459 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 460 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 461 out of 1000 SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 463 out of 1000 EXPLAIN PIPELINE header = true SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN PIPELINE header = true SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 464 out of 1000 SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 465 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 466 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 467 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 468 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 469 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 470 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 471 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 472 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 473 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 474 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 ('toLowCardinality'): toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 475 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 476 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 477 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 478 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 479 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 480 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 ('toLowCardinality'): toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 481 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 482 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 483 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 484 out of 1000 EXPLAIN SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 EXPLAIN SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 486 out of 1000 EXPLAIN AST SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 487 out of 1000 EXPLAIN AST SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 488 out of 1000 EXPLAIN AST SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 489 out of 1000 EXPLAIN AST SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 490 out of 1000 EXPLAIN AST SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 491 out of 1000 EXPLAIN AST SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 492 out of 1000 EXPLAIN AST SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 493 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 494 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 495 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 496 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 497 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 498 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 499 out of 1000 SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 500 out of 1000 SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_0 Error on processing query 'SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 501 out of 1000 SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 503 out of 1000 SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 504 out of 1000 SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(pattern) FROM tab__fuzz_0 Error on processing query 'SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 505 out of 1000 SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 506 out of 1000 SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 507 out of 1000 SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 508 out of 1000 SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE toLowCardinality(toLowCardinality(toFixedString(' ', 1))) Error on processing query 'SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE toLowCardinality(toLowCardinality(toFixedString(' ', 1)))': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: LowCardinality(FixedString(1)). In query SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE toLowCardinality(toLowCardinality(toFixedString(' ', 1))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 509 out of 1000 EXPLAIN optimize = true SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN optimize = true SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "optimize" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496cdff 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 510 out of 1000 SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE version_pair[materialize(materialize(toNullable(1)))] Error on processing query 'SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE version_pair[materialize(materialize(toNullable(1)))]': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT toLowCardinality(' '), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE version_pair[materialize(materialize(toNullable(1)))]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 511 out of 1000 SELECT ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 512 out of 1000 SELECT ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 513 out of 1000 SELECT ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 514 out of 1000 SELECT ' ', toLowCardinality(toUInt128(t__fuzz_38, 1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) Error on processing query 'SELECT ' ', toLowCardinality(toUInt128(t__fuzz_38, 1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE sum(if((b != 100) AND (c = 0), 1, toUInt128(0)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_38' in scope SELECT ' ', toLowCardinality(toUInt128(t__fuzz_38, 1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE sum(if((b != 100) AND (c = 0), 1, toUInt128(0))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 515 out of 1000 SELECT ' ', toUInt128(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE (sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(sum(if(and(c = 0), 1, 0)) IGNORE NULLS, materialize(1)) IGNORE NULLS) * 100 Error on processing query 'SELECT ' ', toUInt128(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE (sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(sum(if(and(c = 0), 1, 0)) IGNORE NULLS, materialize(1)) IGNORE NULLS) * 100': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT ' ', toUInt128(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE (sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(sum(if(and(c = 0), 1, 0)) IGNORE NULLS, materialize(1)) IGNORE NULLS) * 100. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 516 out of 1000 SELECT ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 517 out of 1000 SELECT ' ', toLowCardinality(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT ' ', toLowCardinality(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT ' ', toLowCardinality(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 518 out of 1000 SELECT ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE materialize(toNullable(materialize(toUInt256(1)))) Error on processing query 'SELECT ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE materialize(toNullable(materialize(toUInt256(1))))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE materialize(toNullable(materialize(toUInt256(1)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 519 out of 1000 SELECT ' ', toUInt128(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT ' ', toUInt128(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT ' ', toUInt128(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 520 out of 1000 EXPLAIN PIPELINE SELECT ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 EXPLAIN SELECT ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 522 out of 1000 EXPLAIN TABLE OVERRIDE SELECT ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('' ''): ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 523 out of 1000 EXPLAIN AST SELECT ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 EXPLAIN SYNTAX SELECT ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 525 out of 1000 EXPLAIN SYNTAX SELECT ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 526 out of 1000 EXPLAIN AST SELECT ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 527 out of 1000 EXPLAIN AST SELECT ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 528 out of 1000 EXPLAIN SELECT ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 529 out of 1000 EXPLAIN AST SELECT ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 530 out of 1000 EXPLAIN AST SELECT ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 531 out of 1000 EXPLAIN AST SELECT ' ', toLowCardinality(toUInt128(1)), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 532 out of 1000 SELECT ' ', toLowCardinality(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 533 out of 1000 SELECT ' ', toLowCardinality(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT ' ', toLowCardinality(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT ' ', toLowCardinality(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 534 out of 1000 SELECT ' ', toLowCardinality(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE (a >= 0) AND (b != 100) AND 1 AND (c > 220) GROUP BY id = toNullable(1), toUInt128(toLowCardinality(1)), (a >= toUInt256(toNullable(toNullable(1)))) AND 1 Error on processing query 'SELECT ' ', toLowCardinality(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE (a >= 0) AND (b != 100) AND 1 AND (c > 220) GROUP BY id = toNullable(1), toUInt128(toLowCardinality(1)), (a >= toUInt256(toNullable(toNullable(1)))) AND 1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT ' ', toLowCardinality(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE (a >= 0) AND (b != 100) AND 1 AND (c > 220) GROUP BY id = toNullable(1), toUInt128(toLowCardinality(1)), (a >= toUInt256(toNullable(toNullable(1)))) AND 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 535 out of 1000 SELECT ' ', toLowCardinality(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 536 out of 1000 SELECT ' ', toLowCardinality(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT ' ', toLowCardinality(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT ' ', toLowCardinality(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 537 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 538 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 539 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 540 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 541 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 542 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 543 out of 1000 EXPLAIN PIPELINE SELECT nums__fuzz_29, ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN PIPELINE SELECT nums__fuzz_29, ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_29' in scope SELECT nums__fuzz_29, ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 544 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 545 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 546 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 547 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 548 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 549 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 550 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 551 out of 1000 SELECT ' ', toUInt128(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 552 out of 1000 SELECT ' ', toUInt128(1), countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 553 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 555 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 556 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 557 out of 1000 SELECT or2, ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT or2, ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression identifier 'or2' in scope SELECT or2, ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 558 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 559 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 560 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 561 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 562 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 563 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 564 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 565 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 566 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 567 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, materialize(toNullable(256)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, materialize(toNullable(256)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, materialize(toNullable(256)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 568 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE (a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)) Error on processing query 'SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE (a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE (a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 569 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 570 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 571 out of 1000 SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT ' ', 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 572 out of 1000 SELECT toFixedString(' ', 1), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 573 out of 1000 SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE toLowCardinality(toLowCardinality(toUInt128(23))) Error on processing query 'SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE toLowCardinality(toLowCardinality(toUInt128(23)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x0000000034e16cd8 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000034e00ca0 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0eea9 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 13. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 18. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 19. ? @ 0x00007fa035818ac3 20. ? @ 0x00007fa0358aa850 Fuzzing step 574 out of 1000 SELECT toFixedString(' ', 1), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 575 out of 1000 SELECT toFixedString(' ', 1), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toFixedString(' ', 1), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT toFixedString(' ', 1), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 576 out of 1000 SELECT toFixedString(' ', 1), 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 577 out of 1000 SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 578 out of 1000 SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 579 out of 1000 SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 580 out of 1000 SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 581 out of 1000 SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE 38 Query succeeded, using this AST as a start Fuzzing step 582 out of 1000 SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE 9223372036854775806 Error on processing query 'SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE 9223372036854775806': Received from localhost:9000. DB::Exception: Illegal type UInt64 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x0000000037f9adfa 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x0000000038d06faa 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::MergeTreeDataSelectExecutor::filterPartsByVirtualColumns(std::shared_ptr const&, DB::MergeTreeData const&, std::vector, std::allocator>> const&, DB::ActionsDAG const*, std::shared_ptr) @ 0x0000000039a5472c 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::buildIndexes(std::optional&, DB::ActionsDAG const*, DB::MergeTreeData const&, std::vector, std::allocator>> const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003bf2f170 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1639: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000003bf2e127 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000003c1827e4 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000003c1822fe 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c129752 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 583 out of 1000 SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE 38 Error on processing query 'SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE 38': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE 38. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 584 out of 1000 SELECT ' ', 1, 1, countSubstringsCaseInsensitive(toLowCardinality(toUInt256(1)), haystack, pattern) FROM tab__fuzz_2 PREWHERE 38 Error on processing query 'SELECT ' ', 1, 1, countSubstringsCaseInsensitive(toLowCardinality(toUInt256(1)), haystack, pattern) FROM tab__fuzz_2 PREWHERE 38': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function countSubstringsCaseInsensitive: In scope SELECT ' ', 1, 1, countSubstringsCaseInsensitive(toLowCardinality(toUInt256(1)), haystack, pattern) FROM tab__fuzz_2 PREWHERE 38. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd65127 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 585 out of 1000 SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 PREWHERE 38 Query succeeded, using this AST as a start Fuzzing step 586 out of 1000 SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE 38 GROUP BY sum(x4 AND x5, multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), 0)) IGNORE NULLS / count() Error on processing query 'SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE 38 GROUP BY sum(x4 AND x5, multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), 0)) IGNORE NULLS / count()': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x4' in scope SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 PREWHERE 38 GROUP BY sum(x4 AND x5, multiIf(s IN ('a', 'b'), materialize(toFixedString(' ', toLowCardinality(toUInt128(1))), toLowCardinality(toUInt128(1))), 0)) IGNORE NULLS / count(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 587 out of 1000 SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE 38 Error on processing query 'SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE 38': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 PREWHERE 38. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 588 out of 1000 SELECT ' ', 1, 1, pattern, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 PREWHERE 38 Query succeeded, using this AST as a start Fuzzing step 589 out of 1000 SELECT ' ', 1, 1, pattern, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 590 out of 1000 SELECT ' ', 1, 1, pattern, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 591 out of 1000 SELECT toNullable(' '), 1, 1, pattern, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 592 out of 1000 SELECT toNullable(' '), 1, 1, pattern, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 593 out of 1000 SELECT toNullable(' '), 1, 1, pattern, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE 38 Error on processing query 'SELECT toNullable(' '), 1, 1, pattern, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE 38': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT toNullable(' '), 1, 1, pattern, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE 38. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 594 out of 1000 SELECT toNullable(' '), 1, 1, pattern, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 WHERE 38 Got boring AST Fuzzing step 595 out of 1000 SELECT toNullable(' '), 1, 1, pattern, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE 38 Error on processing query 'SELECT toNullable(' '), 1, 1, pattern, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE 38': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitive: In scope SELECT toNullable(' '), 1, 1, pattern, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE 38. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 596 out of 1000 SELECT ' ', 1, 1, pattern, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 597 out of 1000 SELECT ' ', 1, 1, countSubstringsCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 598 out of 1000 SELECT ' ', 1, 1 FROM tab__fuzz_3 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 599 out of 1000 SELECT ' ', 1, 1 FROM tab__fuzz_1 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 600 out of 1000 SELECT ' ', 1, 1 FROM tab__fuzz_1 WHERE 38 Got boring AST Fuzzing step 601 out of 1000 SELECT ' ', 1, 1 FROM tab__fuzz_2 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 602 out of 1000 EXPLAIN PIPELINE compact = true SELECT ' ', 1, 1 FROM tab__fuzz_1 WHERE 38 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT ' ', 1, 1 FROM tab__fuzz_1 WHERE 38': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 603 out of 1000 EXPLAIN PIPELINE header = true SELECT ' ', toNullable(toUInt256(1)), toNullable(1) FROM tab__fuzz_2 WHERE 38 Error on processing query 'EXPLAIN PIPELINE header = true SELECT ' ', toNullable(toUInt256(1)), toNullable(1) FROM tab__fuzz_2 WHERE 38': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 604 out of 1000 SELECT ' ', 1, 1 FROM tab__fuzz_2 WHERE 38 Got boring AST Fuzzing step 605 out of 1000 SELECT ' ', 1, 1 FROM tab__fuzz_2 WHERE -2 Error on processing query 'SELECT ' ', 1, 1 FROM tab__fuzz_2 WHERE -2': Received from localhost:9000. DB::Exception: Illegal type Int8 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x0000000034e16cd8 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000034e00ca0 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0eea9 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 13. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 18. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 19. ? @ 0x00007fa035818ac3 20. ? @ 0x00007fa0358aa850 Fuzzing step 606 out of 1000 SELECT ' ', 1, 1 FROM tab__fuzz_2 WHERE 1048575 Error on processing query 'SELECT ' ', 1, 1 FROM tab__fuzz_2 WHERE 1048575': Received from localhost:9000. DB::Exception: Illegal type UInt32 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x0000000034e16cd8 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000034e00ca0 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0eea9 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 13. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 18. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 19. ? @ 0x00007fa035818ac3 20. ? @ 0x00007fa0358aa850 Fuzzing step 607 out of 1000 SELECT ' ', 1, 1 FROM tab__fuzz_2 WHERE 38 Got boring AST Fuzzing step 608 out of 1000 SELECT ' ', 1, 1 FROM tab__fuzz_2 PREWHERE t__fuzz_12 WHERE 38 Error on processing query 'SELECT ' ', 1, 1 FROM tab__fuzz_2 PREWHERE t__fuzz_12 WHERE 38': Received from localhost:9000. DB::Exception: Unknown expression identifier 't__fuzz_12' in scope SELECT ' ', 1, 1 FROM tab__fuzz_2 PREWHERE t__fuzz_12 WHERE 38. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 609 out of 1000 SELECT ' ', 1, 1 FROM tab__fuzz_0 WHERE '9223372036854775806' Error on processing query 'SELECT ' ', 1, 1 FROM tab__fuzz_0 WHERE '9223372036854775806'': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: String. In query SELECT ' ', 1, 1 FROM tab__fuzz_0 WHERE '9223372036854775806'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 610 out of 1000 SELECT ' ', 1, 1 FROM tab__fuzz_3 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 611 out of 1000 SELECT ' ', 1, 1 FROM tab__fuzz_3 WHERE 38 Got boring AST Fuzzing step 612 out of 1000 SELECT ' ', 1, 1 FROM tab__fuzz_1 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 613 out of 1000 SELECT ' ', 1, 1 FROM tab__fuzz_1 WHERE 38 Got boring AST Fuzzing step 614 out of 1000 SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 615 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 616 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 617 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Got boring AST Fuzzing step 618 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Got boring AST Fuzzing step 619 out of 1000 SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_2 WHERE 2147483646 Error on processing query 'SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_2 WHERE 2147483646': Received from localhost:9000. DB::Exception: Illegal type UInt32 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x0000000034e16cd8 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000034e00ca0 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0eea9 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 13. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 18. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 19. ? @ 0x00007fa035818ac3 20. ? @ 0x00007fa0358aa850 Fuzzing step 620 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Got boring AST Fuzzing step 621 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Got boring AST Fuzzing step 622 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('toLowCardinality'): toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 623 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 624 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Got boring AST Fuzzing step 625 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Got boring AST Fuzzing step 626 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('toLowCardinality'): toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 627 out of 1000 EXPLAIN AST SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 628 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 629 out of 1000 EXPLAIN AST SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 630 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 631 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 632 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 633 out of 1000 EXPLAIN AST SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 634 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('toLowCardinality'): toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 635 out of 1000 EXPLAIN AST SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Got boring AST Fuzzing step 636 out of 1000 EXPLAIN AST SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Got boring AST Fuzzing step 637 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 638 out of 1000 SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 SELECT toLowCardinality(' '), 1, 1 FROM tab__fuzz_1 WHERE 38 Got boring AST Fuzzing step 640 out of 1000 SELECT toLowCardinality(toLowCardinality(toNullable(' '))), 1, 1 FROM tab__fuzz_1 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 641 out of 1000 SELECT toLowCardinality(toLowCardinality(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0), toNullable(number / toNullable(8), ' '))), 1, 1 FROM tab__fuzz_1 WHERE 38 Error on processing query 'SELECT toLowCardinality(toLowCardinality(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0), toNullable(number / toNullable(8), ' '))), 1, 1 FROM tab__fuzz_1 WHERE 38': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toLowCardinality(toLowCardinality(if((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), 1, 0), toNullable(number / toNullable(8), ' '))), 1, 1 FROM tab__fuzz_1 WHERE 38. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 642 out of 1000 SELECT toLowCardinality(toNullable(' ')), toNullable(1), 1 FROM tab__fuzz_1 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 643 out of 1000 SELECT toLowCardinality(toNullable(' ')), toNullable(1), 1 FROM tab__fuzz_3 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 644 out of 1000 SELECT toLowCardinality(toNullable(' ')), toNullable(1), 1 FROM tab__fuzz_0 WHERE 38 Query succeeded, using this AST as a start Fuzzing step 645 out of 1000 SELECT toLowCardinality(toNullable(' ')), toNullable(1), 1 FROM tab__fuzz_0 WHERE 38 Got boring AST Fuzzing step 646 out of 1000 SELECT toLowCardinality(toNullable(' ')), toNullable(1), 1 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 647 out of 1000 SELECT toNullable(' '), toNullable(1), 1 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 648 out of 1000 SELECT toNullable(' '), toNullable(1), 1 FROM tab__fuzz_2 GROUP BY toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23) Query succeeded, using this AST as a start Fuzzing step 649 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toNullable(' '), toNullable(1), 1 FROM tab__fuzz_3 GROUP BY toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toNullable(' '), toNullable(1), 1 FROM tab__fuzz_3 GROUP BY toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('toNullable'): toNullable(' '), toNullable(1), 1 FROM tab__fuzz_3 GROUP BY toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 650 out of 1000 SELECT toNullable(toNullable(1)) / count(), toNullable(' '), 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString('test_cluster_two_shards', toUInt256(23)), 23 Error on processing query 'SELECT toNullable(toNullable(1)) / count(), toNullable(' '), 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString('test_cluster_two_shards', toUInt256(23)), 23': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 4]. In scope SELECT toNullable(toNullable(1)) / count(), toNullable(' '), 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString('test_cluster_two_shards', toUInt256(23)), 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 651 out of 1000 SELECT toNullable(' '), toNullable(1), 1 FROM tab__fuzz_1 PREWHERE countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) GROUP BY toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23) Error on processing query 'SELECT toNullable(' '), toNullable(1), 1 FROM tab__fuzz_1 PREWHERE countSubstrings(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) GROUP BY toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23)': Received from localhost:9000. DB::Exception: Illegal type UInt64 of column countSubstrings(_CAST('aaaxxxaa\0xxx'_FixedString(12), 'FixedString(12)'_String), pattern) for filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000a853ded 4. ./build_docker/./src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:98: DB::QueryPlanOptimizations::findInOutputs(DB::ActionsDAG&, String const&, bool) @ 0x000000003c1c9bf1 5. ./build_docker/./src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:138: DB::QueryPlanOptimizations::QueryDAG::buildImpl(DB::QueryPlan::Node&, std::vector>&) @ 0x000000003c1ca5de 6. ./build_docker/./src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:150: DB::QueryPlanOptimizations::QueryDAG::buildImpl(DB::QueryPlan::Node&, std::vector>&) @ 0x000000003c1ca37c 7. ./build_docker/./src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:0: DB::QueryPlanOptimizations::QueryDAG::build(DB::QueryPlan::Node&) @ 0x000000003c1caacd 8. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeUseAggregateProjection.cpp:456: DB::QueryPlanOptimizations::getAggregateProjectionCandidates(DB::QueryPlan::Node&, DB::AggregatingStep&, DB::ReadFromMergeTree&, std::shared_ptr, std::equal_to, std::allocator>>> const&, bool) @ 0x000000003c1a19d5 9. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeUseAggregateProjection.cpp:0: DB::QueryPlanOptimizations::optimizeUseAggregateProjections(DB::QueryPlan::Node&, std::list>&, bool) @ 0x000000003c1a8915 10. ./contrib/llvm-project/libcxx/include/optional:344: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c12a12b 11. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 652 out of 1000 SELECT toNullable(' '), toNullable(t__fuzz_28, 1), 1 FROM tab__fuzz_1 GROUP BY toFixedString('test_cluster_two_shards', toUInt256(23)), 23 Error on processing query 'SELECT toNullable(' '), toNullable(t__fuzz_28, 1), 1 FROM tab__fuzz_1 GROUP BY toFixedString('test_cluster_two_shards', toUInt256(23)), 23': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_28' in scope SELECT toNullable(' '), toNullable(t__fuzz_28, 1), 1 FROM tab__fuzz_1 GROUP BY toFixedString('test_cluster_two_shards', toUInt256(23)), 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 653 out of 1000 SELECT toNullable(' '), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23) Query succeeded, using this AST as a start Fuzzing step 654 out of 1000 SELECT toNullable(' '), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23) Got boring AST Fuzzing step 655 out of 1000 SELECT toNullable(' '), 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString('test_cluster_two_shards', toUInt256(23), 23) Error on processing query 'SELECT toNullable(' '), 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString('test_cluster_two_shards', toUInt256(23), 23)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toNullable(' '), 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString('test_cluster_two_shards', toUInt256(23), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 656 out of 1000 SELECT toNullable(' '), 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString(toFixedString('test_cluster_two_shards', 23), 23) Query succeeded, using this AST as a start Fuzzing step 657 out of 1000 SELECT toNullable(' '), 1, 1 FROM tab__fuzz_1 GROUP BY toFixedString(toFixedString('test_cluster_two_shards', 23), 23) Query succeeded, using this AST as a start Fuzzing step 658 out of 1000 SELECT toNullable(' '), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString(toFixedString('test_cluster_two_shards', 23), 23) Query succeeded, using this AST as a start Fuzzing step 659 out of 1000 SELECT toNullable(' '), 1, toNullable(1) FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23, 23) WITH ROLLUP Error on processing query 'SELECT toNullable(' '), 1, toNullable(1) FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23, 23) WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toNullable(' '), 1, toNullable(1) FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23, 23) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 660 out of 1000 SELECT toNullable(' '), 1, 1 FROM tab__fuzz_2 WITH TOTALS Error on processing query 'SELECT toNullable(' '), 1, 1 FROM tab__fuzz_2 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 661 out of 1000 SELECT toNullable(toLowCardinality(' ')), 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString(toFixedString('test_cluster_two_shards', 23), 23) Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 SELECT toNullable(toLowCardinality(' ')), 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString(toFixedString('test_cluster_two_shards', 23), 23) Got boring AST Fuzzing step 663 out of 1000 SELECT toNullable(' '), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), 23 Error on processing query 'SELECT toNullable(' '), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), 23': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT toNullable(' '), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 664 out of 1000 SELECT toNullable(toLowCardinality(' ')), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23, 23) Error on processing query 'SELECT toNullable(toLowCardinality(' ')), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23, 23)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toNullable(toLowCardinality(' ')), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23, 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 665 out of 1000 SELECT toNullable(toLowCardinality(' ')), 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString(toFixedString('test_cluster_two_shards'), 23) Error on processing query 'SELECT toNullable(toLowCardinality(' ')), 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString(toFixedString('test_cluster_two_shards'), 23)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toNullable(toLowCardinality(' ')), 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString(toFixedString('test_cluster_two_shards'), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 666 out of 1000 SELECT toNullable(toLowCardinality(' ')), 1, 1 FROM tab__fuzz_1 GROUP BY toFixedString(toFixedString('test_cluster_two_shards', 23), 23) Query succeeded, using this AST as a start Fuzzing step 667 out of 1000 SELECT toNullable(toLowCardinality(' ')), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString(toFixedString('test_cluster_two_shards', 23), 23) Query succeeded, using this AST as a start Fuzzing step 668 out of 1000 SELECT toNullable(' '), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), 23 Error on processing query 'SELECT toNullable(' '), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), 23': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT toNullable(' '), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 669 out of 1000 SELECT toNullable(toLowCardinality(xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11))))), ' ')), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), 23 Error on processing query 'SELECT toNullable(toLowCardinality(xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11))))), ' ')), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), 23': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x2' in scope SELECT toNullable(toLowCardinality(xor(xor(xor(x2, x3)), xor(xor(x6, x7), xor(x8, xor(x9, xor(x10, x11))))), ' ')), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 670 out of 1000 SELECT toNullable(toLowCardinality(' ')), 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString(toFixedString('test_cluster_two_shards', 23), 23) Query succeeded, using this AST as a start Fuzzing step 671 out of 1000 SELECT toNullable(toLowCardinality(' ')), toNullable(1), toLowCardinality(toUInt256(1)) FROM tab__fuzz_2 GROUP BY toFixedString(toFixedString(toLowCardinality(toNullable('test_cluster_two_shards')), 23), 23) Query succeeded, using this AST as a start Fuzzing step 672 out of 1000 EXPLAIN PIPELINE SELECT toNullable(toLowCardinality(' ')), toNullable(1), toLowCardinality(toUInt256(1)) FROM tab__fuzz_2 GROUP BY toFixedString(toLowCardinality(toNullable('test_cluster_two_shards')), 23, 23) Error on processing query 'EXPLAIN PIPELINE SELECT toNullable(toLowCardinality(' ')), toNullable(1), toLowCardinality(toUInt256(1)) FROM tab__fuzz_2 GROUP BY toFixedString(toLowCardinality(toNullable('test_cluster_two_shards')), 23, 23)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toNullable(toLowCardinality(' ')), toNullable(1), toLowCardinality(toUInt256(1)) FROM tab__fuzz_2 GROUP BY toFixedString(toLowCardinality(toNullable('test_cluster_two_shards')), 23, 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 673 out of 1000 SELECT toNullable(' '), toNullable(1), toLowCardinality(1) FROM tab__fuzz_3 GROUP BY toFixedString(toLowCardinality(toNullable('test_cluster_two_shards')), 23, 23) Error on processing query 'SELECT toNullable(' '), toNullable(1), toLowCardinality(1) FROM tab__fuzz_3 GROUP BY toFixedString(toLowCardinality(toNullable('test_cluster_two_shards')), 23, 23)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toNullable(' '), toNullable(1), toLowCardinality(1) FROM tab__fuzz_3 GROUP BY toFixedString(toLowCardinality(toNullable('test_cluster_two_shards')), 23, 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 674 out of 1000 SELECT toNullable(toLowCardinality(' ')), toNullable(1), toLowCardinality(toUInt256(1)) FROM tab__fuzz_2 GROUP BY toFixedString(toFixedString(t__fuzz_38, toLowCardinality(toNullable('test_cluster_two_shards')), 23), 23) Error on processing query 'SELECT toNullable(toLowCardinality(' ')), toNullable(1), toLowCardinality(toUInt256(1)) FROM tab__fuzz_2 GROUP BY toFixedString(toFixedString(t__fuzz_38, toLowCardinality(toNullable('test_cluster_two_shards')), 23), 23)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_38' in scope SELECT toNullable(toLowCardinality(' ')), toNullable(1), toLowCardinality(toUInt256(1)) FROM tab__fuzz_2 GROUP BY toFixedString(toFixedString(t__fuzz_38, toLowCardinality(toNullable('test_cluster_two_shards')), 23), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 675 out of 1000 SELECT toNullable(toLowCardinality(' ')), 1, toUInt256(1) FROM tab__fuzz_3 GROUP BY toFixedString(toLowCardinality(toNullable('test_cluster_two_shards')), 23), 23 Error on processing query 'SELECT toNullable(toLowCardinality(' ')), 1, toUInt256(1) FROM tab__fuzz_3 GROUP BY toFixedString(toLowCardinality(toNullable('test_cluster_two_shards')), 23), 23': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT toNullable(toLowCardinality(' ')), 1, toUInt256(1) FROM tab__fuzz_3 GROUP BY toFixedString(toLowCardinality(toNullable('test_cluster_two_shards')), 23), 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 676 out of 1000 SELECT toNullable(toLowCardinality(' ')), toNullable(1), toLowCardinality(toUInt256(1)) FROM tab__fuzz_0 GROUP BY toFixedString(toFixedString(toLowCardinality(toNullable('test_cluster_two_shards')), 23), toLowCardinality(23)) Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 SELECT toNullable(toLowCardinality(' ')), 1, toLowCardinality(toUInt256(1)) FROM tab__fuzz_3 GROUP BY toFixedString(toLowCardinality(toNullable('test_cluster_two_shards')), 23), toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 678 out of 1000 SELECT toNullable(toLowCardinality(' ')), 1, toLowCardinality(toUInt256(1)) FROM tab__fuzz_3 GROUP BY toFixedString(toLowCardinality(toNullable('test_cluster_two_shards')), 23), toLowCardinality(23) Got boring AST Fuzzing step 679 out of 1000 SELECT toNullable(toLowCardinality(' ')), 1, toLowCardinality(toUInt256(1)) FROM tab__fuzz_3 GROUP BY toFixedString(toLowCardinality(toNullable('test_cluster_two_shards')), 23), 23 Error on processing query 'SELECT toNullable(toLowCardinality(' ')), 1, toLowCardinality(toUInt256(1)) FROM tab__fuzz_3 GROUP BY toFixedString(toLowCardinality(toNullable('test_cluster_two_shards')), 23), 23': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT toNullable(toLowCardinality(' ')), 1, toLowCardinality(toUInt256(1)) FROM tab__fuzz_3 GROUP BY toFixedString(toLowCardinality(toNullable('test_cluster_two_shards')), 23), 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 680 out of 1000 SELECT toNullable(toLowCardinality(' ')), toLowCardinality(1), toLowCardinality(toUInt256(1)) FROM tab__fuzz_3 GROUP BY toFixedString(toNullable('test_cluster_two_shards'), 23), toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 681 out of 1000 SELECT toNullable(toLowCardinality(' ')), toLowCardinality(1), toLowCardinality(toUInt256(1)) FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 682 out of 1000 SELECT toLowCardinality(' '), toLowCardinality(1), toLowCardinality(1) FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 683 out of 1000 SELECT toLowCardinality(' '), toLowCardinality(1), toLowCardinality(1) FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), 23 Error on processing query 'SELECT toLowCardinality(' '), toLowCardinality(1), toLowCardinality(1) FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), 23': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT toLowCardinality(' '), toLowCardinality(1), toLowCardinality(1) FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 684 out of 1000 SELECT toLowCardinality(' '), 1, toLowCardinality(1) FROM tab__fuzz_1 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 685 out of 1000 SELECT toLowCardinality(' '), 1, toLowCardinality(1) FROM tab__fuzz_1 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) Got boring AST Fuzzing step 686 out of 1000 SELECT toLowCardinality(' '), 1, toLowCardinality(1) FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 SELECT toLowCardinality(' '), 1, toLowCardinality(1) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23) Error on processing query 'SELECT toLowCardinality(' '), 1, toLowCardinality(1) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23)': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT toLowCardinality(' '), 1, toLowCardinality(1) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 688 out of 1000 SELECT toLowCardinality(toLowCardinality(toNullable(toFixedString(' ', 1)))), 1, toLowCardinality(1) FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 689 out of 1000 SELECT toLowCardinality(toNullable(toFixedString(' ', 1))), 1, toLowCardinality(toLowCardinality(1)) FROM tab__fuzz_3 WITH TOTALS Error on processing query 'SELECT toLowCardinality(toNullable(toFixedString(' ', 1))), 1, toLowCardinality(toLowCardinality(1)) FROM tab__fuzz_3 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 690 out of 1000 SELECT toLowCardinality(toLowCardinality(toNullable(toFixedString(' ', 1)))), 1, toLowCardinality(1) FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(toNullable(toUInt128(23))) Query succeeded, using this AST as a start Fuzzing step 691 out of 1000 SELECT toLowCardinality(toLowCardinality(toNullable(toFixedString(' ', 1)))), 1, toLowCardinality(1) FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(toNullable(toUInt128(23))) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 692 out of 1000 SELECT toLowCardinality(toLowCardinality(toFixedString(' ', 1))), 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(toUInt128(23)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 693 out of 1000 SELECT toLowCardinality(toLowCardinality(toFixedString(' ', 1))), 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(toUInt128(23)) WITH ROLLUP Error on processing query 'SELECT toLowCardinality(toLowCardinality(toFixedString(' ', 1))), 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(toUInt128(23)) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT toLowCardinality(toLowCardinality(toFixedString(' ', 1))), 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(toUInt128(23)) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 694 out of 1000 SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(toUInt128(23)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 695 out of 1000 SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 696 out of 1000 SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 697 out of 1000 SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) WITH ROLLUP Got boring AST Fuzzing step 698 out of 1000 EXPLAIN PIPELINE header = true SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM tab__fuzz_1 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE header = true SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1 FROM tab__fuzz_1 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) WITH ROLLUP': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 699 out of 1000 SELECT toFixedString(' ', 1), 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 700 out of 1000 SELECT ' ', 1, 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23) WITH ROLLUP Error on processing query 'SELECT ' ', 1, 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 4]. In scope SELECT ' ', 1, 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 701 out of 1000 SELECT toFixedString(' ', 1), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23) WITH ROLLUP Error on processing query 'SELECT toFixedString(' ', 1), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT toFixedString(' ', 1), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 702 out of 1000 SELECT toFixedString(' ', 1), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), 23 WITH ROLLUP Error on processing query 'SELECT toFixedString(' ', 1), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), 23 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT toFixedString(' ', 1), 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), 23 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 703 out of 1000 SELECT toFixedString(' ', 1), 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString(23), toLowCardinality(23) WITH ROLLUP Error on processing query 'SELECT toFixedString(' ', 1), 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString(23), toLowCardinality(23) WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toFixedString(' ', 1), 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString(23), toLowCardinality(23) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 704 out of 1000 SELECT toFixedString(' ', 1), 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) WITH ROLLUP WITH CUBE Error on processing query 'SELECT toFixedString(' ', 1), 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) WITH ROLLUP WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 172 ('CUBE'): CUBE. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 705 out of 1000 SELECT toFixedString(' ', 1), 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(materialize(23)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 706 out of 1000 SELECT toFixedString(' ', 1), 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 707 out of 1000 SELECT toFixedString(' ', 1), 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) WITH ROLLUP Got boring AST Fuzzing step 708 out of 1000 SELECT ' ', 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 709 out of 1000 SELECT ' ', 1, 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 710 out of 1000 SELECT ' ', 1, 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 711 out of 1000 SELECT ' ', 1, 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) * 20, 23) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) * 20, 23) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT ' ', 1, 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) * 20, 23) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 712 out of 1000 SELECT ' ', 1, 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 713 out of 1000 SELECT ' ', 1, 1, 1 FROM tab__fuzz_1 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 714 out of 1000 SELECT materialize(' '), 1, 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 715 out of 1000 SELECT materialize(' '), 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 716 out of 1000 SELECT materialize(' '), 1, 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 717 out of 1000 SELECT materialize(' '), 1, 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', toUInt256(23)), toLowCardinality(23) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 718 out of 1000 SELECT materialize(' '), 1, toLowCardinality(toUInt128(1)), 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', toUInt256(23)), toLowCardinality(23) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 719 out of 1000 SELECT materialize(' '), 1, toLowCardinality(toUInt128(1)), 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', toUInt256(23)), toLowCardinality(23) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 720 out of 1000 SELECT materialize(' '), 1, toLowCardinality(1), 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 721 out of 1000 SELECT ' ', 1, toLowCardinality(1), 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT ' ', 1, toLowCardinality(1), 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 4]. In scope SELECT ' ', 1, toLowCardinality(1), 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 722 out of 1000 SELECT materialize(' '), 1, toLowCardinality(1), toLowCardinality(toNullable(1)) FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 723 out of 1000 SELECT materialize(' '), 1, toLowCardinality(1), toLowCardinality(toNullable(1)) FROM tab__fuzz_1 PREWHERE test_alias__fuzz_27 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23) WITH TOTALS Error on processing query 'SELECT materialize(' '), 1, toLowCardinality(1), toLowCardinality(toNullable(1)) FROM tab__fuzz_1 PREWHERE test_alias__fuzz_27 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression identifier 'test_alias__fuzz_27' in scope SELECT materialize(' '), 1, toLowCardinality(1), toLowCardinality(toNullable(1)) FROM tab__fuzz_1 PREWHERE test_alias__fuzz_27 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 724 out of 1000 SELECT ' ', 1, toLowCardinality(1), toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(toUInt256(23)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 725 out of 1000 SELECT ' ', toNullable(1), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(toUInt256(23)) WITH TOTALS Error on processing query 'SELECT ' ', toNullable(1), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(toUInt256(23)) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 4]. In scope SELECT ' ', toNullable(1), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(toUInt256(23)) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 726 out of 1000 SELECT ' ', 1, toLowCardinality(1), toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(toUInt256(23)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 727 out of 1000 SELECT ' ', 1, toLowCardinality(1), toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(toUInt256(23)) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 728 out of 1000 SELECT ' ', 1, toLowCardinality(1), toLowCardinality(toNullable(1)) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toUInt256(toNullable(23)), toLowCardinality(toUInt256(23)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 729 out of 1000 SELECT ' ', 1, toLowCardinality(1), toLowCardinality(toNullable(1)) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toLowCardinality(toUInt256(23)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 730 out of 1000 EXPLAIN SYNTAX SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 731 out of 1000 EXPLAIN SYNTAX SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 732 out of 1000 EXPLAIN SYNTAX SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 733 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 734 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 49 ('' ''): ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 735 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 736 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 737 out of 1000 EXPLAIN ESTIMATE SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 738 out of 1000 EXPLAIN AST SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 739 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 740 out of 1000 EXPLAIN ESTIMATE SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 EXPLAIN ESTIMATE SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 742 out of 1000 EXPLAIN SYNTAX SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 743 out of 1000 EXPLAIN SYNTAX SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 744 out of 1000 EXPLAIN SYNTAX SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 745 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 49 ('' ''): ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 746 out of 1000 EXPLAIN SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 747 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 49 ('' ''): ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 748 out of 1000 EXPLAIN SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 749 out of 1000 EXPLAIN SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 750 out of 1000 EXPLAIN SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 751 out of 1000 EXPLAIN SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 752 out of 1000 EXPLAIN SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 753 out of 1000 EXPLAIN SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 754 out of 1000 EXPLAIN PIPELINE SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 755 out of 1000 EXPLAIN PIPELINE SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 756 out of 1000 EXPLAIN PIPELINE SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 757 out of 1000 EXPLAIN PIPELINE SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 758 out of 1000 EXPLAIN SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 759 out of 1000 EXPLAIN SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 760 out of 1000 EXPLAIN SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 761 out of 1000 EXPLAIN SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 762 out of 1000 EXPLAIN SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 763 out of 1000 SELECT ' ', toNullable(1), 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 764 out of 1000 SELECT ' ', toNullable(1), 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 765 out of 1000 SELECT ' ', toNullable(1), 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 766 out of 1000 SELECT ' ', toNullable(1), 1, toLowCardinality(toNullable(23), 1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', toNullable(1), 1, toLowCardinality(toNullable(23), 1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT ' ', toNullable(1), 1, toLowCardinality(toNullable(23), 1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 767 out of 1000 SELECT ' ', toNullable(1), 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 768 out of 1000 SELECT ' ', toNullable(1), 1, toLowCardinality(1) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 769 out of 1000 SELECT ' ', toNullable(1), 1, toLowCardinality(1) FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toNullable(23), 23 WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', toNullable(1), 1, toLowCardinality(1) FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toNullable(23), 23 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 4]. In scope SELECT ' ', toNullable(1), 1, toLowCardinality(1) FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toNullable(23), 23 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 770 out of 1000 SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 771 out of 1000 SELECT ' ', 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 772 out of 1000 SELECT ' ', 1, 1, 1 FROM tab__fuzz_0 GROUP BY 'test_cluster_two_shards', 23, toUInt256(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1 FROM tab__fuzz_0 GROUP BY 'test_cluster_two_shards', 23, toUInt256(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 4]. In scope SELECT ' ', 1, 1, 1 FROM tab__fuzz_0 GROUP BY 'test_cluster_two_shards', 23, toUInt256(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 773 out of 1000 SELECT ' ', 1, 1, toLowCardinality(materialize(1)) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 774 out of 1000 SELECT ' ', 1, 1, toLowCardinality(materialize(1)) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 775 out of 1000 SELECT ' ', 1, 1, materialize(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 776 out of 1000 SELECT ' ', 1, 1, materialize(1) FROM tab__fuzz_0 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 777 out of 1000 SELECT ' ', 1, 1, materialize(1) FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 778 out of 1000 EXPLAIN PIPELINE SELECT ' ', 1, 1, materialize(1) FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toNullable(23), 23 WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN PIPELINE SELECT ' ', 1, 1, materialize(1) FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toNullable(23), 23 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 4]. In scope SELECT ' ', 1, 1, materialize(1) FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toNullable(23), 23 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 779 out of 1000 SELECT ' ', 1, 1, materialize(1) FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 780 out of 1000 SELECT ' ', 1, 1, materialize(1) FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 781 out of 1000 SELECT ' ', 1, 1, materialize(1) FROM tab__fuzz_1 PREWHERE if((a >= materialize(toNullable(toNullable(0)))) AND 1 AND (c > 220), toUInt256(1), toLowCardinality(toNullable(0))) GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, materialize(1) FROM tab__fuzz_1 PREWHERE if((a >= materialize(toNullable(toNullable(0)))) AND 1 AND (c > 220), toUInt256(1), toLowCardinality(toNullable(0))) GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT ' ', 1, 1, materialize(1) FROM tab__fuzz_1 PREWHERE if((a >= materialize(toNullable(toNullable(0)))) AND 1 AND (c > 220), toUInt256(1), toLowCardinality(toNullable(0))) GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 782 out of 1000 SELECT materialize(toFixedString(' ', 1)), 1, 1, materialize(1) FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 783 out of 1000 SELECT materialize(toFixedString(' ', 1)), 1, 1, materialize(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(23), toUInt256(toLowCardinality(23)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 784 out of 1000 SELECT materialize(toFixedString(' ', toLowCardinality(1))), 1, 1, materialize(1) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toNullable(toLowCardinality(toUInt128(23))), toUInt256(toLowCardinality(23)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 785 out of 1000 SELECT materialize(toFixedString(' ', toLowCardinality(1))), 1, 1, materialize(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toNullable(toLowCardinality(toUInt128(23))), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 786 out of 1000 SELECT materialize(toFixedString(' ', toLowCardinality(1))), 1, 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toNullable(toLowCardinality(toUInt128(23))), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 787 out of 1000 SELECT toFixedString(' ', toLowCardinality(1)), 1, 1, 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toNullable(toLowCardinality(toUInt128(23))), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 788 out of 1000 SELECT toFixedString(' ', 1), 1, 1, 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toNullable(toLowCardinality(23)), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 789 out of 1000 SELECT toFixedString(' ', 1), 1, 1, 1 FROM tab__fuzz_1 GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 790 out of 1000 SELECT toFixedString(' ', 1), 1, 1, 1 FROM tab__fuzz_1 GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 791 out of 1000 SELECT toFixedString(' ', 1), 1, 1, 1 FROM tab__fuzz_2 GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), 23 WITH CUBE WITH TOTALS Error on processing query 'SELECT toFixedString(' ', 1), 1, 1, 1 FROM tab__fuzz_2 GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), 23 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 4]. In scope SELECT toFixedString(' ', 1), 1, 1, 1 FROM tab__fuzz_2 GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), 23 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 792 out of 1000 SELECT toFixedString(' ', 1), 1, 1, 1 FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 793 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 794 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 795 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), toUInt256(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 796 out of 1000 SELECT ' ', toNullable(1), 1, 1, 1 FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), 23 WITH TOTALS Error on processing query 'SELECT ' ', toNullable(1), 1, 1, 1 FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), 23 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 5]. In scope SELECT ' ', toNullable(1), 1, 1, 1 FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), 23 WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 797 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), 23, toUInt256(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), 23, toUInt256(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 5]. In scope SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), 23, toUInt256(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 798 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), 23, toUInt256(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), 23, toUInt256(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 5]. In scope SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), 23, toUInt256(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 799 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), toUInt256(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 800 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 801 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), toUInt256(toLowCardinality(23)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 802 out of 1000 SELECT ' ', 1, 1, 1, toUInt128(1) FROM tab__fuzz_1 GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), toUInt256(toLowCardinality(23)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 803 out of 1000 SELECT ' ', 1, 1, 1, toUInt128(1) FROM tab__fuzz_1 GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), toUInt256(toLowCardinality(23)) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 804 out of 1000 SELECT ' ', 1, 1, 1, toUInt128(1) FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), toUInt256(toLowCardinality(23)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 805 out of 1000 SELECT ' ', 1, 1, 1, toUInt128(1) FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), 23, toUInt256(toLowCardinality(23)) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, toUInt128(1) FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), 23, toUInt256(toLowCardinality(23)) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 5]. In scope SELECT ' ', 1, 1, 1, toUInt128(1) FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), 23, toUInt256(toLowCardinality(23)) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 806 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 WHERE toLowCardinality(toFixedString(' ', 1)) GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), toUInt256(toLowCardinality(23)) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 WHERE toLowCardinality(toFixedString(' ', 1)) GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), toUInt256(toLowCardinality(23)) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: LowCardinality(FixedString(1)). In query SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 WHERE toLowCardinality(toFixedString(' ', 1)) GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), toUInt256(toLowCardinality(23)) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 807 out of 1000 SELECT ' ', 1, 1, 1, toUInt128(1) FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), 23, toUInt256(toLowCardinality(23)) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, toUInt128(1) FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), 23, toUInt256(toLowCardinality(23)) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 5]. In scope SELECT ' ', 1, 1, 1, toUInt128(1) FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), 23, toUInt256(toLowCardinality(23)) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 808 out of 1000 SELECT ' ', 1, 1, 1, toUInt128(1) FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), toLowCardinality(23), toUInt256(toLowCardinality(23)) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 809 out of 1000 SELECT ' ', 1, 1, 1, toUInt128(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toUInt256(toLowCardinality(23)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 810 out of 1000 SELECT ' ', 1, 1, 1, toUInt128(1) FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toUInt256(toLowCardinality(23)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 811 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 812 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 813 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toNullable(toFixedString('test_cluster_two_shards', 23)), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 814 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toNullable(toFixedString('test_cluster_two_shards', 23)), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 815 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_1 GROUP BY toNullable(toFixedString('test_cluster_two_shards', 23)), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 816 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_1 GROUP BY toNullable(toFixedString('test_cluster_two_shards', 23)), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 817 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_1 GROUP BY toNullable('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_1 GROUP BY toNullable('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_1 GROUP BY toNullable('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 818 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_1 GROUP BY toNullable(toFixedString('test_cluster_two_shards', 23)), toLowCardinality(toLowCardinality(toUInt256(23))), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 819 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_1 GROUP BY toNullable(toFixedString('test_cluster_two_shards', 23)), toLowCardinality(toUInt256(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 820 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toNullable('test_cluster_two_shards', 23), toLowCardinality(toUInt256(toNullable(23))), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toNullable('test_cluster_two_shards', 23), toLowCardinality(toUInt256(toNullable(23))), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toNullable('test_cluster_two_shards', 23), toLowCardinality(toUInt256(toNullable(23))), toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 821 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_1 GROUP BY toNullable(toFixedString('test_cluster_two_shards', 23)), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 822 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY toNullable(toFixedString('test_cluster_two_shards', 23)), 23, toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY toNullable(toFixedString('test_cluster_two_shards', 23)), 23, toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 5]. In scope SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY toNullable(toFixedString('test_cluster_two_shards', 23)), 23, toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 823 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_1 GROUP BY toNullable(toFixedString('test_cluster_two_shards', 23)), 23, toLowCardinality(if((a >= 0) AND notEquals(100) AND (c = 0), 1, 0), 23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_1 GROUP BY toNullable(toFixedString('test_cluster_two_shards', 23)), 23, toLowCardinality(if((a >= 0) AND notEquals(100) AND (c = 0), 1, 0), 23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 5]. In scope SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_1 GROUP BY toNullable(toFixedString('test_cluster_two_shards', 23)), 23, toLowCardinality(if((a >= 0) AND notEquals(100) AND (c = 0), 1, 0), 23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 824 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toNullable(toFixedString('test_cluster_two_shards', 23)), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 825 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toNullable(toFixedString('test_cluster_two_shards', 23)), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 826 out of 1000 EXPLAIN PIPELINE SELECT ' ', toNullable(1), 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 827 out of 1000 EXPLAIN PIPELINE SELECT ' ', toNullable(1), 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 828 out of 1000 EXPLAIN TABLE OVERRIDE SELECT ' ', toNullable(1), 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT ' ', toNullable(1), 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 46 ('' ''): ' ', toNullable(1), 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 829 out of 1000 EXPLAIN QUERY TREE SELECT ' ', toNullable(1), 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 830 out of 1000 EXPLAIN QUERY TREE SELECT ' ', toNullable(1), 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 831 out of 1000 EXPLAIN SELECT ' ', toNullable(1), 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 832 out of 1000 EXPLAIN TABLE OVERRIDE SELECT ' ', toNullable(1), 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT ' ', toNullable(1), 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 46 ('' ''): ' ', toNullable(1), 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 833 out of 1000 EXPLAIN SELECT ' ', toNullable(1), 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 834 out of 1000 EXPLAIN QUERY TREE SELECT ' ', toNullable(1), 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 835 out of 1000 EXPLAIN QUERY TREE SELECT ' ', toNullable(1), 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 836 out of 1000 EXPLAIN ESTIMATE SELECT ' ', toNullable(1), 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 837 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 838 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 839 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', toLowCardinality(23)), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 840 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', tab__fuzz_38, toLowCardinality(23)), 23, toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', tab__fuzz_38, toLowCardinality(23)), 23, toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 5]. In scope SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', tab__fuzz_38, toLowCardinality(23)), 23, toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 841 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', toLowCardinality(23)), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 842 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString('test_cluster_two_shards', toLowCardinality(23)), toLowCardinality(23), 23 WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString('test_cluster_two_shards', toLowCardinality(23)), toLowCardinality(23), 23 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 5]. In scope SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY toFixedString('test_cluster_two_shards', toLowCardinality(23)), toLowCardinality(23), 23 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 843 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toLowCardinality(23), 23 WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toLowCardinality(23), 23 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 5]. In scope SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toLowCardinality(23), 23 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 844 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(test_alias__fuzz_7, 23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(test_alias__fuzz_7, 23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_7' in scope SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), toLowCardinality(23), toLowCardinality(test_alias__fuzz_7, 23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 845 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', toLowCardinality(23)), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 846 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 847 out of 1000 SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 5]. In scope SELECT ' ', 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 848 out of 1000 SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 849 out of 1000 SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 850 out of 1000 SELECT toLowCardinality(toFixedString(' ', 1)), materialize(1), 1, 1, 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toLowCardinality(23), 23 WITH CUBE WITH TOTALS Error on processing query 'SELECT toLowCardinality(toFixedString(' ', 1)), materialize(1), 1, 1, 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toLowCardinality(23), 23 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 5]. In scope SELECT toLowCardinality(toFixedString(' ', 1)), materialize(1), 1, 1, 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toLowCardinality(23), 23 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 851 out of 1000 SELECT toLowCardinality(toFixedString(' ', 1)), 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 852 out of 1000 SELECT toLowCardinality(toFixedString(' ', 1)), 1, toNullable(1), 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 853 out of 1000 SELECT toLowCardinality(toFixedString(' ', 1)), 1, toNullable(1), 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toLowCardinality(23), 23 WITH CUBE WITH TOTALS Error on processing query 'SELECT toLowCardinality(toFixedString(' ', 1)), 1, toNullable(1), 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toLowCardinality(23), 23 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 5]. In scope SELECT toLowCardinality(toFixedString(' ', 1)), 1, toNullable(1), 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toLowCardinality(23), 23 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 854 out of 1000 SELECT toFixedString(' ', 1), 1, toNullable(1), 1, 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 855 out of 1000 SELECT toFixedString(' ', 1), 1, toNullable(1), 1, 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 856 out of 1000 SELECT toFixedString(' ', 1), 1, toNullable(1), 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 857 out of 1000 SELECT toFixedString(' ', 1), 1, toNullable(1), 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 858 out of 1000 SELECT toFixedString(' ', 1), 1, toNullable(1), 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT toFixedString(' ', 1), 1, toNullable(1), 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 5]. In scope SELECT toFixedString(' ', 1), 1, toNullable(1), 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toLowCardinality(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 859 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toLowCardinality(toUInt256(23)), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 860 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toLowCardinality(toUInt256(23)), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 861 out of 1000 EXPLAIN SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY 'test_cluster_two_shards', toLowCardinality(toUInt256(23)), toLowCardinality(23), 23 WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY 'test_cluster_two_shards', toLowCardinality(toUInt256(23)), toLowCardinality(23), 23 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY 'test_cluster_two_shards', toLowCardinality(toUInt256(23)), toLowCardinality(23), 23 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 862 out of 1000 SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 863 out of 1000 SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toUInt256(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toUInt256(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toUInt256(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 864 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', 23, 23, toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', 23, 23, toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', 23, 23, toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 865 out of 1000 SELECT a >= 0, ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(toNullable(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT a >= 0, ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(toNullable(23)), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT a >= 0, ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(toNullable(23)), toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 866 out of 1000 SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_0 GROUP BY 'test_cluster_two_shards', toUInt256(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_0 GROUP BY 'test_cluster_two_shards', toUInt256(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_0 GROUP BY 'test_cluster_two_shards', toUInt256(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 867 out of 1000 SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_1 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 868 out of 1000 SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_0 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 869 out of 1000 SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_1 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 870 out of 1000 SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 871 out of 1000 SELECT ' ', 1, toLowCardinality(toNullable(1)), 1, 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 872 out of 1000 SELECT ' ', 1, toNullable(1), 1, 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 873 out of 1000 SELECT ' ', 1, toNullable(1), 1, 1, 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', 23, 23, toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, toNullable(1), 1, 1, 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', 23, 23, toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, toNullable(1), 1, 1, 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', 23, 23, toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 874 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 875 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH ROLLUP WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH ROLLUP WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 219 ('CUBE'): CUBE WITH TOTALS. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 876 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 877 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 878 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 879 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY materialize(toNullable('test_cluster_two_shards')), toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 880 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_1 GROUP BY materialize(toNullable('test_cluster_two_shards')), toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 881 out of 1000 SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_1 GROUP BY materialize(toNullable('test_cluster_two_shards')), toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 882 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY materialize((a >= 0) AND (b != toNullable(100)) AND (c = 0), toNullable('test_cluster_two_shards')), toUInt256(23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY materialize((a >= 0) AND (b != toNullable(100)) AND (c = 0), toNullable('test_cluster_two_shards')), toUInt256(23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY materialize((a >= 0) AND (b != toNullable(100)) AND (c = 0), toNullable('test_cluster_two_shards')), toUInt256(23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 883 out of 1000 EXPLAIN PIPELINE SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_1 GROUP BY materialize(toNullable('test_cluster_two_shards')), 23, 23, toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN PIPELINE SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_1 GROUP BY materialize(toNullable('test_cluster_two_shards')), 23, 23, toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_1 GROUP BY materialize(toNullable('test_cluster_two_shards')), 23, 23, toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 884 out of 1000 SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_0 GROUP BY materialize(toNullable('test_cluster_two_shards')), toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 885 out of 1000 SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_1 WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_1 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 886 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY materialize(toNullable('test_cluster_two_shards')), toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 887 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY materialize(toNullable('test_cluster_two_shards')), toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 888 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 889 out of 1000 SELECT ' ', 1, 1, 1, 1, toNullable(1) FROM tab__fuzz_2 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 890 out of 1000 SELECT ' ', 1, 1, 1, 1, toNullable(1) FROM tab__fuzz_2 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 891 out of 1000 SELECT ' ', 1, 1, toUInt256(1), 1, toNullable(1) FROM tab__fuzz_2 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, toUInt256(1), 1, toNullable(1) FROM tab__fuzz_2 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, toUInt256(1), 1, toNullable(1) FROM tab__fuzz_2 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 892 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT ' ', 1, 1, 1, toNullable(1), toNullable(1) FROM tab__fuzz_1 GROUP BY toNullable('test_cluster_two_shards'), 23, 23, toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT ' ', 1, 1, 1, toNullable(1), toNullable(1) FROM tab__fuzz_1 GROUP BY toNullable('test_cluster_two_shards'), 23, 23, toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 893 out of 1000 SELECT ' ', 1, 1, 1, 1, toNullable(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality((number / toNullable(2)) % 2, toLowCardinality(toUInt256(23))), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1, toNullable(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality((number / toNullable(2)) % 2, toLowCardinality(toUInt256(23))), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT ' ', 1, 1, 1, 1, toNullable(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality((number / toNullable(2)) % 2, toLowCardinality(toUInt256(23))), toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 894 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 895 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 896 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toUInt256(23), 23, toLowCardinality(toUInt128(23)) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toUInt256(23), 23, toLowCardinality(toUInt128(23)) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toUInt256(23), 23, toLowCardinality(toUInt128(23)) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 897 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 898 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 899 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 900 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toNullable(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toNullable(23)), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toNullable(23)), toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 901 out of 1000 EXPLAIN AST SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(materialize(toLowCardinality(23))), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 902 out of 1000 EXPLAIN AST SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(materialize(toLowCardinality(23))), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 903 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(materialize(toLowCardinality(23))), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(materialize(toLowCardinality(23))), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 53 ('' ''): ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardina. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 904 out of 1000 EXPLAIN SYNTAX SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(materialize(toLowCardinality(23))), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 905 out of 1000 EXPLAIN SYNTAX SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(materialize(toLowCardinality(23))), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 906 out of 1000 EXPLAIN QUERY TREE SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(materialize(toLowCardinality(23))), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 907 out of 1000 EXPLAIN PIPELINE SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(materialize(toLowCardinality(23))), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 908 out of 1000 EXPLAIN TABLE OVERRIDE SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(materialize(toLowCardinality(23))), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(materialize(toLowCardinality(23))), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 48 ('' ''): ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardina. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 909 out of 1000 EXPLAIN PIPELINE SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(materialize(toLowCardinality(23))), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 910 out of 1000 EXPLAIN PIPELINE SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(materialize(toLowCardinality(23))), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 911 out of 1000 EXPLAIN PIPELINE SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(materialize(toLowCardinality(23))), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 912 out of 1000 EXPLAIN SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(materialize(toLowCardinality(23))), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 913 out of 1000 EXPLAIN SYNTAX SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(materialize(toLowCardinality(23))), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 914 out of 1000 SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), toLowCardinality(materialize(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 915 out of 1000 SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), 23, toLowCardinality((intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) * 20) * 1000, materialize(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), 23, toLowCardinality((intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) * 20) * 1000, materialize(23)), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), 23, toLowCardinality((intDiv(toUInt32(rtime), toNullable((sum(multiIf(in(s), 1, 0)) IGNORE NULLS / count(materialize(toLowCardinality(1))) IGNORE NULLS) * toNullable(100), 20)) * 20) * 1000, materialize(23)), toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 916 out of 1000 SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 917 out of 1000 SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(23), 23 WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(23), 23 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, 1, toLowCardinality(1), 1 FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(23), 23 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 918 out of 1000 EXPLAIN PIPELINE SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 919 out of 1000 EXPLAIN PIPELINE SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 920 out of 1000 EXPLAIN ESTIMATE SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 921 out of 1000 EXPLAIN AST SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 922 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 53 ('' ''): ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt25. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 923 out of 1000 EXPLAIN AST SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 924 out of 1000 EXPLAIN AST SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 925 out of 1000 EXPLAIN SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 926 out of 1000 EXPLAIN SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 927 out of 1000 EXPLAIN AST SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 928 out of 1000 EXPLAIN AST SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 929 out of 1000 EXPLAIN SYNTAX SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 930 out of 1000 EXPLAIN SYNTAX SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 931 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 53 ('' ''): ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt25. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 932 out of 1000 EXPLAIN ESTIMATE SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_3 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 933 out of 1000 SELECT toLowCardinality(toNullable(' ')), 1, 1, materialize(toLowCardinality(toNullable(1))), toLowCardinality(1), 1 FROM tab__fuzz_1 GROUP BY toNullable('test_cluster_two_shards'), toUInt256(23), materialize(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 934 out of 1000 SELECT toLowCardinality(toNullable(' ')), 1, 1, materialize(toNullable(1)), toLowCardinality(1), 1 FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), 23, toLowCardinality(23), 23 WITH CUBE WITH TOTALS Error on processing query 'SELECT toLowCardinality(toNullable(' ')), 1, 1, materialize(toNullable(1)), toLowCardinality(1), 1 FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), 23, toLowCardinality(23), 23 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT toLowCardinality(toNullable(' ')), 1, 1, materialize(toNullable(1)), toLowCardinality(1), 1 FROM tab__fuzz_0 GROUP BY toNullable('test_cluster_two_shards'), 23, toLowCardinality(23), 23 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 935 out of 1000 SELECT toLowCardinality(' '), 1, 1, materialize(toLowCardinality(toNullable(materialize(1)))), toLowCardinality(1), 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 936 out of 1000 SELECT toLowCardinality(' '), 1, 1, materialize(toLowCardinality(toNullable(materialize(1)))), toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), toLowCardinality(nums__fuzz_33, 23) WITH CUBE WITH TOTALS Error on processing query 'SELECT toLowCardinality(' '), 1, 1, materialize(toLowCardinality(toNullable(materialize(1)))), toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), toLowCardinality(nums__fuzz_33, 23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_33' in scope SELECT toLowCardinality(' '), 1, 1, materialize(toLowCardinality(toNullable(materialize(1)))), toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), toLowCardinality(nums__fuzz_33, 23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 937 out of 1000 SELECT toLowCardinality(' '), 1, 1, materialize(toLowCardinality(toNullable(materialize(1)))), 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT toLowCardinality(' '), 1, 1, materialize(toLowCardinality(toNullable(materialize(1)))), 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT toLowCardinality(' '), 1, 1, materialize(toLowCardinality(toNullable(materialize(1)))), 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 938 out of 1000 SELECT countSubstrings(pattern), toLowCardinality(' '), 1, 1, materialize(toLowCardinality(toNullable(materialize(1)))), toLowCardinality(1), 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT countSubstrings(pattern), toLowCardinality(' '), 1, 1, materialize(toLowCardinality(toNullable(materialize(1)))), toLowCardinality(1), 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstrings doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstrings(pattern), toLowCardinality(' '), 1, 1, materialize(toLowCardinality(toNullable(materialize(1)))), toLowCardinality(1), 1 FROM tab__fuzz_1 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd56fae 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 939 out of 1000 SELECT materialize(toNullable('test_cluster_two_shards')), toLowCardinality(' '), 1, 1, materialize(toLowCardinality(materialize(1))), toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, 23, toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT materialize(toNullable('test_cluster_two_shards')), toLowCardinality(' '), 1, 1, materialize(toLowCardinality(materialize(1))), toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, 23, toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 7]. In scope SELECT materialize(toNullable('test_cluster_two_shards')), toLowCardinality(' '), 1, 1, materialize(toLowCardinality(materialize(1))), toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, 23, toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 940 out of 1000 SELECT toLowCardinality(' '), 1, 1, materialize(toNullable(materialize(1))), toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), toLowCardinality(materialize(toLowCardinality(23))) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 941 out of 1000 SELECT toLowCardinality(' '), 1, 1, materialize(materialize(1)), toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(' ', toLowCardinality(toUInt256(1)), 23), materialize(toLowCardinality(23)) WITH CUBE WITH TOTALS Error on processing query 'SELECT toLowCardinality(' '), 1, 1, materialize(materialize(1)), toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(' ', toLowCardinality(toUInt256(1)), 23), materialize(toLowCardinality(23)) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT toLowCardinality(' '), 1, 1, materialize(materialize(1)), toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(' ', toLowCardinality(toUInt256(1)), 23), materialize(toLowCardinality(23)) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 942 out of 1000 SELECT ' ', 1, 1, materialize(toNullable(materialize(1))), toLowCardinality(1), 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), materialize(toLowCardinality(23)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 943 out of 1000 SELECT ' ', 1, 1, materialize(toNullable(materialize(1))), 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(toLowCardinality(23)), materialize(toLowCardinality(23)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 944 out of 1000 SELECT ' ', 1, 1, materialize(toNullable(materialize(1))), 1, 1 FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(toLowCardinality(23)), materialize(toLowCardinality(23)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 945 out of 1000 SELECT ' ', 1, 1, materialize(toNullable(materialize(1))), 1, 1 FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(toLowCardinality(23)), materialize(toLowCardinality(23)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 946 out of 1000 SELECT ' ', 1, 1, materialize(toNullable(materialize(1))), 1, toLowCardinality(toNullable(toUInt128(1))) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(toLowCardinality(23)), materialize(toLowCardinality(23)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 947 out of 1000 SELECT ' ', 1, 1, toNullable(materialize(1)), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(toLowCardinality(23)), materialize(toLowCardinality(23)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 948 out of 1000 SELECT ' ', 1, 1, toNullable(materialize(1)), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, toNullable(materialize(1)), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, toNullable(materialize(1)), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 949 out of 1000 SELECT toUInt8((number / materialize(2)) % 2), ' ', 1, 1, toNullable(materialize(1)), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(toLowCardinality(23)), materialize(toLowCardinality(23)) WITH CUBE WITH TOTALS Error on processing query 'SELECT toUInt8((number / materialize(2)) % 2), ' ', 1, 1, toNullable(materialize(1)), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(toLowCardinality(23)), materialize(toLowCardinality(23)) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT toUInt8((number / materialize(2)) % 2), ' ', 1, 1, toNullable(materialize(1)), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(toLowCardinality(23)), materialize(toLowCardinality(23)) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 950 out of 1000 SELECT ' ', 1, 1, toNullable(materialize(1)), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_0 GROUP BY GROUPING SETS (('test_cluster_two_shards', toUInt256(23), toLowCardinality(23), materialize(toLowCardinality(23)))) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, toNullable(materialize(1)), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_0 GROUP BY GROUPING SETS (('test_cluster_two_shards', toUInt256(23), toLowCardinality(23), materialize(toLowCardinality(23)))) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343d54d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 951 out of 1000 SELECT ' ', 1, 1, toNullable(materialize(1)), 1, toNullable(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23), materialize(toLowCardinality(23)) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, toNullable(materialize(1)), 1, toNullable(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23), materialize(toLowCardinality(23)) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, toNullable(materialize(1)), 1, toNullable(1) FROM tab__fuzz_2 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23), materialize(toLowCardinality(23)) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 952 out of 1000 SELECT ' ', 1, 1, toNullable(materialize(1)), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(toLowCardinality(23)), materialize(toLowCardinality(23)) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 953 out of 1000 SELECT ' ', toUInt128(1), 1, toNullable(materialize(1)), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', toUInt128(1), 1, toNullable(materialize(1)), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', toUInt128(1), 1, toNullable(materialize(1)), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 954 out of 1000 SELECT ' ', 1, 1, materialize(1), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(toLowCardinality(23)), materialize(toLowCardinality(23)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 955 out of 1000 SELECT ' ', 1, 1, materialize(1), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23), materialize(toLowCardinality(23)) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, materialize(1), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23), materialize(toLowCardinality(23)) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, materialize(1), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', 23, toLowCardinality(23), materialize(toLowCardinality(23)) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 956 out of 1000 SELECT ' ', 1, 1, 1, 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 SELECT ' ', 1, materialize(1), 1, 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_3 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 958 out of 1000 SELECT ' ', 1, materialize(1), toLowCardinality(toUInt256(1)), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_0 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(toLowCardinality(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 959 out of 1000 SELECT ' ', 1, materialize(1), toUInt256(1), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_0 GROUP BY 'test_cluster_two_shards', toUInt256(23), toLowCardinality(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 960 out of 1000 SELECT ' ', 1, materialize(1), toUInt256(1), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_0 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(23), toLowCardinality(materialize(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 961 out of 1000 SELECT ' ', 1, materialize(1), toUInt256(1), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_0 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(23), toLowCardinality(materialize(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 962 out of 1000 SELECT ' ', 1, materialize(1), toUInt256(1), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(23), materialize(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 963 out of 1000 SELECT ' ', 1, materialize(1), toUInt256(1), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), 23, materialize(23), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, materialize(1), toUInt256(1), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), 23, materialize(23), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, materialize(1), toUInt256(1), 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), 23, materialize(23), toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 964 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true, compact = true SELECT ' ', 1, materialize(1), toUInt256(1), 1, toNullable(1) FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(23), materialize(23), 23 WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true, compact = true SELECT ' ', 1, materialize(1), toUInt256(1), 1, toNullable(1) FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(23), materialize(23), 23 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 965 out of 1000 SELECT ' ', 1, materialize(1), toUInt256(1), 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(23), materialize(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 966 out of 1000 SELECT ' ', 1, materialize(1), 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), materialize(toUInt256(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 967 out of 1000 SELECT ' ', 1, materialize(1), 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), materialize(toUInt256(23)), 23 WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, materialize(1), 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), materialize(toUInt256(23)), 23 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, materialize(1), 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), materialize(toUInt256(23)), 23 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 968 out of 1000 SELECT ' ', 1, materialize(1), 1, 1, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), materialize(toUInt256(23)), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 969 out of 1000 SELECT ' ', 1, materialize(1), 1, 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 970 out of 1000 SELECT ' ', 1, materialize(1), 1, 1, 1 FROM tab__fuzz_0 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(toNullable(23))), toUInt256(23), 23 WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, materialize(1), 1, 1, 1 FROM tab__fuzz_0 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(toNullable(23))), toUInt256(23), 23 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, materialize(1), 1, 1, 1 FROM tab__fuzz_0 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(toNullable(23))), toUInt256(23), 23 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 971 out of 1000 SELECT ' ', 1, materialize(1), 1, 1, 1 FROM tab__fuzz_0 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), toUInt256(23), 23 WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, materialize(1), 1, 1, 1 FROM tab__fuzz_0 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), toUInt256(23), 23 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, materialize(1), 1, 1, 1 FROM tab__fuzz_0 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), toUInt256(23), 23 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 972 out of 1000 SELECT ' ', 1, materialize(1), 1, 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), toUInt256(23), 23 WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, materialize(1), 1, 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), toUInt256(23), 23 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, materialize(1), 1, 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), toUInt256(23), 23 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 973 out of 1000 SELECT ' ', 1, materialize(1), 1, 1, 1 FROM tab__fuzz_3 WHERE (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, materialize(1), 1, 1, 1 FROM tab__fuzz_3 WHERE (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT ' ', 1, materialize(1), 1, 1, 1 FROM tab__fuzz_3 WHERE (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 974 out of 1000 SELECT ' ', 1, materialize(1), 1, 1, 1 FROM tab__fuzz_3 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 975 out of 1000 SELECT ' ', 1, materialize(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, toLowCardinality(12)), 1), 1, 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(23), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, materialize(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, toLowCardinality(12)), 1), 1, 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(23), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT ' ', 1, materialize(toFixedString(toNullable('aaaxxxaa\0xxx'), 12, toLowCardinality(12)), 1), 1, 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(23), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 976 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_1 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 977 out of 1000 SELECT toLowCardinality(' '), 1, 1, 1, 1, 1 FROM tab__fuzz_1 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 978 out of 1000 SELECT toLowCardinality(' '), 1, 1, materialize(1), 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 979 out of 1000 SELECT toLowCardinality(' '), 1, 1, materialize(1), 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toLowCardinality(23), toUInt256(23), 23 WITH CUBE WITH TOTALS Error on processing query 'SELECT toLowCardinality(' '), 1, 1, materialize(1), 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toLowCardinality(23), toUInt256(23), 23 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT toLowCardinality(' '), 1, 1, materialize(1), 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toLowCardinality(23), toUInt256(23), 23 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 980 out of 1000 SELECT toLowCardinality(' '), 1, 1, materialize(1), 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), toUInt256(23), 23 WITH TOTALS Error on processing query 'SELECT toLowCardinality(' '), 1, 1, materialize(1), 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), toUInt256(23), 23 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT toLowCardinality(' '), 1, 1, materialize(1), 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), toUInt256(23), 23 WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 981 out of 1000 SELECT toLowCardinality(' '), 1, 1, materialize(1), 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 982 out of 1000 SELECT ' ', 1, 1, materialize(1), 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toUInt256(toLowCardinality(23)), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 983 out of 1000 SELECT ' ', 1, 1, materialize(1), 1, 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toUInt256(toLowCardinality(23)), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 984 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toUInt256(toLowCardinality(23)), 23, toLowCardinality(toLowCardinality(23)) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toUInt256(toLowCardinality(23)), 23, toLowCardinality(toLowCardinality(23)) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toUInt256(toLowCardinality(23)), 23, toLowCardinality(toLowCardinality(23)) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 985 out of 1000 SELECT ' ', 1, 1, materialize(materialize(1)), 1, 1 FROM tab__fuzz_3 GROUP BY toLowCardinality(materialize(countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(12)), 12, materialize(12)), pattern), 'test_cluster_two_shards')), toUInt256(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, materialize(materialize(1)), 1, 1 FROM tab__fuzz_3 GROUP BY toLowCardinality(materialize(countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(12)), 12, materialize(12)), pattern), 'test_cluster_two_shards')), toUInt256(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, materialize(materialize(1)), 1, 1 FROM tab__fuzz_3 GROUP BY toLowCardinality(materialize(countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(12)), 12, materialize(12)), pattern), 'test_cluster_two_shards')), toUInt256(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 986 out of 1000 SELECT ' ', 1, 1, materialize(1), 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toLowCardinality(23), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 987 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toLowCardinality(23), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 988 out of 1000 SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_1 GROUP BY toLowCardinality('test_cluster_two_shards'), toLowCardinality(23), 23, 23 WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_1 GROUP BY toLowCardinality('test_cluster_two_shards'), toLowCardinality(23), 23, 23 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, 1, toLowCardinality(toNullable(1)), 1 FROM tab__fuzz_1 GROUP BY toLowCardinality('test_cluster_two_shards'), toLowCardinality(23), 23, 23 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 989 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toLowCardinality(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toLowCardinality(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toLowCardinality(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 990 out of 1000 EXPLAIN QUERY TREE run_passes = true, dump_passes = true SELECT toNullable(' '), 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toLowCardinality(23), 23, toLowCardinality(toUInt128(23)) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN QUERY TREE run_passes = true, dump_passes = true SELECT toNullable(' '), 1, 1, 1, 1, 1 FROM tab__fuzz_2 GROUP BY toLowCardinality('test_cluster_two_shards'), toLowCardinality(23), 23, toLowCardinality(toUInt128(23)) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "run_passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 991 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toLowCardinality(23), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 992 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY materialize('test_cluster_two_shards'), toLowCardinality(23), toUInt256(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS, toLowCardinality(toUInt256(23))), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY materialize('test_cluster_two_shards'), toLowCardinality(23), toUInt256(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS, toLowCardinality(toUInt256(23))), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_0 GROUP BY materialize('test_cluster_two_shards'), toLowCardinality(23), toUInt256(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)) IGNORE NULLS, toLowCardinality(toUInt256(23))), toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 993 out of 1000 SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY materialize('test_cluster_two_shards'), toLowCardinality(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY materialize('test_cluster_two_shards'), toLowCardinality(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, 1, 1, 1 FROM tab__fuzz_3 GROUP BY materialize('test_cluster_two_shards'), toLowCardinality(23), 23, toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 994 out of 1000 SELECT ' ', 1, 1, 1, 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_1 GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toLowCardinality(23), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 995 out of 1000 SELECT ' ', 1, 1, 1, 1, toLowCardinality(1) FROM tab__fuzz_0 GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toLowCardinality(23), toUInt256(23), 23 WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1, toLowCardinality(1) FROM tab__fuzz_0 GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toLowCardinality(23), toUInt256(23), 23 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 6]. In scope SELECT ' ', 1, 1, 1, 1, toLowCardinality(1) FROM tab__fuzz_0 GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toLowCardinality(23), toUInt256(23), 23 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 996 out of 1000 SELECT ' ', 1, 1, 1, 1, toLowCardinality(1) FROM tab__fuzz_0 GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toLowCardinality(23), toUInt256(23), toLowCardinality((b != toLowCardinality(100)) AND (c > toUInt256(220)), 23) WITH CUBE WITH TOTALS Error on processing query 'SELECT ' ', 1, 1, 1, 1, toLowCardinality(1) FROM tab__fuzz_0 GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toLowCardinality(23), toUInt256(23), toLowCardinality((b != toLowCardinality(100)) AND (c > toUInt256(220)), 23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT ' ', 1, 1, 1, 1, toLowCardinality(1) FROM tab__fuzz_0 GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toLowCardinality(23), toUInt256(23), toLowCardinality((b != toLowCardinality(100)) AND (c > toUInt256(220)), 23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 997 out of 1000 SELECT ' ', 1, 1, 1, 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_1 GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toLowCardinality(23), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 998 out of 1000 SELECT materialize(' '), 1, 1, 1, 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_2 PREWHERE toNullable(toFixedString(' ', 1)) GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toLowCardinality(23), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS Error on processing query 'SELECT materialize(' '), 1, 1, 1, 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_2 PREWHERE toNullable(toFixedString(' ', 1)) GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toLowCardinality(23), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: Nullable(FixedString(1)). In query SELECT materialize(' '), 1, 1, 1, 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_2 PREWHERE toNullable(toFixedString(' ', 1)) GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toLowCardinality(23), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 999 out of 1000 SELECT ' ', 1, 1, 1, 1, toLowCardinality(toNullable(1)) FROM tab__fuzz_1 GROUP BY toLowCardinality(materialize('test_cluster_two_shards')), toLowCardinality(23), toUInt256(23), toLowCardinality(23) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 2 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 WHERE id = 1 Got boring AST Fuzzing step 3 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 4 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 5 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 6 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 7 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 8 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 9 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 10 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 11 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 12 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE materialize(100) WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 13 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 14 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 15 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 16 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 17 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toNullable('aaaxxxaa\0xxx')), haystack, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toNullable('aaaxxxaa\0xxx')), haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type String of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toNullable('aaaxxxaa\0xxx')), haystack, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f50e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 18 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 19 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 20 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 21 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 22 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 23 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 24 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 25 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 26 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 27 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 28 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 29 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 30 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 31 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 32 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 33 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 34 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 35 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 36 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 37 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 38 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, toLowCardinality(1000) AND x3 AND x4, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(haystack, toLowCardinality(1000) AND x3 AND x4, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x3' in scope SELECT countSubstringsCaseInsensitiveUTF8(haystack, toLowCardinality(1000) AND x3 AND x4, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 39 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 40 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 41 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 42 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 43 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 44 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 45 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 46 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 47 out of 1000 SELECT toUInt8((number / 64) % 2), countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toUInt8((number / 64) % 2), countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT toUInt8((number / 64) % 2), countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 48 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 49 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 50 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 51 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 53 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 54 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 55 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 57 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 WHERE number / toLowCardinality(8) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 WHERE number / toLowCardinality(8)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 WHERE number / toLowCardinality(8). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 58 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 59 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 60 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 61 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 62 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 63 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 64 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toNullable(materialize(toLowCardinality('aaaxxxaa\0xxx')))), pattern), countSubstringsCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 65 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toNullable(materialize(toLowCardinality('aaaxxxaa\0xxx')))), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toLowCardinality(toNullable(materialize('aaaxxxaa\0xxx'))), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable(materialize('aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 68 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 69 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 70 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 71 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), xor(x9, xor(x10, x11)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), xor(x9, xor(x10, x11)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x9' in scope SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), xor(x9, xor(x10, x11)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 72 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: While processing countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern): While processing SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 73 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 74 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 75 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 76 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 77 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 78 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 79 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 80 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 81 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 83 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 85 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 86 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE sum(if(1 AND (c > 220), toUInt256(1), toLowCardinality(0))) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE sum(if(1 AND (c > 220), toUInt256(1), toLowCardinality(0)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 WHERE sum(if(1 AND (c > 220), toUInt256(1), toLowCardinality(0))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 87 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 88 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 89 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 90 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 91 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 92 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 93 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 94 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 96 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3 GROUP BY greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3 GROUP BY greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3 GROUP BY greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 97 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(nums__fuzz_45, 'aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(nums__fuzz_45, 'aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_45' in scope SELECT countSubstringsCaseInsensitiveUTF8(nums__fuzz_45, 'aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 98 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 99 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 100 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 101 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 102 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 103 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable(materialize('aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 105 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toNullable(materialize(tab__fuzz_4, 'aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toNullable(materialize(tab__fuzz_4, 'aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'tab__fuzz_4' in scope SELECT countSubstringsCaseInsensitiveUTF8(toNullable(materialize(tab__fuzz_4, 'aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 106 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(materialize('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 107 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(materialize('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 108 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(materialize('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 109 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(materialize('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_1 GROUP BY cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23, currentDatabase(), t) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(materialize('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_1 GROUP BY cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT countSubstringsCaseInsensitiveUTF8(materialize('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_1 GROUP BY cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23))), 23, currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 110 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(materialize('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(materialize('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(materialize('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 111 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(materialize('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 112 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(materialize('aaaxxxaa\0xxx'), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 113 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 114 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 115 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 116 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 117 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 118 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 119 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 120 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 121 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 122 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 123 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 124 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 125 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 126 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 127 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 128 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 129 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 130 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 131 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 132 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 134 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 135 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 136 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 137 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 138 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 139 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 141 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 142 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 143 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 144 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 145 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 146 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 147 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 148 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 149 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 150 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 151 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 152 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 153 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 154 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 155 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 156 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 157 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 158 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 159 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 160 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 161 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 162 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 163 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 165 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 166 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 167 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 168 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toLowCardinality(toFixedString(' ', toUInt256(1))), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toLowCardinality(toFixedString(' ', toUInt256(1))), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type FixedString(1) of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', toLowCardinality(toFixedString(' ', toUInt256(1))), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 169 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 170 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 171 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 172 out of 1000 SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern), countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern), countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstrings(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern), countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 173 out of 1000 SELECT b != toUInt128(100), countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Error on processing query 'SELECT b != toUInt128(100), countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT b != toUInt128(100), countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 174 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 175 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 176 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 177 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 178 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 179 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 180 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 181 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 182 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(' ', 1), 1), 'aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(' ', 1), 1), 'aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type String of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(' ', 1), 1), 'aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f50e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 183 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 184 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 185 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 186 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 187 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 GROUP BY tab__fuzz_43, (a >= toUInt128(0)) AND (c > 220), toNullable(0) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 GROUP BY tab__fuzz_43, (a >= toUInt128(0)) AND (c > 220), toNullable(0)': Received from localhost:9000. DB::Exception: Unknown expression identifier 'tab__fuzz_43' in scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 GROUP BY tab__fuzz_43, (a >= toUInt128(0)) AND (c > 220), toNullable(0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 188 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 189 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE toNullable(toLowCardinality(0)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE toNullable(toLowCardinality(0))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 PREWHERE toNullable(toLowCardinality(0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 190 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 191 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 192 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 193 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 194 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 195 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 196 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 197 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 198 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 GROUP BY toFixedString(' '), sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS, toUInt128(1), divide(number, (a >= 0) AND 1 AND greater(c), toNullable(8)) % 2, equals(c, toLowCardinality(1), 0) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 GROUP BY toFixedString(' '), sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS, toUInt128(1), divide(number, (a >= 0) AND 1 AND greater(c), toNullable(8)) % 2, equals(c, toLowCardinality(1), 0)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 GROUP BY toFixedString(' '), sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS / count() IGNORE NULLS, toUInt128(1), divide(number, (a >= 0) AND 1 AND greater(c), toNullable(8)) % 2, equals(c, toLowCardinality(1), 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 199 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 200 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 201 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 202 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 203 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 204 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 205 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 206 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 207 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 208 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 209 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true, compact = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true, compact = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 210 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 211 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 212 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 214 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 215 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 216 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 217 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 218 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE 41 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 219 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE 256 WHERE toLowCardinality(23) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE 256 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x0000000037f9adfa 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x0000000038d06faa 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::MergeTreeDataSelectExecutor::filterPartsByVirtualColumns(std::shared_ptr const&, DB::MergeTreeData const&, std::vector, std::allocator>> const&, DB::ActionsDAG const*, std::shared_ptr) @ 0x0000000039a5472c 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::buildIndexes(std::optional&, DB::ActionsDAG const*, DB::MergeTreeData const&, std::vector, std::allocator>> const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003bf2f170 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1639: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000003bf2e127 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000003c1827e4 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000003c1822fe 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c129752 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 220 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 PREWHERE 1024 WHERE toLowCardinality(toNullable(23)) GROUP BY (number / toNullable(2)) % toLowCardinality(2), toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), toLowCardinality(toNullable(2)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 PREWHERE 1024 WHERE toLowCardinality(toNullable(23)) GROUP BY (number / toNullable(2)) % toLowCardinality(2), toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), toLowCardinality(toNullable(2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 PREWHERE 1024 WHERE toLowCardinality(toNullable(23)) GROUP BY (number / toNullable(2)) % toLowCardinality(2), toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23), toLowCardinality(toNullable(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 221 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 222 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23) Got boring AST Fuzzing step 223 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(materialize(23)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(materialize(23))': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(materialize(23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 224 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23) Got boring AST Fuzzing step 225 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23) Got boring AST Fuzzing step 226 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23) Got boring AST Fuzzing step 227 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 228 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23) Got boring AST Fuzzing step 229 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23) Got boring AST Fuzzing step 230 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE 41 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 231 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 232 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE 41 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE 41': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE 41. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 233 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 234 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(toUInt128(23)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(toUInt128(23))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x0000000034e16cd8 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000034e00ca0 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0eea9 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 13. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 18. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 19. ? @ 0x00007fa035818ac3 20. ? @ 0x00007fa0358aa850 Fuzzing step 235 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 1023 WHERE toLowCardinality(23) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 1023 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 1023 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 236 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23) Got boring AST Fuzzing step 237 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23) Got boring AST Fuzzing step 238 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 239 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE 41 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 240 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE toLowCardinality(23) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 241 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 242 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 243 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE toLowCardinality(23) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 244 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 245 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(multiply(multiply(toNullable(materialize(test_alias__fuzz_9, materialize(1))), intDiv(toUInt32(rtime), 20), toNullable(20)), a, 1000), toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(multiply(multiply(toNullable(materialize(test_alias__fuzz_9, materialize(1))), intDiv(toUInt32(rtime), 20), toNullable(20)), a, 1000), toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_9' in scope SELECT countSubstringsCaseInsensitiveUTF8(multiply(multiply(toNullable(materialize(test_alias__fuzz_9, materialize(1))), intDiv(toUInt32(rtime), 20), toNullable(20)), a, 1000), toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 246 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE toLowCardinality(23) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 247 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE toLowCardinality(23) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 248 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23) Got boring AST Fuzzing step 249 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23) Got boring AST Fuzzing step 250 out of 1000 SELECT toNullable(toUInt256(materialize(toLowCardinality(2)))), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(toNullable(23)) Query succeeded, using this AST as a start Fuzzing step 251 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT toNullable(materialize(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE -9223372036854775808 WHERE toLowCardinality(toNullable(23)) Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT toNullable(materialize(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE -9223372036854775808 WHERE toLowCardinality(toNullable(23))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 252 out of 1000 SELECT toNullable(toUInt256(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 253 out of 1000 SELECT toNullable(toLowCardinality(2)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE toLowCardinality(23) Error on processing query 'SELECT toNullable(toLowCardinality(2)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT toNullable(toLowCardinality(2)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 254 out of 1000 SELECT toNullable(toUInt256(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23) Got boring AST Fuzzing step 255 out of 1000 SELECT toNullable(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), 23), toUInt256(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23) Error on processing query 'SELECT toNullable(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), 23), toUInt256(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toNullable(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), 23), toUInt256(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 256 out of 1000 SELECT toNullable(toUInt256(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE 41 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 257 out of 1000 SELECT toNullable(toUInt256(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE 41 WHERE toLowCardinality(23) Got boring AST Fuzzing step 258 out of 1000 SELECT toNullable(countSubstringsCaseInsensitiveUTF8(toLowCardinality(toFixedString('aaaxxxaa\0xxx', 12)), pattern), toUInt256(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE 41 WHERE toLowCardinality(23) Error on processing query 'SELECT toNullable(countSubstringsCaseInsensitiveUTF8(toLowCardinality(toFixedString('aaaxxxaa\0xxx', 12)), pattern), toUInt256(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE 41 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toNullable(countSubstringsCaseInsensitiveUTF8(toLowCardinality(toFixedString('aaaxxxaa\0xxx', 12)), pattern), toUInt256(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE 41 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 259 out of 1000 SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), pattern) FROM tab__fuzz_1 PREWHERE 41 WHERE toLowCardinality(23) GROUP BY if(greaterOrEquals(0) AND (b != 100) AND (c = 0), 1, toLowCardinality(0)), id = toNullable(1), sum(multiIf(in(s), 1, toUInt256(0))) IGNORE NULLS / count(1) IGNORE NULLS Error on processing query 'SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), pattern) FROM tab__fuzz_1 PREWHERE 41 WHERE toLowCardinality(23) GROUP BY if(greaterOrEquals(0) AND (b != 100) AND (c = 0), 1, toLowCardinality(0)), id = toNullable(1), sum(multiIf(in(s), 1, toUInt256(0))) IGNORE NULLS / count(1) IGNORE NULLS': Received from localhost:9000. DB::Exception: Number of arguments for function greaterOrEquals doesn't match: passed 1, should be 2: In scope SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), pattern) FROM tab__fuzz_1 PREWHERE 41 WHERE toLowCardinality(23) GROUP BY if(greaterOrEquals(0) AND (b != 100) AND (c = 0), 1, toLowCardinality(0)), id = toNullable(1), sum(multiIf(in(s), 1, toUInt256(0))) IGNORE NULLS / count(1) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 260 out of 1000 SELECT toNullable(toUInt256(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_1 PREWHERE 41 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 261 out of 1000 SELECT toNullable(toLowCardinality(2)), countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), 12, pattern) FROM tab__fuzz_1 PREWHERE 41 WHERE toLowCardinality(23) Error on processing query 'SELECT toNullable(toLowCardinality(2)), countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), 12, pattern) FROM tab__fuzz_1 PREWHERE 41 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT toNullable(toLowCardinality(2)), countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), 12, pattern) FROM tab__fuzz_1 PREWHERE 41 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 262 out of 1000 SELECT toNullable(toUInt256(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable(tab__fuzz_45, 'aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_1 PREWHERE 9223372036854775807 WHERE toLowCardinality(23) GROUP BY toUInt8((number / 2) % 2), multiIf(in((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), s, ('a', 'b')), 1, 0) Error on processing query 'SELECT toNullable(toUInt256(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable(tab__fuzz_45, 'aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_1 PREWHERE 9223372036854775807 WHERE toLowCardinality(23) GROUP BY toUInt8((number / 2) % 2), multiIf(in((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), s, ('a', 'b')), 1, 0)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'tab__fuzz_45' in scope SELECT toNullable(toUInt256(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable(tab__fuzz_45, 'aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_1 PREWHERE 9223372036854775807 WHERE toLowCardinality(23) GROUP BY toUInt8((number / 2) % 2), multiIf(in((a >= 0) AND (b != 100) AND 1 AND (c > toUInt128(220)), s, ('a', 'b')), 1, 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 263 out of 1000 SELECT toNullable(toLowCardinality(2)), countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), 12, pattern) FROM tab__fuzz_1 PREWHERE 41 WHERE toLowCardinality(23) Error on processing query 'SELECT toNullable(toLowCardinality(2)), countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), 12, pattern) FROM tab__fuzz_1 PREWHERE 41 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT toNullable(toLowCardinality(2)), countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), 12, pattern) FROM tab__fuzz_1 PREWHERE 41 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 264 out of 1000 SELECT toNullable(toUInt256(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 265 out of 1000 SELECT toNullable(toUInt256(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_2 PREWHERE 2147483647 WHERE toLowCardinality(23) Error on processing query 'SELECT toNullable(toUInt256(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_2 PREWHERE 2147483647 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Illegal type UInt32 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x0000000037f9adfa 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x0000000038d06faa 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::MergeTreeDataSelectExecutor::filterPartsByVirtualColumns(std::shared_ptr const&, DB::MergeTreeData const&, std::vector, std::allocator>> const&, DB::ActionsDAG const*, std::shared_ptr) @ 0x0000000039a5472c 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::buildIndexes(std::optional&, DB::ActionsDAG const*, DB::MergeTreeData const&, std::vector, std::allocator>> const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003bf2f170 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1639: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000003bf2e127 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000003c1827e4 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000003c1822fe 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c129752 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 266 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), 12, pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE toLowCardinality(23) Error on processing query 'EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), 12, pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: While processing countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), 12, pattern): While processing SELECT countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), 12, pattern) FROM tab__fuzz_3 PREWHERE 41 WHERE 41 AND toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 267 out of 1000 SELECT toNullable(toUInt256(toLowCardinality(sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count(), 2))), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23) GROUP BY nums__fuzz_18 Error on processing query 'SELECT toNullable(toUInt256(toLowCardinality(sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count(), 2))), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23) GROUP BY nums__fuzz_18': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toNullable(toUInt256(toLowCardinality(sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) IGNORE NULLS / count(), 2))), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23) GROUP BY nums__fuzz_18. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 268 out of 1000 SELECT toNullable(toUInt256(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 269 out of 1000 SELECT toUInt256(toLowCardinality(2)), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable(toFixedString(toFixedString(toFixedString(toFixedString(23), toNullable(23)), 23), 23), 'aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23) Error on processing query 'SELECT toUInt256(toLowCardinality(2)), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable(toFixedString(toFixedString(toFixedString(toFixedString(23), toNullable(23)), 23), 23), 'aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toUInt256(toLowCardinality(2)), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable(toFixedString(toFixedString(toFixedString(toFixedString(23), toNullable(23)), 23), 23), 'aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_2 PREWHERE 41 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 30. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 270 out of 1000 SELECT (sum(multiIf(in(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100, toNullable(toUInt256(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23) Error on processing query 'SELECT (sum(multiIf(in(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100, toNullable(toUInt256(toLowCardinality(2))), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_0 PREWHERE 41 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Function 'in' expects 2 arguments. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000842350a 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2859: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b788a 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 8. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 271 out of 1000 SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 272 out of 1000 SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_0 PREWHERE 0 WHERE toLowCardinality(23) Error on processing query 'SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_0 PREWHERE 0 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx')), pattern) FROM tab__fuzz_0 PREWHERE 0 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 273 out of 1000 SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize((b != toNullable(100)) AND (c = toNullable(0)), 100)), toFixedString(toNullable('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(23) Error on processing query 'SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize((b != toNullable(100)) AND (c = toNullable(0)), 100)), toFixedString(toNullable('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize((b != toNullable(100)) AND (c = toNullable(0)), 100)), toFixedString(toNullable('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 274 out of 1000 SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 275 out of 1000 SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(materialize(23)) Query succeeded, using this AST as a start Fuzzing step 276 out of 1000 SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(materialize(23)) Error on processing query 'SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(materialize(23))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(materialize(23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 277 out of 1000 SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(materialize(23)) Error on processing query 'SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(materialize(23))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(materialize(23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 278 out of 1000 SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(materialize(23)) Got boring AST Fuzzing step 279 out of 1000 SELECT toNullable(toUInt256(2)), xor(x10, x11), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', materialize(12)), pattern) FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(materialize(23)) Error on processing query 'SELECT toNullable(toUInt256(2)), xor(x10, x11), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', materialize(12)), pattern) FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(materialize(23))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x10' in scope SELECT toNullable(toUInt256(2)), xor(x10, x11), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', materialize(12)), pattern) FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(materialize(23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 280 out of 1000 SELECT toNullable(toUInt256(toUInt256(2))), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE -1 WHERE toLowCardinality(23) Error on processing query 'SELECT toNullable(toUInt256(toUInt256(2))), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE -1 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Illegal type Int8 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x0000000037f9adfa 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x0000000038d06faa 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::MergeTreeDataSelectExecutor::filterPartsByVirtualColumns(std::shared_ptr const&, DB::MergeTreeData const&, std::vector, std::allocator>> const&, DB::ActionsDAG const*, std::shared_ptr) @ 0x0000000039a5472c 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::buildIndexes(std::optional&, DB::ActionsDAG const*, DB::MergeTreeData const&, std::vector, std::allocator>> const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003bf2f170 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1639: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000003bf2e127 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000003c1827e4 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000003c1822fe 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c129752 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 281 out of 1000 SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 282 out of 1000 SELECT toNullable(toUInt256(2)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 283 out of 1000 SELECT toUInt256(2) FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 284 out of 1000 SELECT toUInt256(2) FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 285 out of 1000 SELECT toUInt256(2) FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 286 out of 1000 SELECT toUInt256(2) FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 287 out of 1000 SELECT toUInt256(2) FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 288 out of 1000 SELECT toUInt256(2) FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 289 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 290 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(n + 1, 23) Error on processing query 'SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(n + 1, 23)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'n' in scope SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(n + 1, 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 291 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 292 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 293 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 294 out of 1000 SELECT toLowCardinality(2) FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 295 out of 1000 SELECT toLowCardinality(2) FROM tab__fuzz_3 PREWHERE 1048577 WHERE toLowCardinality(23) Error on processing query 'SELECT toLowCardinality(2) FROM tab__fuzz_3 PREWHERE 1048577 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Illegal type UInt32 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x0000000037f9adfa 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x0000000038d06faa 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::MergeTreeDataSelectExecutor::filterPartsByVirtualColumns(std::shared_ptr const&, DB::MergeTreeData const&, std::vector, std::allocator>> const&, DB::ActionsDAG const*, std::shared_ptr) @ 0x0000000039a5472c 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::buildIndexes(std::optional&, DB::ActionsDAG const*, DB::MergeTreeData const&, std::vector, std::allocator>> const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003bf2f170 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1639: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000003bf2e127 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000003c1827e4 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000003c1822fe 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c129752 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 296 out of 1000 SELECT toLowCardinality(2) FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 297 out of 1000 SELECT toLowCardinality(2) FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 298 out of 1000 SELECT toLowCardinality(2) FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 299 out of 1000 SELECT toLowCardinality(2) FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 300 out of 1000 SELECT toLowCardinality(if((b != 100) AND (c = 0), materialize(toUInt128(1)), 0), 2) FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Error on processing query 'SELECT toLowCardinality(if((b != 100) AND (c = 0), materialize(toUInt128(1)), 0), 2) FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT toLowCardinality(if((b != 100) AND (c = 0), materialize(toUInt128(1)), 0), 2) FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 301 out of 1000 SELECT toLowCardinality(2) FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 302 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, toUInt8(materialize(materialize(toUInt128(1000))), divide(8) % toLowCardinality(2)), tab__fuzz_37, number % toNullable(2) Error on processing query 'SELECT 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, toUInt8(materialize(materialize(toUInt128(1000))), divide(8) % toLowCardinality(2)), tab__fuzz_37, number % toNullable(2)': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS, toUInt8(materialize(materialize(toUInt128(1000))), divide(8) % toLowCardinality(2)), tab__fuzz_37, number % toNullable(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 303 out of 1000 SELECT toLowCardinality(2) FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 304 out of 1000 SELECT toLowCardinality(2) FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 305 out of 1000 SELECT toLowCardinality(2) FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 306 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(toNullable(23)) Query succeeded, using this AST as a start Fuzzing step 308 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(toNullable(23)) Got boring AST Fuzzing step 309 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_3 PREWHERE 1048577 WHERE toLowCardinality(toNullable(toNullable(23))) Error on processing query 'EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_3 PREWHERE 1048577 WHERE toLowCardinality(toNullable(toNullable(23)))': Received from localhost:9000. DB::Exception: Illegal type UInt32 of column for constant filter. Must be UInt8 or Nullable(UInt8).: While processing SELECT 2 FROM tab__fuzz_3 PREWHERE 1048577 WHERE 1048577 AND toLowCardinality(toNullable(toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033aae3d8 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 310 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(toNullable(23)) Got boring AST Fuzzing step 311 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(toNullable(23)) Query succeeded, using this AST as a start Fuzzing step 312 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(toNullable(23)) Query succeeded, using this AST as a start Fuzzing step 313 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(toNullable(23)) Got boring AST Fuzzing step 314 out of 1000 SELECT 2 FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(toNullable(23)) Query succeeded, using this AST as a start Fuzzing step 315 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(toNullable(23)) Query succeeded, using this AST as a start Fuzzing step 316 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(toNullable(23)) Got boring AST Fuzzing step 317 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(toNullable(23)) Got boring AST Fuzzing step 318 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(toNullable(23)) Query succeeded, using this AST as a start Fuzzing step 319 out of 1000 SELECT 2 FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(toNullable(23)) Query succeeded, using this AST as a start Fuzzing step 320 out of 1000 SELECT 2 FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(toNullable(23)) Got boring AST Fuzzing step 321 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE -9223372036854775807 WHERE toLowCardinality(23) Error on processing query 'SELECT 2 FROM tab__fuzz_2 PREWHERE -9223372036854775807 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Illegal type Int64 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x0000000037f9adfa 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x0000000038d06faa 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::MergeTreeDataSelectExecutor::filterPartsByVirtualColumns(std::shared_ptr const&, DB::MergeTreeData const&, std::vector, std::allocator>> const&, DB::ActionsDAG const*, std::shared_ptr) @ 0x0000000039a5472c 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::buildIndexes(std::optional&, DB::ActionsDAG const*, DB::MergeTreeData const&, std::vector, std::allocator>> const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003bf2f170 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1639: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000003bf2e127 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000003c1827e4 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000003c1822fe 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c129752 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 322 out of 1000 SELECT 2 FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(toNullable(23)) Got boring AST Fuzzing step 323 out of 1000 SELECT 2 FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(toNullable(23)) Got boring AST Fuzzing step 324 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(toNullable(23)) Query succeeded, using this AST as a start Fuzzing step 325 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 326 out of 1000 SELECT 2 FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 327 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 328 out of 1000 SELECT toUInt128(2) FROM tab__fuzz_2 PREWHERE 65535 WHERE toLowCardinality(toLowCardinality(toNullable(23))) Error on processing query 'SELECT toUInt128(2) FROM tab__fuzz_2 PREWHERE 65535 WHERE toLowCardinality(toLowCardinality(toNullable(23)))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x0000000037f9adfa 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x0000000038d06faa 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::MergeTreeDataSelectExecutor::filterPartsByVirtualColumns(std::shared_ptr const&, DB::MergeTreeData const&, std::vector, std::allocator>> const&, DB::ActionsDAG const*, std::shared_ptr) @ 0x0000000039a5472c 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::buildIndexes(std::optional&, DB::ActionsDAG const*, DB::MergeTreeData const&, std::vector, std::allocator>> const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003bf2f170 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1639: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000003bf2e127 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000003c1827e4 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000003c1822fe 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c129752 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 329 out of 1000 SELECT 2 FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 330 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(1)))), toNullable(23))) Error on processing query 'SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(1)))), toNullable(23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(toLowCardinality(toNullable(toFixedString(' ', toLowCardinality(1)))), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 331 out of 1000 SELECT 2 FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(toNullable(23))) Got boring AST Fuzzing step 332 out of 1000 SELECT 2 FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(toNullable(23))) Got boring AST Fuzzing step 333 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(23)) Query succeeded, using this AST as a start Fuzzing step 334 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(23)) Got boring AST Fuzzing step 335 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(23)) Got boring AST Fuzzing step 336 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(23)) Query succeeded, using this AST as a start Fuzzing step 337 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(23)) Got boring AST Fuzzing step 338 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 339 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('2'): 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 340 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 341 out of 1000 SELECT materialize(2) FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(t__fuzz_35, 23) Error on processing query 'SELECT materialize(2) FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(t__fuzz_35, 23)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_35' in scope SELECT materialize(2) FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(t__fuzz_35, 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 342 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 343 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 344 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(toUInt256(23)) Error on processing query 'SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(toUInt256(23))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x0000000034e16cd8 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000034e00ca0 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0eea9 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 13. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 18. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 19. ? @ 0x00007fa035818ac3 20. ? @ 0x00007fa0358aa850 Fuzzing step 345 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 346 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 347 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 348 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(23)) Query succeeded, using this AST as a start Fuzzing step 349 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE NULL WHERE toLowCardinality(toLowCardinality(tab__fuzz_32, 23)) Error on processing query 'SELECT 2 FROM tab__fuzz_2 PREWHERE NULL WHERE toLowCardinality(toLowCardinality(tab__fuzz_32, 23))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'tab__fuzz_32' in scope SELECT 2 FROM tab__fuzz_2 PREWHERE NULL WHERE toLowCardinality(toLowCardinality(tab__fuzz_32, 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 350 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(23)) Got boring AST Fuzzing step 351 out of 1000 SELECT 2 FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(nums__fuzz_33, 23)) Error on processing query 'SELECT 2 FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(nums__fuzz_33, 23))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_33' in scope SELECT 2 FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(nums__fuzz_33, 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 352 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(23)) Got boring AST Fuzzing step 353 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(23)) Query succeeded, using this AST as a start Fuzzing step 354 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(23)) Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(23)) Got boring AST Fuzzing step 356 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(23)) Got boring AST Fuzzing step 357 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(23)) Query succeeded, using this AST as a start Fuzzing step 358 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(23)) Query succeeded, using this AST as a start Fuzzing step 359 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(toLowCardinality(23)) Got boring AST Fuzzing step 360 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 361 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 362 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 363 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 364 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 365 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 366 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 367 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 368 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 369 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 370 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 371 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 372 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 373 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 374 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 375 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 377 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 378 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 379 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 380 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 381 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 382 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 383 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 384 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 385 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 386 out of 1000 EXPLAIN SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 387 out of 1000 EXPLAIN SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 388 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('2'): 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 389 out of 1000 EXPLAIN SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 390 out of 1000 EXPLAIN SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 391 out of 1000 EXPLAIN SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 392 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 393 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('2'): 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 394 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 395 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 396 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 397 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 398 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 399 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 400 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 401 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('2'): 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 402 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 403 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 404 out of 1000 SELECT 2 FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 405 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 406 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 407 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 408 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 409 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 410 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 411 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 412 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 413 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 414 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 415 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 416 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 417 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 418 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 419 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 420 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 421 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 422 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('2'): 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 423 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 424 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 425 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 426 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('2'): 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 427 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Query succeeded, using this AST as a start Fuzzing step 428 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 429 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 430 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) Got boring AST Fuzzing step 431 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY toNullable(toUInt256(100)) Query succeeded, using this AST as a start Fuzzing step 432 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY toNullable(toUInt256(100)) Got boring AST Fuzzing step 433 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY toNullable(toUInt256(100)) Query succeeded, using this AST as a start Fuzzing step 434 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(materialize(toUInt256(23)), 23) GROUP BY toNullable(100) Error on processing query 'SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(materialize(toUInt256(23)), 23) GROUP BY toNullable(100)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(materialize(toUInt256(23)), 23) GROUP BY toNullable(100). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 435 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY toUInt256(100) Query succeeded, using this AST as a start Fuzzing step 436 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY toUInt256(100) Got boring AST Fuzzing step 437 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY toUInt256(100) Got boring AST Fuzzing step 438 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY toUInt256(100) Got boring AST Fuzzing step 439 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY 100 Error on processing query 'SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY 100': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY 100. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 440 out of 1000 SELECT toLowCardinality(8), 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY toUInt256(100) Query succeeded, using this AST as a start Fuzzing step 441 out of 1000 SELECT 8, 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY 100 Error on processing query 'SELECT 8, 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY 100': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT 8, 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY 100. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 442 out of 1000 SELECT toLowCardinality(8), 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY toUInt256(100) Query succeeded, using this AST as a start Fuzzing step 443 out of 1000 SELECT toLowCardinality(8), 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY 100 Error on processing query 'SELECT toLowCardinality(8), 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY 100': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT toLowCardinality(8), 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY 100. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 444 out of 1000 SELECT toLowCardinality(8), 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY toUInt256(100) Got boring AST Fuzzing step 445 out of 1000 SELECT toLowCardinality(8), 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) WITH TOTALS Error on processing query 'SELECT toLowCardinality(8), 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 446 out of 1000 SELECT toLowCardinality(8), 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY toUInt256(100) Query succeeded, using this AST as a start Fuzzing step 447 out of 1000 SELECT toLowCardinality(8), 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(toNullable(23)) GROUP BY toUInt256(100) Query succeeded, using this AST as a start Fuzzing step 448 out of 1000 SELECT toLowCardinality(8), 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(toNullable(23)) GROUP BY toUInt256(100) Got boring AST Fuzzing step 449 out of 1000 SELECT toLowCardinality(8), 2 FROM tab__fuzz_0 PREWHERE 100 WHERE toLowCardinality(toNullable(23)) GROUP BY toUInt256(100) Got boring AST Fuzzing step 450 out of 1000 SELECT toLowCardinality(8), 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(toNullable(23)) GROUP BY toUInt256(100) Query succeeded, using this AST as a start Fuzzing step 451 out of 1000 SELECT toLowCardinality(8), 2 FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY toUInt256(100) Query succeeded, using this AST as a start Fuzzing step 452 out of 1000 SELECT toLowCardinality(8), 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY toUInt256(100) Query succeeded, using this AST as a start Fuzzing step 453 out of 1000 SELECT toLowCardinality(8), 2 FROM tab__fuzz_3 PREWHERE 10 WHERE toLowCardinality(23) WITH TOTALS Error on processing query 'SELECT toLowCardinality(8), 2 FROM tab__fuzz_3 PREWHERE 10 WHERE toLowCardinality(23) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 454 out of 1000 SELECT toLowCardinality(8), 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY toUInt256(100) Got boring AST Fuzzing step 455 out of 1000 SELECT toLowCardinality(8), 2 FROM tab__fuzz_3 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY toUInt256(100) Got boring AST Fuzzing step 456 out of 1000 SELECT 8, 2 FROM tab__fuzz_1 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY toUInt256(100) Query succeeded, using this AST as a start Fuzzing step 457 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY 100 Error on processing query 'SELECT 8, 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY 100': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT 8, 2 FROM tab__fuzz_2 PREWHERE 100 WHERE toLowCardinality(23) GROUP BY 100. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 458 out of 1000 SELECT 8, toLowCardinality(2) FROM tab__fuzz_1 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) Query succeeded, using this AST as a start Fuzzing step 459 out of 1000 SELECT 8, 2 FROM tab__fuzz_3 PREWHERE -2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) Error on processing query 'SELECT 8, 2 FROM tab__fuzz_3 PREWHERE -2 WHERE toLowCardinality(23) GROUP BY toUInt256(100)': Received from localhost:9000. DB::Exception: Illegal type Int8 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x0000000037f9adfa 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x0000000038d06faa 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::MergeTreeDataSelectExecutor::filterPartsByVirtualColumns(std::shared_ptr const&, DB::MergeTreeData const&, std::vector, std::allocator>> const&, DB::ActionsDAG const*, std::shared_ptr) @ 0x0000000039a5472c 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::buildIndexes(std::optional&, DB::ActionsDAG const*, DB::MergeTreeData const&, std::vector, std::allocator>> const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003bf2f170 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1639: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000003bf2e127 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000003c1827e4 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000003c1822fe 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c129752 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 460 out of 1000 SELECT 8, toLowCardinality(2) FROM tab__fuzz_2 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) Query succeeded, using this AST as a start Fuzzing step 461 out of 1000 SELECT materialize(toLowCardinality(toNullable(8))), toLowCardinality(2) FROM tab__fuzz_2 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true, compact = true SELECT materialize(toLowCardinality(toNullable(8))), toLowCardinality(2) FROM tab__fuzz_3 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true, compact = true SELECT materialize(toLowCardinality(toNullable(8))), toLowCardinality(2) FROM tab__fuzz_3 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 463 out of 1000 SELECT materialize(toLowCardinality(toNullable(8))), toLowCardinality(2) FROM tab__fuzz_2 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) Got boring AST Fuzzing step 464 out of 1000 SELECT materialize(toLowCardinality(toNullable(8))), toLowCardinality(2) FROM tab__fuzz_0 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) Query succeeded, using this AST as a start Fuzzing step 465 out of 1000 SELECT materialize(toLowCardinality(toNullable(8))), toLowCardinality(2) FROM tab__fuzz_0 PREWHERE 7 WHERE toLowCardinality(23) GROUP BY 100 Error on processing query 'SELECT materialize(toLowCardinality(toNullable(8))), toLowCardinality(2) FROM tab__fuzz_0 PREWHERE 7 WHERE toLowCardinality(23) GROUP BY 100': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT materialize(toLowCardinality(toNullable(8))), toLowCardinality(2) FROM tab__fuzz_0 PREWHERE 7 WHERE toLowCardinality(23) GROUP BY 100. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 466 out of 1000 SELECT materialize(toLowCardinality(toNullable(8))), toLowCardinality(2) FROM tab__fuzz_1 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 467 out of 1000 SELECT materialize(toNullable(8)), toLowCardinality(2) FROM tab__fuzz_2 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 468 out of 1000 SELECT materialize(toNullable(8)), toLowCardinality(2) FROM tab__fuzz_2 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 469 out of 1000 SELECT materialize(toNullable(8)), toLowCardinality(2) FROM tab__fuzz_2 PREWHERE 9223372036854775806 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Error on processing query 'SELECT materialize(toNullable(8)), toLowCardinality(2) FROM tab__fuzz_2 PREWHERE 9223372036854775806 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type UInt64 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x0000000037f9adfa 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x0000000038d06faa 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::MergeTreeDataSelectExecutor::filterPartsByVirtualColumns(std::shared_ptr const&, DB::MergeTreeData const&, std::vector, std::allocator>> const&, DB::ActionsDAG const*, std::shared_ptr) @ 0x0000000039a5472c 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::buildIndexes(std::optional&, DB::ActionsDAG const*, DB::MergeTreeData const&, std::vector, std::allocator>> const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003bf2f170 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1639: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000003bf2e127 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000003c1827e4 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000003c1822fe 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c129752 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 470 out of 1000 SELECT materialize(toNullable(8)), 2 FROM tab__fuzz_2 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT materialize(toNullable(8)), 2 FROM tab__fuzz_2 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT materialize(toNullable(8)), 2 FROM tab__fuzz_2 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 471 out of 1000 SELECT materialize(toNullable(8)), toLowCardinality(2) FROM tab__fuzz_2 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 472 out of 1000 SELECT toNullable(8), toLowCardinality(2) FROM tab__fuzz_2 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 473 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 8, toLowCardinality(2) FROM tab__fuzz_1 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 8, toLowCardinality(2) FROM tab__fuzz_1 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 474 out of 1000 SELECT toNullable(8), 2 FROM tab__fuzz_1 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 475 out of 1000 SELECT 8, 2 FROM tab__fuzz_1 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 476 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 477 out of 1000 EXPLAIN json = true, sorting = true SELECT 8, 2 FROM tab__fuzz_2 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN json = true, sorting = true SELECT 8, 2 FROM tab__fuzz_2 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "json" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496cdff 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 478 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 479 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 480 out of 1000 SELECT 8, 2 FROM tab__fuzz_1 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 481 out of 1000 SELECT 8, 2 FROM tab__fuzz_1 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 482 out of 1000 SELECT 8, 2 FROM tab__fuzz_1 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 483 out of 1000 SELECT 8, 2 FROM tab__fuzz_1 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 484 out of 1000 SELECT 8, 2 FROM tab__fuzz_3 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 SELECT 8, 2 FROM tab__fuzz_3 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT 8, 2 FROM tab__fuzz_3 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT 8, 2 FROM tab__fuzz_3 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 486 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 PREWHERE 1023 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Error on processing query 'SELECT 8, 2 FROM tab__fuzz_2 PREWHERE 1023 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type UInt16 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x0000000037f9adfa 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x0000000038d06faa 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::MergeTreeDataSelectExecutor::filterPartsByVirtualColumns(std::shared_ptr const&, DB::MergeTreeData const&, std::vector, std::allocator>> const&, DB::ActionsDAG const*, std::shared_ptr) @ 0x0000000039a5472c 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::buildIndexes(std::optional&, DB::ActionsDAG const*, DB::MergeTreeData const&, std::vector, std::allocator>> const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003bf2f170 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1639: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000003bf2e127 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000003c1827e4 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000003c1822fe 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c129752 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 487 out of 1000 SELECT 8, 2 FROM tab__fuzz_3 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 488 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 489 out of 1000 SELECT toUInt128(8), 2 FROM tab__fuzz_2 PREWHERE 65537 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Error on processing query 'SELECT toUInt128(8), 2 FROM tab__fuzz_2 PREWHERE 65537 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type UInt32 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x0000000037f9adfa 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x0000000038d06faa 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::MergeTreeDataSelectExecutor::filterPartsByVirtualColumns(std::shared_ptr const&, DB::MergeTreeData const&, std::vector, std::allocator>> const&, DB::ActionsDAG const*, std::shared_ptr) @ 0x0000000039a5472c 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::buildIndexes(std::optional&, DB::ActionsDAG const*, DB::MergeTreeData const&, std::vector, std::allocator>> const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003bf2f170 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1639: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000003bf2e127 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000003c1827e4 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000003c1822fe 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c129752 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 490 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 PREWHERE 1048577 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Error on processing query 'SELECT 8, 2 FROM tab__fuzz_2 PREWHERE 1048577 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type UInt32 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x0000000037f9adfa 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x0000000038d06faa 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::MergeTreeDataSelectExecutor::filterPartsByVirtualColumns(std::shared_ptr const&, DB::MergeTreeData const&, std::vector, std::allocator>> const&, DB::ActionsDAG const*, std::shared_ptr) @ 0x0000000039a5472c 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::buildIndexes(std::optional&, DB::ActionsDAG const*, DB::MergeTreeData const&, std::vector, std::allocator>> const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003bf2f170 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1639: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000003bf2e127 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000003c1827e4 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000003c1822fe 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c129752 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 491 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 492 out of 1000 SELECT 8, 2 FROM tab__fuzz_0 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 493 out of 1000 SELECT 8, 2 FROM tab__fuzz_0 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 494 out of 1000 SELECT 8, 2 FROM tab__fuzz_0 PREWHERE 1 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT 8, 2 FROM tab__fuzz_0 PREWHERE 1 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT 8, 2 FROM tab__fuzz_0 PREWHERE 1 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 495 out of 1000 SELECT 8, 2 FROM tab__fuzz_1 PREWHERE 2 WHERE toLowCardinality(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Error on processing query 'SELECT 8, 2 FROM tab__fuzz_1 PREWHERE 2 WHERE toLowCardinality(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 8, 2 FROM tab__fuzz_1 PREWHERE 2 WHERE toLowCardinality(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 496 out of 1000 SELECT 8, 2 FROM tab__fuzz_0 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 497 out of 1000 SELECT 8, 2 FROM tab__fuzz_0 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT 8, 2 FROM tab__fuzz_0 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT 8, 2 FROM tab__fuzz_0 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 498 out of 1000 SELECT 8, 2 FROM tab__fuzz_0 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 499 out of 1000 SELECT 8, 2 FROM tab__fuzz_0 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 500 out of 1000 SELECT 8, 2 FROM tab__fuzz_0 PREWHERE 65535 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Error on processing query 'SELECT 8, 2 FROM tab__fuzz_0 PREWHERE 65535 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type UInt16 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x0000000037f9adfa 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x0000000038d06faa 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::MergeTreeDataSelectExecutor::filterPartsByVirtualColumns(std::shared_ptr const&, DB::MergeTreeData const&, std::vector, std::allocator>> const&, DB::ActionsDAG const*, std::shared_ptr) @ 0x0000000039a5472c 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::buildIndexes(std::optional&, DB::ActionsDAG const*, DB::MergeTreeData const&, std::vector, std::allocator>> const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003bf2f170 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1639: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000003bf2e127 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000003c1827e4 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000003c1822fe 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c129752 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 501 out of 1000 SELECT 8, 2 FROM tab__fuzz_3 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 SELECT 8, 2 FROM tab__fuzz_1 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 503 out of 1000 SELECT 8, 2 FROM tab__fuzz_1 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 504 out of 1000 SELECT 8, 2 FROM tab__fuzz_3 PREWHERE 2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 505 out of 1000 SELECT 8, 2 FROM tab__fuzz_1 WHERE toLowCardinality(23) GROUP BY toUInt256(materialize(100)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 506 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 507 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 508 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 509 out of 1000 SELECT 8, toNullable(2) FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 510 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 8, toNullable(2) FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 8, toNullable(2) FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 511 out of 1000 SELECT 8, toNullable(2) FROM tab__fuzz_1 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT 8, toNullable(2) FROM tab__fuzz_1 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT 8, toNullable(2) FROM tab__fuzz_1 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 512 out of 1000 SELECT 8, toNullable(2) FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT 8, toNullable(2) FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT 8, toNullable(2) FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 513 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toLowCardinality(toNullable(8)), toNullable(2) FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toLowCardinality(toNullable(8)), toNullable(2) FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('toLowCardinality'): toLowCardinality(toNullable(8)), toNullable(2) FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 514 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 515 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 516 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 517 out of 1000 SELECT 8, 2 FROM tab__fuzz_1 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 518 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 519 out of 1000 SELECT 8, 2 FROM tab__fuzz_1 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 520 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 521 out of 1000 SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 522 out of 1000 SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 523 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 525 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(countSubstringsCaseInsensitive(pattern), 100) WITH CUBE WITH TOTALS Error on processing query 'SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(countSubstringsCaseInsensitive(pattern), 100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(countSubstringsCaseInsensitive(pattern), 100) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 526 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 527 out of 1000 SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 528 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 529 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY 100 WITH TOTALS Error on processing query 'SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY 100 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY 100 WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 530 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(round((sum(multiIf(s IN ('a', 'b'), toUInt128(materialize(toNullable(toFixedString(' ', 1))), 1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100), 23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Error on processing query 'SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(round((sum(multiIf(s IN ('a', 'b'), toUInt128(materialize(toNullable(toFixedString(' ', 1))), 1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100), 23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(round((sum(multiIf(s IN ('a', 'b'), toUInt128(materialize(toNullable(toFixedString(' ', 1))), 1), 0)) IGNORE NULLS / count(toLowCardinality(1)) IGNORE NULLS) * 100), 23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 531 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(toLowCardinality(23)) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(toLowCardinality(23)) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('8'): 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(toLowCardinality(23)) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 532 out of 1000 SELECT 8, 2 FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 533 out of 1000 SELECT 8, 2 FROM tab__fuzz_1 WHERE toLowCardinality(toLowCardinality(toUInt128(23))) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Error on processing query 'SELECT 8, 2 FROM tab__fuzz_1 WHERE toLowCardinality(toLowCardinality(toUInt128(23))) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type UInt128 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x0000000034e16cd8 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000034e00ca0 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0eea9 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 13. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 18. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 19. ? @ 0x00007fa035818ac3 20. ? @ 0x00007fa0358aa850 Fuzzing step 534 out of 1000 SELECT 8, 2 FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 535 out of 1000 SELECT 8, 2 FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 536 out of 1000 SELECT 8, 2 FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 537 out of 1000 EXPLAIN `header, description` = true, indexes = true, optimize = true SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN `header, description` = true, indexes = true, optimize = true SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown setting "header, description" for EXPLAIN PLAN query. Supported settings: sorting, optimize, indexes, json, actions, description, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000034980e77 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496d3ee 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 538 out of 1000 SELECT 8, 2 FROM tab__fuzz_1 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT 8, 2 FROM tab__fuzz_1 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT 8, 2 FROM tab__fuzz_1 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 539 out of 1000 SELECT 8, 2 FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 540 out of 1000 SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 541 out of 1000 SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 542 out of 1000 SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 543 out of 1000 EXPLAIN PIPELINE SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 544 out of 1000 EXPLAIN AST SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 545 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('8'): 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 546 out of 1000 EXPLAIN AST SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 547 out of 1000 EXPLAIN AST SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 548 out of 1000 EXPLAIN AST SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 549 out of 1000 EXPLAIN AST SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 550 out of 1000 EXPLAIN AST SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 551 out of 1000 SELECT 8, 2 FROM tab__fuzz_1 WHERE toLowCardinality(materialize(23)) GROUP BY toUInt256(toUInt256(100)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 552 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(materialize(23)) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(materialize(23)) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('8'): 8, 2 FROM tab__fuzz_0 WHERE toLowCardinality(materialize(23)) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 553 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(toUInt256(100)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(toUInt256(100)) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 555 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(toUInt256(100)) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 556 out of 1000 SELECT 8, 2 FROM tab__fuzz_1 WHERE toLowCardinality(23) GROUP BY toUInt256(toUInt256(100)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 557 out of 1000 SELECT 8, 2 FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 558 out of 1000 SELECT 8, 2 FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 559 out of 1000 SELECT 8, 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 560 out of 1000 SELECT 2 FROM tab__fuzz_1 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 561 out of 1000 SELECT 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 562 out of 1000 SELECT 2 FROM tab__fuzz_1 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 563 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 564 out of 1000 SELECT 2 FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 565 out of 1000 SELECT 2 FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 566 out of 1000 SELECT 2 FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 567 out of 1000 SELECT 2 FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 568 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 569 out of 1000 SELECT (a >= 0) AND 1 AND (c > 220), 2 FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Error on processing query 'SELECT (a >= 0) AND 1 AND (c > 220), 2 FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT (a >= 0) AND 1 AND (c > 220), 2 FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 570 out of 1000 SELECT 2 FROM tab__fuzz_0 WHERE toLowCardinality(toUInt256(23)) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_0 WHERE toLowCardinality(toUInt256(23)) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type UInt256 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x0000000034e16cd8 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000034e00ca0 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0eea9 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 13. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 18. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 19. ? @ 0x00007fa035818ac3 20. ? @ 0x00007fa0358aa850 Fuzzing step 571 out of 1000 SELECT 2 FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 572 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 573 out of 1000 SELECT 2 FROM tab__fuzz_1 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 574 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 575 out of 1000 SELECT 2 FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 576 out of 1000 SELECT 2 FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 577 out of 1000 SELECT toNullable(2) FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 578 out of 1000 SELECT toNullable(2) FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 579 out of 1000 SELECT toNullable(2) FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 580 out of 1000 SELECT toNullable(2) FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(toLowCardinality(100)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 581 out of 1000 SELECT toNullable(2) FROM tab__fuzz_0 WHERE toLowCardinality(23) GROUP BY toUInt256(toLowCardinality(100)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 582 out of 1000 SELECT toNullable(2) FROM tab__fuzz_1 WHERE toLowCardinality(23) GROUP BY toUInt256(toLowCardinality(100)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 583 out of 1000 SELECT toNullable(2) FROM tab__fuzz_2 WHERE toLowCardinality(23) GROUP BY toUInt256(toLowCardinality(100)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 584 out of 1000 SELECT toNullable(2) FROM tab__fuzz_3 WHERE toLowCardinality(23) GROUP BY toUInt256(toLowCardinality(100)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 585 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toLowCardinality(toLowCardinality(toNullable(23))) GROUP BY toUInt256(toLowCardinality(100)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 586 out of 1000 SELECT 2 FROM tab__fuzz_0 WHERE toLowCardinality(toLowCardinality(toNullable(23))) WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_0 WHERE toLowCardinality(toLowCardinality(toNullable(23))) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 587 out of 1000 SELECT 2 FROM tab__fuzz_3 WHERE toLowCardinality(toLowCardinality(toNullable(23))) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 588 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE toLowCardinality(toLowCardinality(toNullable(23))) WHERE toLowCardinality(toLowCardinality(toNullable(23))) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 589 out of 1000 SELECT 2 FROM tab__fuzz_1 PREWHERE toLowCardinality(toLowCardinality(toNullable(23))) WHERE toLowCardinality(toLowCardinality(toNullable(23))) WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_1 PREWHERE toLowCardinality(toLowCardinality(toNullable(23))) WHERE toLowCardinality(toLowCardinality(toNullable(23))) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 590 out of 1000 SELECT 2 FROM tab__fuzz_1 PREWHERE toLowCardinality(toNullable(23)) WHERE toLowCardinality(toNullable(23)) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 591 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE toLowCardinality(toNullable(23)) WHERE toLowCardinality(toNullable(23)) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 592 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE toLowCardinality(toNullable(23)) WHERE toLowCardinality(toNullable(23)) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 593 out of 1000 SELECT 2 FROM tab__fuzz_1 PREWHERE toLowCardinality(toNullable(23)) WHERE toLowCardinality(toNullable(23)) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 594 out of 1000 SELECT 2 FROM tab__fuzz_1 PREWHERE toLowCardinality(toNullable(23)) WHERE toLowCardinality(toNullable(23)) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 595 out of 1000 SELECT 2 FROM tab__fuzz_1 PREWHERE toLowCardinality(23) WHERE toLowCardinality(toNullable(23)) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 596 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE toLowCardinality(23) WHERE toLowCardinality(toNullable(23)) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 597 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE toLowCardinality(23) WHERE toLowCardinality(toNullable(23)) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 598 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE toLowCardinality(23) WHERE toLowCardinality(toNullable(23)) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 599 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE toLowCardinality(23) WHERE toLowCardinality(23) GROUP BY toLowCardinality(100) WITH ROLLUP WITH CUBE WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_2 PREWHERE toLowCardinality(23) WHERE toLowCardinality(23) GROUP BY toLowCardinality(100) WITH ROLLUP WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 144 ('CUBE'): CUBE WITH TOTALS. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 600 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE toLowCardinality(23) WHERE toLowCardinality(toNullable(23)) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 601 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE toLowCardinality(toNullable(23)) WHERE toLowCardinality(toNullable(23)) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 602 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE toLowCardinality(23) WHERE toLowCardinality(toNullable(23)) GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_3 PREWHERE toLowCardinality(23) WHERE toLowCardinality(toNullable(23)) GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_3 PREWHERE toLowCardinality(23) WHERE toLowCardinality(toNullable(23)) GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 603 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE toLowCardinality(toNullable(23)) WHERE toLowCardinality(toNullable(23)) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 604 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE toLowCardinality(toNullable(23)) WHERE toLowCardinality(toNullable(23)) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 605 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE toLowCardinality(toNullable(23)) WHERE toLowCardinality(23) GROUP BY toLowCardinality(toUInt256(100)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 606 out of 1000 SELECT materialize(toLowCardinality(2)) FROM tab__fuzz_0 PREWHERE toLowCardinality(toNullable(23)) WHERE toLowCardinality(23) GROUP BY toLowCardinality(toUInt256(100)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 607 out of 1000 SELECT materialize(toLowCardinality(2)) FROM tab__fuzz_2 PREWHERE toLowCardinality(toNullable(23)) WHERE toLowCardinality(23) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 608 out of 1000 SELECT materialize(toLowCardinality(MergeTree, 2)) FROM tab__fuzz_1 PREWHERE toLowCardinality(toNullable(23)) WHERE toLowCardinality(23) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Error on processing query 'SELECT materialize(toLowCardinality(MergeTree, 2)) FROM tab__fuzz_1 PREWHERE toLowCardinality(toNullable(23)) WHERE toLowCardinality(23) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'MergeTree' in scope SELECT materialize(toLowCardinality(MergeTree, 2)) FROM tab__fuzz_1 PREWHERE toLowCardinality(toNullable(23)) WHERE toLowCardinality(23) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 609 out of 1000 SELECT toLowCardinality(2) FROM tab__fuzz_2 PREWHERE toLowCardinality(23) WHERE toLowCardinality(23) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 610 out of 1000 SELECT toLowCardinality(2) FROM tab__fuzz_3 PREWHERE toLowCardinality(23) WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT toLowCardinality(2) FROM tab__fuzz_3 PREWHERE toLowCardinality(23) WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(2) FROM tab__fuzz_3 PREWHERE toLowCardinality(23) WHERE toLowCardinality(23) GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 611 out of 1000 SELECT toLowCardinality(8), toLowCardinality(2) FROM tab__fuzz_0 PREWHERE toLowCardinality(23) WHERE toLowCardinality(23) WITH TOTALS Error on processing query 'SELECT toLowCardinality(8), toLowCardinality(2) FROM tab__fuzz_0 PREWHERE toLowCardinality(23) WHERE toLowCardinality(23) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 612 out of 1000 SELECT toLowCardinality(2) FROM tab__fuzz_0 PREWHERE toLowCardinality(23) WHERE toLowCardinality(23) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 613 out of 1000 SELECT toLowCardinality(2) FROM tab__fuzz_0 PREWHERE toLowCardinality(23) WHERE toLowCardinality(23) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 614 out of 1000 SELECT toLowCardinality(2) FROM tab__fuzz_1 PREWHERE toLowCardinality(23) WHERE toLowCardinality(toUInt128(23)) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Error on processing query 'SELECT toLowCardinality(2) FROM tab__fuzz_1 PREWHERE toLowCardinality(23) WHERE toLowCardinality(toUInt128(23)) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type UInt128 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x0000000034e16cd8 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000034e00ca0 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0eea9 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 13. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 18. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 19. ? @ 0x00007fa035818ac3 20. ? @ 0x00007fa0358aa850 Fuzzing step 615 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE toLowCardinality(23) WHERE toLowCardinality(23) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 616 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE toLowCardinality(23) WHERE toLowCardinality(23) GROUP BY toLowCardinality(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 617 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE toLowCardinality(toLowCardinality(23)) WHERE toLowCardinality(23) GROUP BY toLowCardinality(toNullable(100)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 618 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE toLowCardinality(toLowCardinality(23)) GROUP BY toLowCardinality(toNullable(100)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 619 out of 1000 SELECT toUInt128(2) FROM tab__fuzz_3 PREWHERE toLowCardinality(toLowCardinality(23)) GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 620 out of 1000 SELECT toUInt128(2) FROM tab__fuzz_2 PREWHERE toLowCardinality(23) WHERE version_pair GROUP BY toNullable(100) WITH CUBE WITH TOTALS Error on processing query 'SELECT toUInt128(2) FROM tab__fuzz_2 PREWHERE toLowCardinality(23) WHERE version_pair GROUP BY toNullable(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression identifier 'version_pair' in scope SELECT toUInt128(2) FROM tab__fuzz_2 PREWHERE toLowCardinality(23) WHERE version_pair GROUP BY toNullable(100) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 621 out of 1000 SELECT toUInt128(2) FROM tab__fuzz_3 PREWHERE toLowCardinality(toLowCardinality(23)) GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 622 out of 1000 SELECT toUInt128(2) FROM tab__fuzz_3 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 623 out of 1000 SELECT toUInt128(2) FROM tab__fuzz_3 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 624 out of 1000 SELECT toUInt128(2) FROM tab__fuzz_0 GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT toUInt128(2) FROM tab__fuzz_0 GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT toUInt128(2) FROM tab__fuzz_0 GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 625 out of 1000 SELECT toUInt128(2) FROM tab__fuzz_1 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 626 out of 1000 SELECT toUInt128(2) FROM tab__fuzz_0 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 627 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH ROLLUP WITH CUBE WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH ROLLUP WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 86 ('CUBE'): CUBE WITH TOTALS. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 628 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 629 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 630 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 631 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(toUInt128(8), 100) WITH CUBE WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(toUInt128(8), 100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(toUInt128(8), 100) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 632 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 633 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 634 out of 1000 SELECT 2 FROM tab__fuzz_0 WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_0 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 635 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 636 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 637 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable((a >= 0) AND (b != 100) AND (c > toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 220), 100) WITH CUBE WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable((a >= 0) AND (b != 100) AND (c > toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 220), 100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable((a >= 0) AND (b != 100) AND (c > toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 220), 100) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 638 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 640 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 641 out of 1000 SELECT materialize(2) FROM tab__fuzz_0 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 642 out of 1000 SELECT materialize(2) FROM tab__fuzz_0 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 643 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 644 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 645 out of 1000 SELECT 2 FROM tab__fuzz_0 WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_0 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 646 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 647 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 648 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 649 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 650 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_0 GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_0 GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 651 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 652 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 653 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 654 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 655 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 656 out of 1000 SELECT (a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Error on processing query 'SELECT (a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT (a >= materialize(0)) AND (b != 100) AND 1 AND (c > 220), 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 657 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 658 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 659 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 660 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 661 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 663 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 664 out of 1000 SELECT pattern, 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Error on processing query 'SELECT pattern, 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Column default.tab__fuzz_2.pattern is not under aggregate function and not in GROUP BY keys. In query SELECT pattern, 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033593a48 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 665 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 666 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 667 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 668 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 669 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 670 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_0 GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_0 GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 671 out of 1000 SELECT materialize(2) FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 672 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT materialize(2) FROM tab__fuzz_2 WITH TOTALS Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT materialize(2) FROM tab__fuzz_2 WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 673 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 674 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 675 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(100), 100) WITH CUBE WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(100), 100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(100), 100) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 676 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 678 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 679 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 680 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 681 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 682 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE (sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * toLowCardinality(100) GROUP BY toNullable(100) WITH CUBE WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_2 PREWHERE (sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * toLowCardinality(100) GROUP BY toNullable(100) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT 2 FROM tab__fuzz_2 PREWHERE (sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * toLowCardinality(100) GROUP BY toNullable(100) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 683 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 684 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 685 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 686 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY 100 WITH CUBE WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_1 GROUP BY 100 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_1 GROUP BY 100 WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 687 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 688 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 689 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 690 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 691 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 692 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 693 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 694 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 695 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 696 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 697 out of 1000 SELECT nums__fuzz_9, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH TOTALS Error on processing query 'SELECT nums__fuzz_9, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_9' in scope SELECT nums__fuzz_9, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 698 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 699 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 700 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 701 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 702 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 703 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 704 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY 100 WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_3 GROUP BY 100 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_3 GROUP BY 100 WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 705 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 706 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 707 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 708 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 709 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY 100 WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_3 GROUP BY 100 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_3 GROUP BY 100 WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 710 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 711 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 712 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 713 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 714 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 715 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 716 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 717 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 718 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 719 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 720 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 721 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 722 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 723 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 724 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 725 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 726 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 727 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 728 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 729 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 730 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 731 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 732 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 733 out of 1000 SELECT materialize(toNullable(2)) FROM tab__fuzz_1 WHERE (sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(materialize(toLowCardinality(toFixedString(' ', toNullable(1)))), 100) GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT materialize(toNullable(2)) FROM tab__fuzz_1 WHERE (sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(materialize(toLowCardinality(toFixedString(' ', toNullable(1)))), 100) GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT materialize(toNullable(2)) FROM tab__fuzz_1 WHERE (sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(materialize(toLowCardinality(toFixedString(' ', toNullable(1)))), 100) GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 734 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 735 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 736 out of 1000 SELECT 2 FROM tab__fuzz_2 WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_2 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 737 out of 1000 SELECT toUInt128(2), 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 738 out of 1000 EXPLAIN PIPELINE SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 739 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('2'): 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 740 out of 1000 EXPLAIN PIPELINE SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 741 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('2'): 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 742 out of 1000 EXPLAIN PIPELINE SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 743 out of 1000 EXPLAIN PIPELINE SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 744 out of 1000 EXPLAIN PIPELINE SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 745 out of 1000 EXPLAIN QUERY TREE SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 746 out of 1000 EXPLAIN SYNTAX SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 747 out of 1000 EXPLAIN SYNTAX SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 748 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('2'): 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 749 out of 1000 EXPLAIN SYNTAX SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 750 out of 1000 EXPLAIN SYNTAX SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 751 out of 1000 EXPLAIN SYNTAX SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 752 out of 1000 EXPLAIN SYNTAX SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 753 out of 1000 EXPLAIN SYNTAX SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 754 out of 1000 EXPLAIN QUERY TREE SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 755 out of 1000 SELECT 2, 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 756 out of 1000 SELECT 2, 2 FROM tab__fuzz_0 GROUP BY toNullable(toUInt128(100)) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 757 out of 1000 SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(toUInt128(100)) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 758 out of 1000 SELECT 2, 2 FROM tab__fuzz_2 GROUP BY toNullable(toUInt128(100)) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 759 out of 1000 SELECT 2, 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 760 out of 1000 SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 761 out of 1000 SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 762 out of 1000 SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 763 out of 1000 SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 764 out of 1000 SELECT 2, 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT 2, 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT 2, 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 765 out of 1000 SELECT 2, 2 FROM tab__fuzz_1 GROUP BY 100 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT 2, 2 FROM tab__fuzz_1 GROUP BY 100 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT 2, 2 FROM tab__fuzz_1 GROUP BY 100 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 766 out of 1000 SELECT 2, 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 767 out of 1000 SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 768 out of 1000 SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 769 out of 1000 SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 770 out of 1000 SELECT 2, 2 FROM tab__fuzz_1 GROUP BY 100 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT 2, 2 FROM tab__fuzz_1 GROUP BY 100 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT 2, 2 FROM tab__fuzz_1 GROUP BY 100 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 771 out of 1000 SELECT 2, 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 772 out of 1000 SELECT 2, 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 773 out of 1000 SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 774 out of 1000 SELECT 2, 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 775 out of 1000 SELECT 2, 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT 2, 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT 2, 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 776 out of 1000 SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 777 out of 1000 SELECT 2, 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 778 out of 1000 SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 779 out of 1000 SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 780 out of 1000 EXPLAIN PIPELINE SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 781 out of 1000 EXPLAIN SYNTAX SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 782 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('2'): 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 783 out of 1000 EXPLAIN ESTIMATE SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 784 out of 1000 EXPLAIN ESTIMATE SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 785 out of 1000 EXPLAIN ESTIMATE SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 786 out of 1000 EXPLAIN ESTIMATE SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 787 out of 1000 EXPLAIN ESTIMATE SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 788 out of 1000 EXPLAIN ESTIMATE SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 789 out of 1000 EXPLAIN ESTIMATE SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 790 out of 1000 EXPLAIN ESTIMATE SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 791 out of 1000 EXPLAIN ESTIMATE SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 792 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('2'): 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 793 out of 1000 SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 794 out of 1000 SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 795 out of 1000 SELECT 2, 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT 2, 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT 2, 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 796 out of 1000 SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 797 out of 1000 SELECT 2, 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 798 out of 1000 SELECT 2, 2 FROM tab__fuzz_0 PREWHERE intDiv(toUInt32(rtime), toUInt256(20)) * toUInt128(1000) GROUP BY 100 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT 2, 2 FROM tab__fuzz_0 PREWHERE intDiv(toUInt32(rtime), toUInt256(20)) * toUInt128(1000) GROUP BY 100 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT 2, 2 FROM tab__fuzz_0 PREWHERE intDiv(toUInt32(rtime), toUInt256(20)) * toUInt128(1000) GROUP BY 100 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 799 out of 1000 SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 800 out of 1000 SELECT 2, 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 801 out of 1000 SELECT 2, 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 802 out of 1000 SELECT 2, 2 FROM tab__fuzz_2 WHERE a >= materialize(toNullable(0)) GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT 2, 2 FROM tab__fuzz_2 WHERE a >= materialize(toNullable(0)) GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 2, 2 FROM tab__fuzz_2 WHERE a >= materialize(toNullable(0)) GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 803 out of 1000 EXPLAIN QUERY TREE dump_ast = true, passes = true SELECT 2, 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN QUERY TREE dump_ast = true, passes = true SELECT 2, 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "dump_ast" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 804 out of 1000 SELECT 2, 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 805 out of 1000 SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 806 out of 1000 SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 807 out of 1000 SELECT 2, 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 808 out of 1000 SELECT 2, 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 809 out of 1000 SELECT 2, 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 810 out of 1000 SELECT 2, 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 811 out of 1000 SELECT materialize(2), 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 812 out of 1000 SELECT materialize(2), 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 813 out of 1000 SELECT materialize(2), 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT materialize(2), 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT materialize(2), 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 814 out of 1000 SELECT materialize(2), toLowCardinality(2) FROM tab__fuzz_2 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 815 out of 1000 SELECT materialize(2), toLowCardinality(2) FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 816 out of 1000 SELECT materialize(2), toLowCardinality(2) FROM tab__fuzz_2 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 817 out of 1000 SELECT materialize(2), 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 818 out of 1000 SELECT materialize(2), 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 819 out of 1000 SELECT materialize(2), 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 820 out of 1000 SELECT materialize(2), 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 821 out of 1000 SELECT materialize(2), toNullable(2) FROM tab__fuzz_0 GROUP BY 100 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT materialize(2), toNullable(2) FROM tab__fuzz_0 GROUP BY 100 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 2]. In scope SELECT materialize(2), toNullable(2) FROM tab__fuzz_0 GROUP BY 100 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 822 out of 1000 SELECT materialize(2), 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 823 out of 1000 SELECT materialize(2), 2 FROM tab__fuzz_1 WHERE toUInt128(materialize(toNullable(100))) GROUP BY toNullable(tab__fuzz_37, 100) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT materialize(2), 2 FROM tab__fuzz_1 WHERE toUInt128(materialize(toNullable(100))) GROUP BY toNullable(tab__fuzz_37, 100) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'tab__fuzz_37' in scope SELECT materialize(2), 2 FROM tab__fuzz_1 WHERE toUInt128(materialize(toNullable(100))) GROUP BY toNullable(tab__fuzz_37, 100) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 824 out of 1000 SELECT materialize(toLowCardinality(2)), 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 825 out of 1000 SELECT materialize(toLowCardinality(2)), 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 826 out of 1000 SELECT materialize(toLowCardinality(2)), 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 827 out of 1000 SELECT toLowCardinality(2), 2 FROM tab__fuzz_2 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 828 out of 1000 SELECT toLowCardinality(2), 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 829 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 830 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 831 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 832 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 833 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY 100 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_1 GROUP BY 100 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_1 GROUP BY 100 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 834 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 835 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 836 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 837 out of 1000 SELECT toUInt8(sum(toLowCardinality(toUInt128(23)), if((a >= 0) AND 1, 1, 0)) IGNORE NULLS, (number / 64) % 2), 2 FROM tab__fuzz_0 GROUP BY 100 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toUInt8(sum(toLowCardinality(toUInt128(23)), if((a >= 0) AND 1, 1, 0)) IGNORE NULLS, (number / 64) % 2), 2 FROM tab__fuzz_0 GROUP BY 100 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toUInt8(sum(toLowCardinality(toUInt128(23)), if((a >= 0) AND 1, 1, 0)) IGNORE NULLS, (number / 64) % 2), 2 FROM tab__fuzz_0 GROUP BY 100 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 838 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 839 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY toNullable(toUInt256(100)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 840 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toNullable(toUInt256(100)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 841 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toUInt256(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 842 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toUInt256(100) WITH TOTALS Got boring AST Fuzzing step 843 out of 1000 EXPLAIN PIPELINE header = true SELECT 2 FROM tab__fuzz_2 GROUP BY toUInt256(100) WITH TOTALS Error on processing query 'EXPLAIN PIPELINE header = true SELECT 2 FROM tab__fuzz_2 GROUP BY toUInt256(100) WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 844 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toUInt256(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 845 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 846 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY 100 WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_0 GROUP BY 100 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_0 GROUP BY 100 WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 847 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toUInt256(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 848 out of 1000 EXPLAIN PIPELINE header = true SELECT 2 FROM tab__fuzz_1 GROUP BY 100 WITH TOTALS Error on processing query 'EXPLAIN PIPELINE header = true SELECT 2 FROM tab__fuzz_1 GROUP BY 100 WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 849 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toUInt256(100) WITH TOTALS Got boring AST Fuzzing step 850 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toUInt256(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 851 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toUInt256(100) WITH TOTALS Got boring AST Fuzzing step 852 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toUInt256(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 853 out of 1000 SELECT 2 FROM tab__fuzz_1 GROUP BY toUInt256(intDiv(20) * materialize(materialize(toUInt128(1000))), 100) WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_1 GROUP BY toUInt256(intDiv(20) * materialize(materialize(toUInt128(1000))), 100) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function intDiv doesn't match: passed 1, should be 2: In scope SELECT 2 FROM tab__fuzz_1 GROUP BY toUInt256(intDiv(20) * materialize(materialize(toUInt128(1000))), 100) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 854 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY 100 WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_0 GROUP BY 100 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_0 GROUP BY 100 WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 855 out of 1000 SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), 2 FROM tab__fuzz_0 GROUP BY toUInt256(toLowCardinality(100)) WITH TOTALS Error on processing query 'SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), 2 FROM tab__fuzz_0 GROUP BY toUInt256(toLowCardinality(100)) WITH TOTALS': Received from localhost:9000. DB::Exception: Column default.tab__fuzz_0.pattern is not under aggregate function and not in GROUP BY keys. In query SELECT countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), 2 FROM tab__fuzz_0 GROUP BY toUInt256(toLowCardinality(100)) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033593a48 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 856 out of 1000 SELECT 2 FROM tab__fuzz_0 GROUP BY toUInt256(100) WITH TOTALS Got boring AST Fuzzing step 857 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toUInt256(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 858 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toUInt256(100) WITH TOTALS Got boring AST Fuzzing step 859 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_2 GROUP BY 100 WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 860 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY 100 WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_3 GROUP BY 100 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_3 GROUP BY 100 WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 861 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toUInt256(100) WITH TOTALS Got boring AST Fuzzing step 862 out of 1000 SELECT 2 FROM tab__fuzz_2 GROUP BY toUInt256(100) WITH TOTALS Got boring AST Fuzzing step 863 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE intDiv(toUInt32(test_alias__fuzz_37, rtime), 20) * 1000 GROUP BY toUInt256(100) WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_2 WHERE intDiv(toUInt32(test_alias__fuzz_37, rtime), 20) * 1000 GROUP BY toUInt256(100) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_37' in scope SELECT 2 FROM tab__fuzz_2 WHERE intDiv(toUInt32(test_alias__fuzz_37, rtime), 20) * 1000 GROUP BY toUInt256(100) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 864 out of 1000 SELECT 2 FROM tab__fuzz_3 GROUP BY 100 WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_3 GROUP BY 100 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_3 GROUP BY 100 WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 865 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toNullable(toLowCardinality(0)) GROUP BY toUInt256(toNullable(100)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 866 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toNullable(toLowCardinality(0)) GROUP BY toUInt256(toNullable(100)) WITH TOTALS Got boring AST Fuzzing step 867 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toNullable(toLowCardinality(0)) GROUP BY toUInt256(toNullable(100)) WITH TOTALS Got boring AST Fuzzing step 868 out of 1000 SELECT 2 FROM tab__fuzz_3 WHERE toNullable(toLowCardinality(0)) GROUP BY toUInt256(toNullable(100)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 869 out of 1000 SELECT toUInt256(2) FROM tab__fuzz_3 WHERE toNullable(toLowCardinality(0)) GROUP BY toUInt256(toNullable(100)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 870 out of 1000 SELECT 2 FROM tab__fuzz_3 WHERE toNullable(0) GROUP BY toUInt256(toNullable(100)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 871 out of 1000 SELECT 2 FROM tab__fuzz_1 WHERE toNullable(0) GROUP BY toUInt256(toNullable(100)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 872 out of 1000 SELECT 2 FROM tab__fuzz_0 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 873 out of 1000 SELECT 2 FROM tab__fuzz_0 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 874 out of 1000 SELECT 2 FROM tab__fuzz_3 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 875 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE toLowCardinality(toNullable(materialize(1))) WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 876 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE toLowCardinality(materialize(1)) WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 877 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE toLowCardinality(materialize(1)) WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 878 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE toLowCardinality(materialize(1)) WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 879 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE toLowCardinality(materialize(materialize(toNullable(2)), 1)) WHERE toNullable(toLowCardinality(0)) GROUP BY toNullable(countSubstringsCaseInsensitive(pattern), 100) WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_3 PREWHERE toLowCardinality(materialize(materialize(toNullable(2)), 1)) WHERE toNullable(toLowCardinality(0)) GROUP BY toNullable(countSubstringsCaseInsensitive(pattern), 100) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT 2 FROM tab__fuzz_3 PREWHERE toLowCardinality(materialize(materialize(toNullable(2)), 1)) WHERE toNullable(toLowCardinality(0)) GROUP BY toNullable(countSubstringsCaseInsensitive(pattern), 100) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 880 out of 1000 SELECT (sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * materialize(100), 2 FROM tab__fuzz_3 PREWHERE toLowCardinality(materialize(toLowCardinality(toNullable(1)))) WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Error on processing query 'SELECT (sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * materialize(100), 2 FROM tab__fuzz_3 PREWHERE toLowCardinality(materialize(toLowCardinality(toNullable(1)))) WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT (sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * materialize(100), 2 FROM tab__fuzz_3 PREWHERE toLowCardinality(materialize(toLowCardinality(toNullable(1)))) WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 881 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE toLowCardinality(1) WHERE toNullable(0) GROUP BY 100 WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_3 PREWHERE toLowCardinality(1) WHERE toNullable(0) GROUP BY 100 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_3 PREWHERE toLowCardinality(1) WHERE toNullable(0) GROUP BY 100 WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 882 out of 1000 SELECT 2 FROM tab__fuzz_1 PREWHERE toLowCardinality(1) WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 883 out of 1000 SELECT 2 FROM tab__fuzz_1 PREWHERE toLowCardinality(1) WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 884 out of 1000 SELECT 2 FROM tab__fuzz_1 PREWHERE toLowCardinality(1) WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 885 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE toLowCardinality(1) WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 886 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 887 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 888 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 889 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 890 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 891 out of 1000 EXPLAIN SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 892 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 893 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 894 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 895 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 896 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 897 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 898 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 899 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 900 out of 1000 SELECT 2 FROM tab__fuzz_0 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 901 out of 1000 SELECT 2 FROM tab__fuzz_0 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 902 out of 1000 SELECT 2 FROM tab__fuzz_0 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 903 out of 1000 SELECT 2 FROM tab__fuzz_0 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 904 out of 1000 SELECT 2 FROM tab__fuzz_0 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 905 out of 1000 SELECT 2 FROM tab__fuzz_0 WHERE toNullable(materialize(0)) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 906 out of 1000 SELECT 2 FROM tab__fuzz_0 WHERE toNullable(materialize(0)) GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 907 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toNullable(materialize(0)) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 908 out of 1000 EXPLAIN PIPELINE header = true SELECT 2 FROM tab__fuzz_1 WHERE toNullable(materialize(0)) GROUP BY toNullable(100) WITH TOTALS Error on processing query 'EXPLAIN PIPELINE header = true SELECT 2 FROM tab__fuzz_1 WHERE toNullable(materialize(0)) GROUP BY toNullable(100) WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 909 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toNullable(materialize(0)) GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 910 out of 1000 SELECT 2 FROM tab__fuzz_1 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 911 out of 1000 SELECT 2 FROM tab__fuzz_1 WHERE toNullable(0) GROUP BY toNullable(toNullable(toUInt256(100))) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 912 out of 1000 SELECT 2 FROM tab__fuzz_1 WHERE toNullable(0) GROUP BY toNullable(toUInt256(100)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 913 out of 1000 SELECT 2 FROM tab__fuzz_1 WHERE toNullable(0) GROUP BY toNullable(toUInt256(100)) WITH TOTALS Got boring AST Fuzzing step 914 out of 1000 SELECT 2 FROM tab__fuzz_0 WHERE toNullable(t__fuzz_12, toNullable(toUInt256(0))) GROUP BY toNullable(toUInt256(100)) WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_0 WHERE toNullable(t__fuzz_12, toNullable(toUInt256(0))) GROUP BY toNullable(toUInt256(100)) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_12' in scope SELECT 2 FROM tab__fuzz_0 WHERE toNullable(t__fuzz_12, toNullable(toUInt256(0))) GROUP BY toNullable(toUInt256(100)) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 915 out of 1000 SELECT 2 FROM tab__fuzz_1 WHERE toNullable(0) GROUP BY toNullable(toUInt256(100)) WITH TOTALS Got boring AST Fuzzing step 916 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 917 out of 1000 SELECT 2 FROM tab__fuzz_3 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 918 out of 1000 SELECT 2 FROM tab__fuzz_3 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 919 out of 1000 SELECT 2 FROM tab__fuzz_0 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 920 out of 1000 SELECT 2 FROM tab__fuzz_0 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Got boring AST Fuzzing step 921 out of 1000 SELECT 2 FROM tab__fuzz_1 WHERE toNullable(0) GROUP BY 100 WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_1 WHERE toNullable(0) GROUP BY 100 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_1 WHERE toNullable(0) GROUP BY 100 WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 922 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 923 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 924 out of 1000 SELECT 2 FROM tab__fuzz_0 WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 925 out of 1000 SELECT 2 FROM tab__fuzz_0 WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 926 out of 1000 SELECT 2 FROM tab__fuzz_0 WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 927 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 928 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 929 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 930 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY 100 Error on processing query 'SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY 100': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY 100. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 931 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 932 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toNullable(toUInt256(0)) GROUP BY 100 Error on processing query 'SELECT 2 FROM tab__fuzz_2 WHERE toNullable(toUInt256(0)) GROUP BY 100': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_2 WHERE toNullable(toUInt256(0)) GROUP BY 100. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 933 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY 100 Error on processing query 'SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY 100': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY 100. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 934 out of 1000 SELECT 2 FROM tab__fuzz_2 WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 935 out of 1000 SELECT 2 FROM tab__fuzz_3 WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 936 out of 1000 SELECT 2 FROM tab__fuzz_3 WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 937 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 938 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 939 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 940 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 941 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE toNullable(0) WHERE toNullable(toLowCardinality(0)) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 942 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 943 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY 100 Error on processing query 'SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY 100': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY 100. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 944 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 945 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 946 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 947 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 948 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 949 out of 1000 SELECT 2 FROM tab__fuzz_2 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 950 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 951 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE toNullable(0) WHERE toNullable(0) WITH TOTALS Error on processing query 'SELECT 2 FROM tab__fuzz_3 PREWHERE toNullable(0) WHERE toNullable(0) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 952 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY 100 Error on processing query 'SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY 100': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY 100. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 953 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 954 out of 1000 SELECT 2 FROM tab__fuzz_1 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 955 out of 1000 SELECT 2 FROM tab__fuzz_3 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 956 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 958 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 959 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 960 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 961 out of 1000 EXPLAIN SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 962 out of 1000 EXPLAIN SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 963 out of 1000 EXPLAIN SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 964 out of 1000 EXPLAIN SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 965 out of 1000 EXPLAIN SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 966 out of 1000 EXPLAIN SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 967 out of 1000 EXPLAIN SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 968 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 47 ('2'): 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 969 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 970 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 52 ('2'): 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 971 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 52 ('2'): 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 972 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 973 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 974 out of 1000 EXPLAIN SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 975 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 976 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 977 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 978 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 47 ('2'): 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 979 out of 1000 EXPLAIN SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 980 out of 1000 EXPLAIN SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 981 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 982 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 983 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 984 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 985 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 986 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 987 out of 1000 SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(tab__fuzz_0, 100) Error on processing query 'SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(tab__fuzz_0, 100)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'tab__fuzz_0' in scope SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(tab__fuzz_0, 100). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 988 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 989 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 990 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 991 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 992 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 993 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 994 out of 1000 EXPLAIN AST SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 995 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Query succeeded, using this AST as a start Fuzzing step 996 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 997 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 998 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 999 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM tab__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY toNullable(100) Got boring AST Fuzzing step 0 out of 1 Query succeeded, using this AST as a start INSERT INTO tab__fuzz_0 FORMAT Values (2, 'aaaaa\0x', 'x'); INSERT INTO tab__fuzz_3 FORMAT Values (2, 'aaaaa\0x', 'x'); INSERT INTO tab__fuzz_1 FORMAT Values (2, 'aaaaa\0x', 'x'); INSERT INTO tab__fuzz_2 FORMAT Values (2, 'aaaaa\0x', 'x'); Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 2 out of 1000 SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 4 out of 1000 SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 5 out of 1000 SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 6 out of 1000 SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 7 out of 1000 SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 8 out of 1000 SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 9 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE equals(id) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE equals(id)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE equals(id). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 10 out of 1000 SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 11 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 12 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 13 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 14 out of 1000 SELECT position(toUInt8((number / 8) % 2), 'aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % 2), 'aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % 2), 'aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 15 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 16 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 17 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 18 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 19 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 20 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 21 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 22 out of 1000 SELECT position(toUInt8((number / 8) % 2), 'aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Error on processing query 'SELECT position(toUInt8((number / 8) % 2), 'aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % 2), 'aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 23 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 24 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 25 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 26 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 27 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 28 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 29 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 30 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 31 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 32 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 33 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 34 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 35 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 36 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 37 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 38 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 39 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 40 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 41 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 42 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 43 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 44 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 45 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 46 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 47 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 48 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 49 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 50 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 51 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 52 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 53 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 54 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 55 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 56 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 57 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 58 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 59 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 60 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 61 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 62 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 63 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE toNullable(0) Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE toNullable(0)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE toNullable(0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 64 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 65 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 66 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 67 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 68 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 69 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 70 out of 1000 SELECT position(toUInt8((number / 8) % 2), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % 2), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % 2), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 71 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 72 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 73 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 74 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 75 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 76 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 77 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 78 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 79 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 80 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 81 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 82 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 83 out of 1000 SELECT position(toUInt8(divide(toFixedString(toLowCardinality(' '), 1), number, materialize(toUInt128(8))) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8(divide(toFixedString(toLowCardinality(' '), 1), number, materialize(toUInt128(8))) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8(divide(toFixedString(toLowCardinality(' '), 1), number, materialize(toUInt128(8))) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 84 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 85 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 86 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 87 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 88 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 89 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 90 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 91 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 92 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 93 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 94 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 95 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 96 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 97 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 98 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 99 out of 1000 SELECT position(toUInt8((number / 8) % 2), materialize('aaaaa\0x'), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % 2), materialize('aaaaa\0x'), pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % 2), materialize('aaaaa\0x'), pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 100 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 101 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 102 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 103 out of 1000 SELECT position(toUInt8((number / 8) % 2), toLowCardinality(toFixedString('aaaaa\0x', 7)), pattern) FROM tab__fuzz_1 PREWHERE id = toNullable(2) Error on processing query 'SELECT position(toUInt8((number / 8) % 2), toLowCardinality(toFixedString('aaaaa\0x', 7)), pattern) FROM tab__fuzz_1 PREWHERE id = toNullable(2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % 2), toLowCardinality(toFixedString('aaaaa\0x', 7)), pattern) FROM tab__fuzz_1 PREWHERE id = toNullable(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 104 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 105 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 106 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 107 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 108 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 109 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 110 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 111 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 112 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 113 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 114 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 115 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 116 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 117 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 118 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 119 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 120 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 121 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 122 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 123 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 124 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 125 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 126 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 127 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 128 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 129 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 130 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 131 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 132 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 133 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 134 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 135 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 136 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 137 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 138 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 139 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 140 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 141 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 142 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 143 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 144 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 145 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 146 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 147 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 148 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 149 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 150 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 151 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 152 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 153 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 154 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 155 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 156 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 157 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 158 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 159 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 160 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 161 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 162 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 163 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 164 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 165 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 166 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 167 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 168 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 169 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 170 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 171 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 172 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 173 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 174 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 175 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 176 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 177 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 178 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 179 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 180 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 181 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 182 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 183 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 184 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 185 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 186 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 187 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 188 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 189 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 190 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 191 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 192 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 193 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 194 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 195 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 196 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 197 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 198 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 199 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 200 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 201 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 202 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 203 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 204 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 205 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 206 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 207 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 208 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 209 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 210 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 211 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 212 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 213 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 214 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 215 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 216 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 217 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 218 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 219 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 220 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 221 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 222 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 223 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 224 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 225 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 226 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 227 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 228 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 229 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 230 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 231 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 232 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 233 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 234 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 235 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 236 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 237 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 238 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 239 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 240 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_2 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 241 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 242 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 243 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 244 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 245 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 246 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 247 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 248 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 249 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 250 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 251 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 252 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 253 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 254 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 255 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 256 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 257 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 258 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 259 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 260 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 261 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 262 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 263 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 264 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 265 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 266 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 267 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 268 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 269 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 270 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 271 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 272 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 273 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 274 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 275 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 276 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 277 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 278 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 279 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 280 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 281 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 282 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 283 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 284 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 285 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 286 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 287 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 288 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 289 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 290 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 291 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 292 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 293 out of 1000 SELECT position(toUInt8(divide(number) % 2), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8(divide(number) % 2), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8(divide(number) % 2), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 294 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 295 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 296 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 297 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 298 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 299 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 300 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 301 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 302 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 303 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 304 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 305 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 306 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 307 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 308 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 309 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 310 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 311 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 312 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 313 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 314 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 315 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 316 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 317 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 318 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 319 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 320 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 321 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 322 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 323 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 324 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 325 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 326 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 327 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 328 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 329 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 330 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 331 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 332 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 333 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 334 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 335 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 336 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 337 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 338 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 339 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 340 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 341 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 342 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 343 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 344 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 345 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 346 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 347 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 348 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 349 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 350 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 351 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 352 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 353 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 354 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 355 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 356 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 357 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 358 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 359 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 360 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_0 WHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_0 WHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_0 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 361 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 362 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 363 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 364 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 365 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 366 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 367 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 368 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 369 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 370 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 371 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 372 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 373 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 374 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 375 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 376 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 377 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 378 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 379 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 380 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 381 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 382 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 383 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 384 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 385 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 386 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 387 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 388 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 389 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 390 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 391 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 392 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 393 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 394 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 395 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 396 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 397 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 398 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 399 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 400 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 401 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 402 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 403 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 404 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 405 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 406 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 407 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 408 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 409 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 410 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 411 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 412 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 413 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 414 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 415 out of 1000 SELECT position(toUInt8((number / 8) % 2), 'aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % 2), 'aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % 2), 'aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 416 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 417 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 418 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 419 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 420 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 421 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 422 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 423 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 424 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 425 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 426 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 427 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 428 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 429 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 430 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 431 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 432 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 433 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 434 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 435 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 436 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 437 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 438 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 439 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 440 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 441 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 442 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 443 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 444 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 445 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 446 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 447 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 448 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 449 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 450 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 451 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 452 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 453 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 454 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 455 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_2 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 456 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 457 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 458 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 459 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 460 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 461 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 462 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 463 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 464 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 465 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 466 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 467 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 468 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 469 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 470 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 471 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 472 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 473 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 474 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 475 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 476 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 477 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 478 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 479 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 480 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 481 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 482 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 483 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 484 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 485 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 486 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 487 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 488 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 489 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 490 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 491 out of 1000 EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 492 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 493 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 494 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 495 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 496 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 497 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 498 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 499 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 500 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 501 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 502 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 503 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 504 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 505 out of 1000 SELECT position(toUInt8(divide(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0), number, 8) % 2), 'aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8(divide(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0), number, 8) % 2), 'aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT position(toUInt8(divide(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0), number, 8) % 2), 'aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 506 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 507 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 508 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 509 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 510 out of 1000 EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 511 out of 1000 EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 512 out of 1000 SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 513 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 514 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 515 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 516 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 517 out of 1000 EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2', required columns: 'id' 'number' 'pattern', maybe you meant: 'id' or 'pattern': While processing SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x0000000035631abf 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x00000000356436ea 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 7. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 518 out of 1000 EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 25. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 519 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 520 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 521 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 522 out of 1000 EXPLAIN AST SELECT position(toUInt8((number / 8) % toUInt128(2)), 'aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 523 out of 1000 SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 SELECT position('aaaaa\0x', toFixedString('OK', 2), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position('aaaaa\0x', toFixedString('OK', 2), pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type FixedString(2) of argument of function position: In scope SELECT position('aaaaa\0x', toFixedString('OK', 2), pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 525 out of 1000 SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 526 out of 1000 SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 527 out of 1000 SELECT materialize(x1 OR x2 OR x3, toNullable(toLowCardinality(8))), position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT materialize(x1 OR x2 OR x3, toNullable(toLowCardinality(8))), position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT materialize(x1 OR x2 OR x3, toNullable(toLowCardinality(8))), position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 528 out of 1000 SELECT t__fuzz_36, position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT t__fuzz_36, position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression identifier 't__fuzz_36' in scope SELECT t__fuzz_36, position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 529 out of 1000 EXPLAIN PIPELINE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 530 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 531 out of 1000 EXPLAIN SYNTAX SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 532 out of 1000 EXPLAIN SYNTAX SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 533 out of 1000 EXPLAIN SYNTAX SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 534 out of 1000 EXPLAIN SYNTAX SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 535 out of 1000 EXPLAIN SYNTAX SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 536 out of 1000 EXPLAIN SYNTAX SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 537 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 538 out of 1000 EXPLAIN SYNTAX SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 539 out of 1000 EXPLAIN SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 540 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 541 out of 1000 EXPLAIN SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 542 out of 1000 EXPLAIN SYNTAX SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 543 out of 1000 EXPLAIN AST SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 544 out of 1000 EXPLAIN SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 545 out of 1000 EXPLAIN SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 546 out of 1000 EXPLAIN SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 547 out of 1000 EXPLAIN SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 548 out of 1000 EXPLAIN SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 549 out of 1000 EXPLAIN SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 550 out of 1000 EXPLAIN SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 551 out of 1000 EXPLAIN SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 552 out of 1000 EXPLAIN PIPELINE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 553 out of 1000 EXPLAIN SYNTAX SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 EXPLAIN SYNTAX SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 555 out of 1000 EXPLAIN SYNTAX SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 556 out of 1000 EXPLAIN SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 557 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 558 out of 1000 EXPLAIN SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 559 out of 1000 EXPLAIN PIPELINE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 560 out of 1000 EXPLAIN PIPELINE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 561 out of 1000 EXPLAIN QUERY TREE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 562 out of 1000 EXPLAIN PIPELINE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 563 out of 1000 EXPLAIN PIPELINE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 564 out of 1000 EXPLAIN PIPELINE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 565 out of 1000 SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) Error on processing query 'SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 566 out of 1000 EXPLAIN PIPELINE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 567 out of 1000 EXPLAIN ESTIMATE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 568 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 569 out of 1000 EXPLAIN ESTIMATE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 570 out of 1000 EXPLAIN SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 571 out of 1000 EXPLAIN SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 572 out of 1000 EXPLAIN PIPELINE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 573 out of 1000 EXPLAIN QUERY TREE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 574 out of 1000 EXPLAIN QUERY TREE SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 575 out of 1000 EXPLAIN SYNTAX SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 576 out of 1000 EXPLAIN SYNTAX SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 577 out of 1000 EXPLAIN AST SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 578 out of 1000 EXPLAIN AST SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 579 out of 1000 EXPLAIN AST SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 580 out of 1000 EXPLAIN SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 581 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 582 out of 1000 EXPLAIN SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 583 out of 1000 EXPLAIN SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 584 out of 1000 EXPLAIN SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 585 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 586 out of 1000 EXPLAIN AST SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 587 out of 1000 EXPLAIN AST SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Got boring AST Fuzzing step 588 out of 1000 SELECT position('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 589 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 590 out of 1000 SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) Error on processing query 'SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 591 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 592 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 593 out of 1000 EXPLAIN QUERY TREE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 594 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 PREWHERE equals(id) Error on processing query 'SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 PREWHERE equals(id)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 PREWHERE equals(id). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 595 out of 1000 EXPLAIN QUERY TREE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 596 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 597 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 598 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 599 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 600 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 601 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 602 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 603 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 604 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 605 out of 1000 EXPLAIN ESTIMATE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 606 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 607 out of 1000 EXPLAIN ESTIMATE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 608 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 609 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 610 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 611 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 612 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 613 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 614 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 615 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 616 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 617 out of 1000 EXPLAIN SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 618 out of 1000 EXPLAIN QUERY TREE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 619 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 620 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 621 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 622 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 623 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 624 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 625 out of 1000 EXPLAIN ESTIMATE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 626 out of 1000 EXPLAIN SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 627 out of 1000 EXPLAIN SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 628 out of 1000 EXPLAIN SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 629 out of 1000 EXPLAIN QUERY TREE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 630 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 631 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 632 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 633 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 634 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 635 out of 1000 EXPLAIN SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 636 out of 1000 EXPLAIN SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 637 out of 1000 EXPLAIN SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 638 out of 1000 EXPLAIN QUERY TREE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 EXPLAIN QUERY TREE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 640 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 641 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 642 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 643 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 644 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 645 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 646 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 647 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 648 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 649 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 650 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 651 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 652 out of 1000 EXPLAIN ESTIMATE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 653 out of 1000 EXPLAIN ESTIMATE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 654 out of 1000 EXPLAIN ESTIMATE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 655 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 656 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 657 out of 1000 SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_2 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 658 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 659 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 660 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 661 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 663 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 664 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 665 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 666 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 667 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 668 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 669 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 670 out of 1000 EXPLAIN ESTIMATE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 671 out of 1000 EXPLAIN ESTIMATE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 672 out of 1000 EXPLAIN ESTIMATE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 673 out of 1000 EXPLAIN ESTIMATE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 674 out of 1000 EXPLAIN ESTIMATE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 675 out of 1000 EXPLAIN SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 676 out of 1000 EXPLAIN SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 677 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 678 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 679 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 680 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 681 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 682 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 683 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 684 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 685 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 686 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 687 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 688 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 689 out of 1000 SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 690 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 691 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 692 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 693 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(toNullable(toUInt128(7)))), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 694 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(toUInt128(7))), pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 695 out of 1000 SELECT position('aaaaa\0x', toLowCardinality(toUInt128(7)), pattern) FROM tab__fuzz_0 PREWHERE id = 2 Error on processing query 'SELECT position('aaaaa\0x', toLowCardinality(toUInt128(7)), pattern) FROM tab__fuzz_0 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function position: In scope SELECT position('aaaaa\0x', toLowCardinality(toUInt128(7)), pattern) FROM tab__fuzz_0 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 696 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(toUInt128(7))), pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT position(toFixedString('aaaaa\0x', toLowCardinality(toUInt128(7))), pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString('aaaaa\0x', toLowCardinality(toUInt128(7))), pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 697 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(toUInt128(7))), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 698 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(toUInt128(7))), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 699 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(toUInt128(7))), pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 700 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(toUInt128(7))), pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT position(toFixedString('aaaaa\0x', toLowCardinality(toUInt128(7))), pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString('aaaaa\0x', toLowCardinality(toUInt128(7))), pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 701 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(7)), pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 702 out of 1000 SELECT position(sum(t__fuzz_41, if((b != toNullable(100)) AND toNullable(toUInt256(100)) AND (c = 0), 1, toUInt256(0))) IGNORE NULLS, toFixedString('aaaaa\0x', toLowCardinality(7)), pattern) FROM tab__fuzz_0 PREWHERE id = 2 Error on processing query 'SELECT position(sum(t__fuzz_41, if((b != toNullable(100)) AND toNullable(toUInt256(100)) AND (c = 0), 1, toUInt256(0))) IGNORE NULLS, toFixedString('aaaaa\0x', toLowCardinality(7)), pattern) FROM tab__fuzz_0 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_41' in scope SELECT position(sum(t__fuzz_41, if((b != toNullable(100)) AND toNullable(toUInt256(100)) AND (c = 0), 1, toUInt256(0))) IGNORE NULLS, toFixedString('aaaaa\0x', toLowCardinality(7)), pattern) FROM tab__fuzz_0 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 703 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(7)), pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 704 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(7)), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 705 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(7)), pattern) FROM tab__fuzz_2 PREWHERE equals(id, toLowCardinality(1000) AND x3 AND x4, 2) Error on processing query 'SELECT position(toFixedString('aaaaa\0x', toLowCardinality(7)), pattern) FROM tab__fuzz_2 PREWHERE equals(id, toLowCardinality(1000) AND x3 AND x4, 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x3' in scope SELECT position(toFixedString('aaaaa\0x', toLowCardinality(7)), pattern) FROM tab__fuzz_2 PREWHERE equals(id, toLowCardinality(1000) AND x3 AND x4, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 706 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(7)), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 707 out of 1000 SELECT position('aaaaa\0x', toLowCardinality(7), pattern) FROM tab__fuzz_3 PREWHERE id = 2 GROUP BY if((a >= 0) AND (b != 100), 1, 0), toLowCardinality(toLowCardinality(23)), round((sum(multiIf(s IN toNullable(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100) Error on processing query 'SELECT position('aaaaa\0x', toLowCardinality(7), pattern) FROM tab__fuzz_3 PREWHERE id = 2 GROUP BY if((a >= 0) AND (b != 100), 1, 0), toLowCardinality(toLowCardinality(23)), round((sum(multiIf(s IN toNullable(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position('aaaaa\0x', toLowCardinality(7), pattern) FROM tab__fuzz_3 PREWHERE id = 2 GROUP BY if((a >= 0) AND (b != 100), 1, 0), toLowCardinality(toLowCardinality(23)), round((sum(multiIf(s IN toNullable(('a', 'b')), materialize(1), 0)) IGNORE NULLS / count()) * 100). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 708 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(7)), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 709 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7))), pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 710 out of 1000 SELECT position('aaaaa\0x', toLowCardinality(toUInt256(7)), pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT position('aaaaa\0x', toLowCardinality(toUInt256(7)), pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function position: In scope SELECT position('aaaaa\0x', toLowCardinality(toUInt256(7)), pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 711 out of 1000 SELECT position('aaaaa\0x', toLowCardinality(toUInt256(7)), pattern) FROM tab__fuzz_0 PREWHERE id = 2 Error on processing query 'SELECT position('aaaaa\0x', toLowCardinality(toUInt256(7)), pattern) FROM tab__fuzz_0 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function position: In scope SELECT position('aaaaa\0x', toLowCardinality(toUInt256(7)), pattern) FROM tab__fuzz_0 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 712 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7))), pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 713 out of 1000 SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(23), materialize(toNullable(23))), toNullable(100)) AND (c = 0), 1, 0), toUInt256(7)), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(23), materialize(toNullable(23))), toNullable(100)) AND (c = 0), 1, 0), toUInt256(7)), pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(23), materialize(toNullable(23))), toNullable(100)) AND (c = 0), 1, 0), toUInt256(7)), pattern) FROM tab__fuzz_2 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 714 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7))), pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 715 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7))), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 716 out of 1000 SELECT position('aaaaa\0x', toLowCardinality(toUInt256(7)), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position('aaaaa\0x', toLowCardinality(toUInt256(7)), pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function position: In scope SELECT position('aaaaa\0x', toLowCardinality(toUInt256(7)), pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 717 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7))), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 718 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7))), pattern) FROM tab__fuzz_2 PREWHERE id = toNullable(2) Query succeeded, using this AST as a start Fuzzing step 719 out of 1000 SELECT position('aaaaa\0x', toLowCardinality(toUInt256(7)), pattern) FROM tab__fuzz_2 PREWHERE id = toNullable(2) Error on processing query 'SELECT position('aaaaa\0x', toLowCardinality(toUInt256(7)), pattern) FROM tab__fuzz_2 PREWHERE id = toNullable(2)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function position: In scope SELECT position('aaaaa\0x', toLowCardinality(toUInt256(7)), pattern) FROM tab__fuzz_2 PREWHERE id = toNullable(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 720 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(7)), pattern) FROM tab__fuzz_2 PREWHERE id = toNullable(2) Query succeeded, using this AST as a start Fuzzing step 721 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(7)), pattern) FROM tab__fuzz_0 WHERE id = toNullable(2) Query succeeded, using this AST as a start Fuzzing step 722 out of 1000 SELECT position(toFixedString('aaaaa\0x', toLowCardinality(7)), pattern) FROM tab__fuzz_0 WHERE id = toNullable(2) Got boring AST Fuzzing step 723 out of 1000 SELECT position('aaaaa\0x', toLowCardinality(7), pattern) FROM tab__fuzz_2 WHERE id = toNullable(2) Error on processing query 'SELECT position('aaaaa\0x', toLowCardinality(7), pattern) FROM tab__fuzz_2 WHERE id = toNullable(2)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position('aaaaa\0x', toLowCardinality(7), pattern) FROM tab__fuzz_2 WHERE id = toNullable(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 724 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 725 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 726 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 727 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 WHERE id = toLowCardinality(toNullable(2)) Error on processing query 'SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 WHERE id = toLowCardinality(toNullable(2))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 WHERE id = toLowCardinality(toNullable(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 728 out of 1000 SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 729 out of 1000 SELECT position(toFixedString(toNullable('aaaaa\0x'), toNullable(7)), pattern) FROM tab__fuzz_3 WHERE id = toUInt256(2) Error on processing query 'SELECT position(toFixedString(toNullable('aaaaa\0x'), toNullable(7)), pattern) FROM tab__fuzz_3 WHERE id = toUInt256(2)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString(toNullable('aaaaa\0x'), toNullable(7)), pattern) FROM tab__fuzz_3 WHERE id = toUInt256(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 730 out of 1000 SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_2 WHERE equals(id) Error on processing query 'SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_2 WHERE equals(id)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_2 WHERE equals(id). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 731 out of 1000 SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 732 out of 1000 SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 733 out of 1000 SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_1 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 734 out of 1000 SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 735 out of 1000 SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 736 out of 1000 SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 737 out of 1000 SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 738 out of 1000 SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 739 out of 1000 SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 740 out of 1000 SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 742 out of 1000 SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_2 PREWHERE id = toUInt128(2) WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 743 out of 1000 SELECT position(toFixedString(toNullable(sum(if((a >= toLowCardinality(0)) AND 1, 1, 0)) IGNORE NULLS, 'aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 PREWHERE id = toUInt128(2) WHERE id = 2 Error on processing query 'SELECT position(toFixedString(toNullable(sum(if((a >= toLowCardinality(0)) AND 1, 1, 0)) IGNORE NULLS, 'aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 PREWHERE id = toUInt128(2) WHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT position(toFixedString(toNullable(sum(if((a >= toLowCardinality(0)) AND 1, 1, 0)) IGNORE NULLS, 'aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 PREWHERE id = toUInt128(2) WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 744 out of 1000 SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 PREWHERE id = toUInt128(2) WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 745 out of 1000 SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3 PREWHERE id = toUInt128(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0), 2) WHERE id = 2 Error on processing query 'SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3 PREWHERE id = toUInt128(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0), 2) WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3 PREWHERE id = toUInt128(if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, 0), 2) WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 746 out of 1000 SELECT position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 PREWHERE id = toUInt128(2) WHERE id = 2 Got boring AST Fuzzing step 747 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_1 PREWHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 748 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 749 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 750 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 751 out of 1000 EXPLAIN ESTIMATE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 752 out of 1000 EXPLAIN QUERY TREE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 753 out of 1000 EXPLAIN QUERY TREE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 754 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 755 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 756 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 757 out of 1000 EXPLAIN SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 758 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 759 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 760 out of 1000 EXPLAIN PIPELINE header = true SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE header = true SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 761 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 762 out of 1000 SELECT position(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 23), currentDatabase(), t), toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT position(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 23), currentDatabase(), t), toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT position(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)), 23), currentDatabase(), t), toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 763 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 764 out of 1000 SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_2 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 765 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 766 out of 1000 SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 767 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 768 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 769 out of 1000 EXPLAIN ESTIMATE SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN ESTIMATE SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 770 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 771 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 772 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 773 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 774 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 775 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 776 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 777 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 778 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 779 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 780 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 781 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 782 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 783 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 784 out of 1000 SELECT position('aaaaa\0x', 7) FROM tab__fuzz_0 Error on processing query 'SELECT position('aaaaa\0x', 7) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position('aaaaa\0x', 7) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 785 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 786 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 787 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 788 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 789 out of 1000 SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position('aaaaa\0x', 7, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 790 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 791 out of 1000 SELECT position(toFixedString('aaaaa\0x', toUInt256(7)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 792 out of 1000 SELECT position(toFixedString('aaaaa\0x', toUInt256(7)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 793 out of 1000 SELECT position(toFixedString('aaaaa\0x', toUInt256(7))) FROM tab__fuzz_2 Error on processing query 'SELECT position(toFixedString('aaaaa\0x', toUInt256(7))) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 56 (')'): ) FROM tab__fuzz_2. Expected one of: token, OpeningRoundBracket, FILTER, RESPECT NULLS, IGNORE NULLS, OVER, Comma, IN, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS, identifier. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 794 out of 1000 SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(7)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 795 out of 1000 SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 796 out of 1000 SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 797 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 798 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 799 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 800 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 801 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 802 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 803 out of 1000 EXPLAIN SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 804 out of 1000 EXPLAIN SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 805 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 806 out of 1000 EXPLAIN SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 807 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 808 out of 1000 EXPLAIN AST SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 809 out of 1000 EXPLAIN AST SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 810 out of 1000 EXPLAIN AST SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 811 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 812 out of 1000 EXPLAIN AST SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 813 out of 1000 EXPLAIN AST SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 814 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 815 out of 1000 EXPLAIN ESTIMATE SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 816 out of 1000 EXPLAIN ESTIMATE SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 817 out of 1000 EXPLAIN QUERY TREE SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 818 out of 1000 EXPLAIN QUERY TREE SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 819 out of 1000 EXPLAIN QUERY TREE SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 820 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 821 out of 1000 SELECT position(toFixedString(cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23)), 23), currentDatabase(divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count() RESPECT NULLS) * 100), t), 'aaaaa\0x', 7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toFixedString(cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23)), 23), currentDatabase(divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count() RESPECT NULLS) * 100), t), 'aaaaa\0x', 7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT position(toFixedString(cluster(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23)), 23), currentDatabase(divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count() RESPECT NULLS) * 100), t), 'aaaaa\0x', 7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 822 out of 1000 EXPLAIN ESTIMATE SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 823 out of 1000 EXPLAIN ESTIMATE SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 824 out of 1000 EXPLAIN ESTIMATE SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 825 out of 1000 EXPLAIN ESTIMATE SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 826 out of 1000 EXPLAIN ESTIMATE SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 827 out of 1000 SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 828 out of 1000 SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 829 out of 1000 SELECT position(toFixedString((intDiv(toUInt32(rtime), 20) * 20) * materialize(1000), 'aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT position(toFixedString((intDiv(toUInt32(rtime), 20) * 20) * materialize(1000), 'aaaaa\0x', 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT position(toFixedString((intDiv(toUInt32(rtime), 20) * 20) * materialize(1000), 'aaaaa\0x', 7), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 830 out of 1000 SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 831 out of 1000 SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 832 out of 1000 SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 833 out of 1000 SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 834 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), cluster('test_cluster_two_shards', currentDatabase(), t), pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), cluster('test_cluster_two_shards', currentDatabase(), t), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 835 out of 1000 SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 836 out of 1000 SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 837 out of 1000 SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 838 out of 1000 SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 839 out of 1000 SELECT cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(toNullable(23))), 23, currentDatabase(), t), position(toFixedString(toLowCardinality('aaaaa\0x'), 7), toLowCardinality(toLowCardinality(toNullable(1))), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(toNullable(23))), 23, currentDatabase(), t), position(toFixedString(toLowCardinality('aaaaa\0x'), 7), toLowCardinality(toLowCardinality(toNullable(1))), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT cluster(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toNullable(toNullable(23))), 23, currentDatabase(), t), position(toFixedString(toLowCardinality('aaaaa\0x'), 7), toLowCardinality(toLowCardinality(toNullable(1))), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 840 out of 1000 SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 841 out of 1000 SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_2 WHERE toNullable(materialize(toLowCardinality(1000))) Error on processing query 'SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_2 WHERE toNullable(materialize(toLowCardinality(1000)))': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_2 WHERE toNullable(materialize(toLowCardinality(1000))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 842 out of 1000 SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 843 out of 1000 SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 844 out of 1000 SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 845 out of 1000 EXPLAIN PIPELINE compact = true SELECT intDiv(toUInt32(rtime), 20) * materialize(1000), position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 PREWHERE toFixedString(' ', toLowCardinality(toUInt256(1))) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT intDiv(toUInt32(rtime), 20) * materialize(1000), position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 PREWHERE toFixedString(' ', toLowCardinality(toUInt256(1)))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 846 out of 1000 SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 847 out of 1000 SELECT position(toFixedString(toLowCardinality(toUInt8((number / toLowCardinality(8)) % toUInt128(2)), 'aaaaa\0x'), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString(toLowCardinality(toUInt8((number / toLowCardinality(8)) % toUInt128(2)), 'aaaaa\0x'), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toFixedString(toLowCardinality(toUInt8((number / toLowCardinality(8)) % toUInt128(2)), 'aaaaa\0x'), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 848 out of 1000 SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 849 out of 1000 SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 850 out of 1000 SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 851 out of 1000 SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 852 out of 1000 SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 853 out of 1000 SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 854 out of 1000 SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 855 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 856 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 857 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 858 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 859 out of 1000 EXPLAIN ESTIMATE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 GROUP BY number / 8 Error on processing query 'EXPLAIN ESTIMATE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 GROUP BY number / 8': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 GROUP BY number / 8. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 860 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 861 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 862 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 863 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 864 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 865 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 866 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 867 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 868 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 869 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 870 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 871 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 872 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 873 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 874 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 875 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 876 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 877 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 878 out of 1000 EXPLAIN QUERY TREE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 879 out of 1000 EXPLAIN SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 880 out of 1000 EXPLAIN SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 881 out of 1000 EXPLAIN SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 882 out of 1000 EXPLAIN SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 883 out of 1000 EXPLAIN SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 884 out of 1000 EXPLAIN SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 885 out of 1000 EXPLAIN AST SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 886 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 887 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 888 out of 1000 EXPLAIN PIPELINE SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 889 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 890 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 891 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 892 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 893 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 894 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 895 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 896 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 897 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 898 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 899 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_0 WHERE toFixedString(toFixedString(' ', 1), 1) Error on processing query 'SELECT position(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_0 WHERE toFixedString(toFixedString(' ', 1), 1)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_0 WHERE toFixedString(toFixedString(' ', 1), 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 900 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT position(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 901 out of 1000 SELECT 1000, position(toFixedString(toFixedString('aaaaa\0x', nums__fuzz_6, 7), 7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT 1000, position(toFixedString(toFixedString('aaaaa\0x', nums__fuzz_6, 7), 7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_6' in scope SELECT 1000, position(toFixedString(toFixedString('aaaaa\0x', nums__fuzz_6, 7), 7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 902 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 903 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 904 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 905 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), toNullable(7)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 906 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', toNullable(toUInt256(7))), toNullable(7)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 907 out of 1000 SELECT position(toFixedString('aaaaa\0x', toNullable(toUInt256(7))), toNullable(7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString('aaaaa\0x', toNullable(toUInt256(7))), toNullable(7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toFixedString('aaaaa\0x', toNullable(toUInt256(7))), toNullable(7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 908 out of 1000 SELECT position(toFixedString(sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS, toFixedString('aaaaa\0x', toNullable(toUInt256(7))), toNullable(7)), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toFixedString(sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS, toFixedString('aaaaa\0x', toNullable(toUInt256(7))), toNullable(7)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT position(toFixedString(sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS, toFixedString('aaaaa\0x', toNullable(toUInt256(7))), toNullable(7)), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 909 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', toNullable(toUInt256(7))), toNullable(7)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 910 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', toNullable(toUInt256(7))), toNullable(7)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 911 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', toNullable(toUInt256(7))), toNullable(7)), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 912 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', toNullable(toUInt256(7))), toNullable(7)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 913 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', toNullable(toUInt256(7))), toNullable(toLowCardinality(toNullable(7)))), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 914 out of 1000 SELECT position(toFixedString('aaaaa\0x', toNullable(toUInt256(7))), toNullable(toLowCardinality(toNullable(7))), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(toFixedString('aaaaa\0x', toNullable(toUInt256(7))), toNullable(toLowCardinality(toNullable(7))), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toFixedString('aaaaa\0x', toNullable(toUInt256(7))), toNullable(toLowCardinality(toNullable(7))), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 915 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x'), toNullable(toLowCardinality(toNullable(7)))), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT position(toFixedString(toFixedString('aaaaa\0x'), toNullable(toLowCardinality(toNullable(7)))), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT position(toFixedString(toFixedString('aaaaa\0x'), toNullable(toLowCardinality(toNullable(7)))), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 916 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', toNullable(7)), toLowCardinality(toNullable(7))), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 917 out of 1000 SELECT position(toFixedString('aaaaa\0x', toNullable(7), toLowCardinality(7)), pattern) FROM tab__fuzz_1 WHERE round(divide(count()) * 100) Error on processing query 'SELECT position(toFixedString('aaaaa\0x', toNullable(7), toLowCardinality(7)), pattern) FROM tab__fuzz_1 WHERE round(divide(count()) * 100)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString('aaaaa\0x', toNullable(7), toLowCardinality(7)), pattern) FROM tab__fuzz_1 WHERE round(divide(count()) * 100). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 918 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', toNullable(7)), toLowCardinality(toNullable(7))), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 919 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', toNullable(7)), toLowCardinality(toNullable(7))), pattern) FROM tab__fuzz_1 GROUP BY intDiv(toUInt32(rtime), 20) * 1000, if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(0)), countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(12), 12), 12)) Error on processing query 'SELECT position(toFixedString(toFixedString('aaaaa\0x', toNullable(7)), toLowCardinality(toNullable(7))), pattern) FROM tab__fuzz_1 GROUP BY intDiv(toUInt32(rtime), 20) * 1000, if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(0)), countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(12), 12), 12))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT position(toFixedString(toFixedString('aaaaa\0x', toNullable(7)), toLowCardinality(toNullable(7))), pattern) FROM tab__fuzz_1 GROUP BY intDiv(toUInt32(rtime), 20) * 1000, if((a >= toLowCardinality(0)) AND (b != 100) AND (c > 220), 1, materialize(0)), countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(12), 12), 12)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 920 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(toNullable(7))), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 921 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(toNullable(7))), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 922 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), toLowCardinality(toNullable(7)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(toFixedString('aaaaa\0x', 7), toLowCardinality(toNullable(7)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toFixedString('aaaaa\0x', 7), toLowCardinality(toNullable(7)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 923 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), toLowCardinality(toNullable(7)), pattern) FROM tab__fuzz_0 PREWHERE t__fuzz_44 GROUP BY toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), toLowCardinality(12)) Error on processing query 'SELECT position(toFixedString('aaaaa\0x', 7), toLowCardinality(toNullable(7)), pattern) FROM tab__fuzz_0 PREWHERE t__fuzz_44 GROUP BY toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), toLowCardinality(12))': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toFixedString('aaaaa\0x', 7), toLowCardinality(toNullable(7)), pattern) FROM tab__fuzz_0 PREWHERE t__fuzz_44 GROUP BY toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), toLowCardinality(12)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 924 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toLowCardinality(toNullable(7))), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 925 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), toLowCardinality(toNullable(7)), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), toLowCardinality(toNullable(7)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), toLowCardinality(toNullable(7)), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 926 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toLowCardinality(toNullable(7))), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 927 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', 7, 7), toNullable(7)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(toFixedString(toFixedString('aaaaa\0x', 7, 7), toNullable(7)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString(toFixedString('aaaaa\0x', 7, 7), toNullable(7)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 928 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toNullable(7)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 929 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7, toNullable(7)), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7, toNullable(7)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7, toNullable(7)), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 930 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), toNullable(7)), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), toNullable(7)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), toNullable(7)), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 931 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toNullable(7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toNullable(7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toNullable(7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 932 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 933 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 934 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 935 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 936 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 937 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 938 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable(materialize(toFixedString('aaaaa\0x', 7))), 7), 7), 7), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT position(toFixedString(toFixedString(toFixedString(toNullable(materialize(toFixedString('aaaaa\0x', 7))), 7), 7), 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Function 'position' doesn't support FixedString haystack argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001b96a794 4. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000837d9c2 5. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d58bb 6. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 7. DB::IExecutableFunction::defaultImplementationForNulls(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b6008d9 8. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffbf4 9. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 10. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x000000003324d830 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x0000000033248983 13. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000003b82b8f7 14. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:0: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000003bdff695 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d2837e 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d111cc 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 939 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 940 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 941 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT position(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT position(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 942 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7, 7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7, 7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7, 7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 943 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 944 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 945 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 946 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toNullable(1) AND x1 AND x2 AND x3 AND x4, 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toNullable(1) AND x1 AND x2 AND x3 AND x4, 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toNullable(1) AND x1 AND x2 AND x3 AND x4, 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 947 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 948 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), x7, 7), 7), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), x7, 7), 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x7' in scope SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), x7, 7), 7), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 949 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 950 out of 1000 SELECT position(toFixedString(toFixedString(7), 7), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT position(toFixedString(toFixedString(7), 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT position(toFixedString(toFixedString(7), 7), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 951 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7, 7), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7, 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7, 7), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 952 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 953 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7, 7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7, 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7, 7), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 954 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 955 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 956 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 957 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 958 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 959 out of 1000 SELECT (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, position(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, position(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT (sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), 0)) IGNORE NULLS / count() IGNORE NULLS) * 100, position(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 960 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7, 7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7, 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7, 7), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 961 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable(toUInt256(220), 'aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString(toFixedString(toFixedString(toNullable(toUInt256(220), 'aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT position(toFixedString(toFixedString(toFixedString(toNullable(toUInt256(220), 'aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 962 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 963 out of 1000 SELECT position(toFixedString(toFixedString(toNullable(8), toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable(8), toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString(toFixedString(toNullable(8), toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 964 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 965 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 966 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 967 out of 1000 EXPLAIN PIPELINE header = true SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN PIPELINE header = true SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), 7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 968 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7, 7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7, 7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7, 7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 969 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toLowCardinality(7)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 970 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), toLowCardinality(7)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), toLowCardinality(7)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), toLowCardinality(7)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 971 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), toLowCardinality(7)), toFixedString('aaaaa\0x', toNullable(toUInt256(7)), toNullable(7)), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), toLowCardinality(7)), toFixedString('aaaaa\0x', toNullable(toUInt256(7)), toNullable(7)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7, 7), toLowCardinality(7)), toFixedString('aaaaa\0x', toNullable(toUInt256(7)), toNullable(7)), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 972 out of 1000 EXPLAIN SYNTAX SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toLowCardinality(7)), pattern) FROM tab__fuzz_0 WHERE toLowCardinality(toUInt128(2)) Error on processing query 'EXPLAIN SYNTAX SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toLowCardinality(7)), pattern) FROM tab__fuzz_0 WHERE toLowCardinality(toUInt128(2))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of column for constant filter. Must be UInt8 or Nullable(UInt8).: While processing SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toLowCardinality(7)), pattern) FROM tab__fuzz_0 WHERE toLowCardinality(toUInt128(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab02c8 6. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 7. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 9. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 12. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 13. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 17. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 973 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toLowCardinality(7)), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 974 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toLowCardinality(7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toLowCardinality(7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toLowCardinality(7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 975 out of 1000 SELECT position(toFixedString(toFixedString((x1 AND x2) AND (b != materialize(100)) AND (0 AND 1000 AND x4), toFixedString(toNullable('aaaaa\0x'), 7), 7)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(toFixedString(toFixedString((x1 AND x2) AND (b != materialize(100)) AND (0 AND 1000 AND x4), toFixedString(toNullable('aaaaa\0x'), 7), 7)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT position(toFixedString(toFixedString((x1 AND x2) AND (b != materialize(100)) AND (0 AND 1000 AND x4), toFixedString(toNullable('aaaaa\0x'), 7), 7)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 976 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toLowCardinality(7)), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 977 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toLowCardinality(7)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 978 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toLowCardinality(7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toLowCardinality(7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toLowCardinality(7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 979 out of 1000 SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toLowCardinality(7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toLowCardinality(7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), toLowCardinality(7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 980 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable(materialize('aaaaa\0x')), 7), 7), toLowCardinality(7)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(toFixedString(toFixedString(toFixedString(toNullable(materialize('aaaaa\0x')), 7), 7), toLowCardinality(7)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Function 'position' doesn't support FixedString haystack argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001b96a794 4. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000837d9c2 5. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d58bb 6. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 7. DB::IExecutableFunction::defaultImplementationForNulls(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b6008d9 8. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffbf4 9. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 10. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x000000003324d830 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x0000000033248983 13. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000003b82b8f7 14. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:0: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000003bdff695 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d2837e 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d111cc 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 981 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 982 out of 1000 SELECT position(toFixedString(id = 1, toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(toFixedString(id = 1, toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(toFixedString(id = 1, toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 983 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 984 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), materialize(7)), 7), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), materialize(7)), 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), materialize(7)), 7), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 985 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 986 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 987 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 988 out of 1000 SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 989 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 990 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 991 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 992 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 993 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 994 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 995 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 996 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), materialize(toLowCardinality(7))), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), materialize(toLowCardinality(7))), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT position(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), materialize(toLowCardinality(7))), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 997 out of 1000 SELECT position(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 998 out of 1000 SELECT position(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 999 out of 1000 SELECT position(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7, greaterOrEquals(sum(if((b != toNullable(materialize(materialize(sum(if((b != 100) AND (c = 0), 1, 0)), toNullable(1))), 100)) AND (c = 0), materialize(toUInt128(1)), 0)), a, 0) AND splitByChar(toLowCardinality(' '), getOSKernelVersion()) AND 1, 7), 7), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT position(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7, greaterOrEquals(sum(if((b != toNullable(materialize(materialize(sum(if((b != 100) AND (c = 0), 1, 0)), toNullable(1))), 100)) AND (c = 0), materialize(toUInt128(1)), 0)), a, 0) AND splitByChar(toLowCardinality(' '), getOSKernelVersion()) AND 1, 7), 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT position(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7, greaterOrEquals(sum(if((b != toNullable(materialize(materialize(sum(if((b != 100) AND (c = 0), 1, 0)), toNullable(1))), 100)) AND (c = 0), materialize(toUInt128(1)), 0)), a, 0) AND splitByChar(toLowCardinality(' '), getOSKernelVersion()) AND 1, 7), 7), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 30. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT positionCaseInsensitive(sum(id, if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))), 'aaaaa\0x', pattern) FROM tab__fuzz_1 WHERE id = 2 Error on processing query 'SELECT positionCaseInsensitive(sum(id, if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))), 'aaaaa\0x', pattern) FROM tab__fuzz_1 WHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT positionCaseInsensitive(sum(id, if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))), 'aaaaa\0x', pattern) FROM tab__fuzz_1 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 2 out of 1000 SELECT positionCaseInsensitive('aaaaa\0x', pattern) FROM tab WHERE id = 2 Got boring AST Fuzzing step 3 out of 1000 SELECT positionCaseInsensitive('aaaaa\0x', pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'SELECT positionCaseInsensitive('aaaaa\0x', pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive('aaaaa\0x', pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 4 out of 1000 EXPLAIN QUERY TREE dump_passes = true SELECT positionCaseInsensitive('aaaaa\0x', pattern) FROM tab WHERE equals(2) Error on processing query 'EXPLAIN QUERY TREE dump_passes = true SELECT positionCaseInsensitive('aaaaa\0x', pattern) FROM tab WHERE equals(2)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "dump_passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 5 out of 1000 SELECT positionCaseInsensitive('aaaaa\0x', pattern) FROM tab WHERE id = 2 Got boring AST Fuzzing step 6 out of 1000 SELECT positionCaseInsensitive('aaaaa\0x', pattern) FROM tab WHERE id = 2 Got boring AST Fuzzing step 7 out of 1000 SELECT positionCaseInsensitive('aaaaa\0x', pattern) FROM tab WHERE id = 2 Got boring AST Fuzzing step 8 out of 1000 SELECT positionCaseInsensitive('aaaaa\0x', pattern) FROM tab WHERE id = 2 Got boring AST Fuzzing step 9 out of 1000 SELECT positionCaseInsensitive('aaaaa\0x', pattern) FROM tab__fuzz_1 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 10 out of 1000 SELECT positionCaseInsensitive('aaaaa\0x', pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 11 out of 1000 SELECT positionCaseInsensitive(toUInt128(2), 'aaaaa\0x', pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'SELECT positionCaseInsensitive(toUInt128(2), 'aaaaa\0x', pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toUInt128(2), 'aaaaa\0x', pattern) FROM tab__fuzz_2 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b978487 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 12 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 13 out of 1000 SELECT positionCaseInsensitive('aaaaa\0x', 7, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT positionCaseInsensitive('aaaaa\0x', 7, pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive('aaaaa\0x', 7, pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 14 out of 1000 SELECT positionCaseInsensitive(toFixedString(materialize('aaaaa\0x'), 7), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(materialize('aaaaa\0x'), 7), pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Function 'positionCaseInsensitive' doesn't support FixedString haystack argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001b975e0c 4. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000837d9c2 5. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d58bb 6. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 7. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 8. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x000000003324d830 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x0000000033248983 11. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000003b82b8f7 12. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:0: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000003bdff695 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d2837e 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d111cc 15. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 16. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 15 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', toUInt256(7)), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 16 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', toUInt256(7)), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 17 out of 1000 SELECT positionCaseInsensitive('aaaaa\0x', toUInt256(7), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT positionCaseInsensitive('aaaaa\0x', toUInt256(7), pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive('aaaaa\0x', toUInt256(7), pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 18 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', toUInt256(7)), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 19 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x'), pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x'), pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x'), pattern) FROM tab__fuzz_2 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 20 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', toUInt256(7)), pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 21 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', toUInt256(7)), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 22 out of 1000 SELECT positionCaseInsensitive(toFixedString(nums__fuzz_14, 'aaaaa\0x', toUInt256(7)), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(nums__fuzz_14, 'aaaaa\0x', toUInt256(7)), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_14' in scope SELECT positionCaseInsensitive(toFixedString(nums__fuzz_14, 'aaaaa\0x', toUInt256(7)), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 23 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 24 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(7)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 SELECT positionCaseInsensitive(toLowCardinality('aaaaa\0x'), toUInt256(7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toLowCardinality('aaaaa\0x'), toUInt256(7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toLowCardinality('aaaaa\0x'), toUInt256(7), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 26 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(7)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 27 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(7)), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 28 out of 1000 SELECT positionCaseInsensitive(toLowCardinality('aaaaa\0x'), toUInt256(7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toLowCardinality('aaaaa\0x'), toUInt256(7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toLowCardinality('aaaaa\0x'), toUInt256(7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 29 out of 1000 SELECT toUInt256(toFixedString('2022-01-01', toLowCardinality(toNullable(10))), 100), positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(7)), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT toUInt256(toFixedString('2022-01-01', toLowCardinality(toNullable(10))), 100), positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(7)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt256'. Expected 1 argument, got 2 arguments: In scope SELECT toUInt256(toFixedString('2022-01-01', toLowCardinality(toNullable(10))), 100), positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(7)), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000089618ce 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000893d0ea 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 30 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(7)), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 31 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toLowCardinality('aaaaa\0x'), toUInt256(7), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN PIPELINE SELECT positionCaseInsensitive(toLowCardinality('aaaaa\0x'), toUInt256(7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toLowCardinality('aaaaa\0x'), toUInt256(7), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 32 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(7)), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 33 out of 1000 SELECT positionCaseInsensitive(toLowCardinality('aaaaa\0x'), toUInt256(7), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT positionCaseInsensitive(toLowCardinality('aaaaa\0x'), toUInt256(7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toLowCardinality('aaaaa\0x'), toUInt256(7), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 34 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toLowCardinality('aaaaa\0x')), toUInt256(7)), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 35 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(7)), pattern) FROM tab__fuzz_0 WHERE (b != 100) AND (c = 0) Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(7)), pattern) FROM tab__fuzz_0 WHERE (b != 100) AND (c = 0)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(7)), pattern) FROM tab__fuzz_0 WHERE (b != 100) AND (c = 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 36 out of 1000 SELECT tab__fuzz_22, positionCaseInsensitive(toFixedString(toLowCardinality(toLowCardinality('aaaaa\0x')), toUInt256(7)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT tab__fuzz_22, positionCaseInsensitive(toFixedString(toLowCardinality(toLowCardinality('aaaaa\0x')), toUInt256(7)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression identifier 'tab__fuzz_22' in scope SELECT tab__fuzz_22, positionCaseInsensitive(toFixedString(toLowCardinality(toLowCardinality('aaaaa\0x')), toUInt256(7)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 37 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toLowCardinality('aaaaa\0x')), toUInt256(7)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 38 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toLowCardinality(countSubstrings(haystack, pattern), 'aaaaa\0x')), toUInt256(7)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toLowCardinality(countSubstrings(haystack, pattern), 'aaaaa\0x')), toUInt256(7)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toLowCardinality(countSubstrings(haystack, pattern), 'aaaaa\0x')), toUInt256(7)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 39 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toLowCardinality('aaaaa\0x')), toUInt256(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 7)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toLowCardinality('aaaaa\0x')), toUInt256(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 7)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt256'. Expected 1 argument, got 2 arguments: In scope SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toLowCardinality('aaaaa\0x')), toUInt256(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 7)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000089618ce 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000893c835 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 40 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(toUInt128(7))), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(toUInt128(7))), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(toUInt128(7))), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 41 out of 1000 EXPLAIN `header, description` = true, indexes = true SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toLowCardinality('aaaaa\0x')), toUInt256(7)), pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN `header, description` = true, indexes = true SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toLowCardinality('aaaaa\0x')), toUInt256(7)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown setting "header, description" for EXPLAIN PLAN query. Supported settings: sorting, optimize, indexes, json, actions, description, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000034980e77 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496d3ee 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 42 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(7)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 43 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x'), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 44 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 'test_cluster_two_shards', toNullable(23), 7), pattern) FROM tab__fuzz_1 WHERE number / 128 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 'test_cluster_two_shards', toNullable(23), 7), pattern) FROM tab__fuzz_1 WHERE number / 128': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 4, should be 2: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 'test_cluster_two_shards', toNullable(23), 7), pattern) FROM tab__fuzz_1 WHERE number / 128. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 45 out of 1000 SELECT positionCaseInsensitive(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT positionCaseInsensitive(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toLowCardinality('aaaaa\0x'), 7, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 46 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 47 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 48 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 49 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 50 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 51 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 53 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 54 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 55 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 57 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 58 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 59 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 60 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 61 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 62 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 63 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 64 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('positionCaseInsensitive'): positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 65 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 EXPLAIN SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('positionCaseInsensitive'): positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 68 out of 1000 EXPLAIN SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 69 out of 1000 EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('positionCaseInsensitive'): positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 70 out of 1000 EXPLAIN SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 71 out of 1000 EXPLAIN SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 72 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 73 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 74 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 75 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 76 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 77 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 78 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 79 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 80 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 81 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 82 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 83 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 86 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 87 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 88 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3 WHERE toLowCardinality(23) Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3 WHERE toLowCardinality(23)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3 WHERE toLowCardinality(23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 89 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 90 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 91 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 92 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 93 out of 1000 EXPLAIN SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 94 out of 1000 EXPLAIN SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 95 out of 1000 EXPLAIN SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 96 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 98 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 99 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 100 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 101 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 102 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 103 out of 1000 EXPLAIN SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 EXPLAIN SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 105 out of 1000 EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('positionCaseInsensitive'): positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 106 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 107 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 108 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 109 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 110 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 111 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 112 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 113 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 114 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 115 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 116 out of 1000 SELECT positionCaseInsensitive(pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT positionCaseInsensitive(pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b977fee 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 117 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 118 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 119 out of 1000 EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('positionCaseInsensitive'): positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 120 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 121 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 122 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 123 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 124 out of 1000 EXPLAIN SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 125 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 126 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 127 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 128 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 129 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 130 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 131 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 132 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), 7)), 7), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 EXPLAIN PIPELINE compact = true SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 134 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), 7)), 7), pattern) FROM tab__fuzz_2 PREWHERE x6 OR x7 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), 7)), 7), pattern) FROM tab__fuzz_2 PREWHERE x6 OR x7': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x6' in scope SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), 7)), 7), pattern) FROM tab__fuzz_2 PREWHERE x6 OR x7. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 135 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), 7)), 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 136 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), 7)), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 137 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 138 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), pattern) FROM tab__fuzz_0 GROUP BY toFixedString(x7, toLowCardinality('aaaaa\0x'), 7), day = '2022-01-01' Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), pattern) FROM tab__fuzz_0 GROUP BY toFixedString(x7, toLowCardinality('aaaaa\0x'), 7), day = '2022-01-01'': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x7' in scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), pattern) FROM tab__fuzz_0 GROUP BY toFixedString(x7, toLowCardinality('aaaaa\0x'), 7), day = '2022-01-01'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 139 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 SELECT positionCaseInsensitive(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 141 out of 1000 SELECT positionCaseInsensitive(pattern) FROM tab__fuzz_0 Error on processing query 'SELECT positionCaseInsensitive(pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT positionCaseInsensitive(pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b977fee 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 142 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 143 out of 1000 EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('positionCaseInsensitive'): positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 144 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), materialize(toNullable(7))), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), materialize(toNullable(7))), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), materialize(toNullable(7))), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 145 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 146 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 147 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 148 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 149 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 150 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 151 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 152 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 153 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 154 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 155 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 156 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 157 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 158 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 159 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 160 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 161 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 162 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 163 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 SELECT positionCaseInsensitive(toFixedString(7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(7), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 165 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_1 GROUP BY (number / toLowCardinality(8)) % toLowCardinality(toUInt128(materialize(2))), and(toNullable(0) AND toLowCardinality(1000) AND x3 AND x4), 1000, position('aaaaa\0x', toNullable(7), toLowCardinality(7), pattern) Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_1 GROUP BY (number / toLowCardinality(8)) % toLowCardinality(toUInt128(materialize(2))), and(toNullable(0) AND toLowCardinality(1000) AND x3 AND x4), 1000, position('aaaaa\0x', toNullable(7), toLowCardinality(7), pattern)': Received from localhost:9000. DB::Exception: Positional argument number 1000 is out of bounds. Expected in range [1, 1]. In scope SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_1 GROUP BY (number / toLowCardinality(8)) % toLowCardinality(toUInt128(materialize(2))), and(toNullable(0) AND toLowCardinality(1000) AND x3 AND x4), 1000, position('aaaaa\0x', toNullable(7), toLowCardinality(7), pattern). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 166 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7)))), 7), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 167 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x')), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x')), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x')), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 168 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7)))), 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 169 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(sum(if((a >= 0) AND (b != toUInt128(toLowCardinality(100))) AND (c > toUInt256(220)), 1, 0)), toLowCardinality(toNullable('aaaaa\0x')), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(sum(if((a >= 0) AND (b != toUInt128(toLowCardinality(100))) AND (c > toUInt256(220)), 1, 0)), toLowCardinality(toNullable('aaaaa\0x')), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(sum(if((a >= 0) AND (b != toUInt128(toLowCardinality(100))) AND (c > toUInt256(220)), 1, 0)), toLowCardinality(toNullable('aaaaa\0x')), toLowCardinality(7))), 7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 30. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 170 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(number / 2, 'aaaaa\0x', toLowCardinality(toUInt256(7)))), 7), pattern) FROM tab__fuzz_3 WHERE divide(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0)), number, toUInt256(4)) % 2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(number / 2, 'aaaaa\0x', toLowCardinality(toUInt256(7)))), 7), pattern) FROM tab__fuzz_3 WHERE divide(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0)), number, toUInt256(4)) % 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString(number / 2, 'aaaaa\0x', toLowCardinality(toUInt256(7)))), 7), pattern) FROM tab__fuzz_3 WHERE divide(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), toLowCardinality(0)), number, toUInt256(4)) % 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 171 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x', toLowCardinality(toUInt256(7))), 7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x', toLowCardinality(toUInt256(7))), 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x', toLowCardinality(toUInt256(7))), 7), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 172 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', toLowCardinality(7))), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 173 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7)))), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 174 out of 1000 SELECT if((a >= 0) AND 1 AND (c > 220), toUInt256(1), 0), positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7))), 7), pattern) FROM tab__fuzz_0 PREWHERE intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000 Error on processing query 'SELECT if((a >= 0) AND 1 AND (c > 220), toUInt256(1), 0), positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7))), 7), pattern) FROM tab__fuzz_0 PREWHERE intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT if((a >= 0) AND 1 AND (c > 220), toUInt256(1), 0), positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7))), 7), pattern) FROM tab__fuzz_0 PREWHERE intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 175 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7)))), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7)))), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7)))), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 176 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7)))), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7)))), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7)))), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 177 out of 1000 SELECT positionCaseInsensitive(toFixedString(position('aaaaa\0x', 7, pattern), toLowCardinality(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7)))), 7), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(position('aaaaa\0x', 7, pattern), toLowCardinality(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7)))), 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT positionCaseInsensitive(toFixedString(position('aaaaa\0x', 7, pattern), toLowCardinality(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7)))), 7), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 178 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', toUInt256(7))), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 179 out of 1000 SELECT positionCaseInsensitive(pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT positionCaseInsensitive(pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b977fee 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 180 out of 1000 SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x')), 7), pattern) FROM tab__fuzz_2 WHERE toFixedString('OK', 2) Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x')), 7), pattern) FROM tab__fuzz_2 WHERE toFixedString('OK', 2)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x')), 7), pattern) FROM tab__fuzz_2 WHERE toFixedString('OK', 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 181 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN ESTIMATE SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 182 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', toUInt256(7)), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 183 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', toUInt256(7)), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 184 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', toUInt256(toLowCardinality(7))), toNullable(7)), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 185 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', toUInt256(toLowCardinality(7))), toNullable(7)), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 186 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', toUInt256(toLowCardinality(7))), toNullable(7)), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 187 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', toUInt256(toLowCardinality(7))), toNullable(7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', toUInt256(toLowCardinality(7))), toNullable(7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', toUInt256(toLowCardinality(7))), toNullable(7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 188 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', toUInt256(toLowCardinality(7)), toNullable(7)), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', toUInt256(toLowCardinality(7)), toNullable(7)), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', toUInt256(toLowCardinality(7)), toNullable(7)), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 189 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', toUInt256(toLowCardinality(7))), toNullable(7)), pattern) FROM tab__fuzz_2 GROUP BY if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0), toUInt256(toNullable(toNullable(1))) Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', toUInt256(toLowCardinality(7))), toNullable(7)), pattern) FROM tab__fuzz_2 GROUP BY if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0), toUInt256(toNullable(toNullable(1)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', toUInt256(toLowCardinality(7))), toNullable(7)), pattern) FROM tab__fuzz_2 GROUP BY if((a >= 0) AND (b != toNullable(100)) AND (c = 0), 1, 0), toUInt256(toNullable(toNullable(1))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 190 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', toLowCardinality(7)), toNullable(7)), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 191 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', toLowCardinality(7), toNullable(7)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', toLowCardinality(7), toNullable(7)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', toLowCardinality(7), toNullable(7)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 192 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', toLowCardinality(7)), toNullable(7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', toLowCardinality(7)), toNullable(7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', toLowCardinality(7)), toNullable(7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 193 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23, 23), toFixedString(toFixedString('aaaaa\0x', 7), toNullable(7)), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23, 23), toFixedString(toFixedString('aaaaa\0x', 7), toNullable(7)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23, 23), toFixedString(toFixedString('aaaaa\0x', 7), toNullable(7)), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 194 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', toLowCardinality(7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 195 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', toLowCardinality(7)), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 196 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', toLowCardinality(7)), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 197 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 198 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), materialize(toNullable(7))), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), materialize(toNullable(7))), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), materialize(toNullable(7))), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 199 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 200 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 201 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 202 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 203 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 204 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 205 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 206 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 207 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 208 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 209 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 210 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 211 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 212 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 213 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 214 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 215 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 216 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 217 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 218 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 219 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 220 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('positionCaseInsensitive'): positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 221 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 222 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 223 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 224 out of 1000 EXPLAIN SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 225 out of 1000 EXPLAIN SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 226 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 227 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 228 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 229 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 230 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 231 out of 1000 EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('positionCaseInsensitive'): positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 232 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 233 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 234 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 235 out of 1000 EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('positionCaseInsensitive'): positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 236 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 237 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 238 out of 1000 EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('positionCaseInsensitive'): positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 239 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 240 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 241 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', if((a >= 0) AND notEquals(positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), materialize(7)), pattern), b, 100) AND (c = 0), 1, 0), 7), 7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', if((a >= 0) AND notEquals(positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), materialize(7)), pattern), b, 100) AND (c = 0), 1, 0), 7), 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', if((a >= 0) AND notEquals(positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), materialize(7)), pattern), b, 100) AND (c = 0), 1, 0), 7), 7), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 242 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7)) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7)) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7)) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b977fee 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 243 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 244 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_2 WHERE toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7) Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_2 WHERE toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7)': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: LowCardinality(FixedString(7)). In query SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_2 WHERE toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 245 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 246 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 247 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3 PREWHERE version_pair[materialize(materialize(toNullable(1)))] Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3 PREWHERE version_pair[materialize(materialize(toNullable(1)))]': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3 PREWHERE version_pair[materialize(materialize(toNullable(1)))]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 248 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 249 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 250 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 251 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 252 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 253 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 254 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 255 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 256 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 257 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 258 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 259 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 260 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 261 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT positionCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), pattern) FROM tab__fuzz_2 WHERE toUInt256(100) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT positionCaseInsensitive(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), pattern) FROM tab__fuzz_2 WHERE toUInt256(100)': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 262 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(7), 7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(7), 7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(7), 7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 263 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, toLowCardinality(toUInt128(7))), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, toLowCardinality(toUInt128(7))), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, toLowCardinality(toUInt128(7))), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 264 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 265 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 266 out of 1000 SELECT positionCaseInsensitive(pattern) FROM tab__fuzz_1 Error on processing query 'SELECT positionCaseInsensitive(pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT positionCaseInsensitive(pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b977fee 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 267 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(materialize('aaaaa\0x'), 7), 7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(materialize('aaaaa\0x'), 7), 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Function 'positionCaseInsensitive' doesn't support FixedString haystack argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001b975e0c 4. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000837d9c2 5. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d58bb 6. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 7. DB::IExecutableFunction::defaultImplementationForNulls(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b6008d9 8. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffbf4 9. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 10. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x000000003324d830 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x0000000033248983 13. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000003b82b8f7 14. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:0: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000003bdff695 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d2837e 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d111cc 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 268 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 269 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 270 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 271 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 272 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 273 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3 WHERE sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3 WHERE sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3 WHERE sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 274 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 275 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 276 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 277 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 278 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 279 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 280 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 281 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, toLowCardinality(1000), 7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, toLowCardinality(1000), 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 4, should be 2: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, toLowCardinality(1000), 7), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 282 out of 1000 SELECT positionCaseInsensitive(pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT positionCaseInsensitive(pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b977fee 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 283 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 284 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 285 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(sum(if((a >= 0) AND (b != 100) AND (c = 0), toNullable(0))), 'aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(sum(if((a >= 0) AND (b != 100) AND (c = 0), toNullable(0))), 'aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT positionCaseInsensitive(toFixedString(toFixedString(sum(if((a >= 0) AND (b != 100) AND (c = 0), toNullable(0))), 'aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 286 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), (number / toNullable(8)) % toUInt128(materialize(2)), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), (number / toNullable(8)) % toUInt128(materialize(2)), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), (number / toNullable(8)) % toUInt128(materialize(2)), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 287 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 288 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 289 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 290 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 291 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 292 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', materialize(7)), 7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', materialize(7)), 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', materialize(7)), 7), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 293 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 294 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_1 GROUP BY (a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality((a >= 0) AND 1 AND (c > 220), 23)), toNullable(23)), toNullable(100)) AND (c = 0), materialize(toFixedString(' ', toLowCardinality(1))) Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_1 GROUP BY (a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality((a >= 0) AND 1 AND (c > 220), 23)), toNullable(23)), toNullable(100)) AND (c = 0), materialize(toFixedString(' ', toLowCardinality(1)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_1 GROUP BY (a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality((a >= 0) AND 1 AND (c > 220), 23)), toNullable(23)), toNullable(100)) AND (c = 0), materialize(toFixedString(' ', toLowCardinality(1))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 295 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7, 7), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 296 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 297 out of 1000 SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString('aaaaa\0x', 7), 7, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 298 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 299 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 300 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 301 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 302 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 303 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 304 out of 1000 SELECT positionCaseInsensitive(pattern) FROM tab__fuzz_0 Error on processing query 'SELECT positionCaseInsensitive(pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT positionCaseInsensitive(pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b977fee 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 305 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), 7, pattern) FROM tab__fuzz_3 PREWHERE toFixedString(toNullable('aaaxxxaa\0xxx'), toUInt128(12)) Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), 7, pattern) FROM tab__fuzz_3 PREWHERE toFixedString(toNullable('aaaxxxaa\0xxx'), toUInt128(12))': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), 7, pattern) FROM tab__fuzz_3 PREWHERE toFixedString(toNullable('aaaxxxaa\0xxx'), toUInt128(12)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 306 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 308 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7, toLowCardinality(7)), 7), 7), pattern) FROM tab__fuzz_1 GROUP BY or1, 7, positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern) Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7, toLowCardinality(7)), 7), 7), pattern) FROM tab__fuzz_1 GROUP BY or1, 7, positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7, toLowCardinality(7)), 7), 7), pattern) FROM tab__fuzz_1 GROUP BY or1, 7, positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', 7)), 7), pattern). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 309 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString(materialize('aaaaa\0x'), 7), toLowCardinality(7)), 7), 7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString(materialize('aaaaa\0x'), 7), toLowCardinality(7)), 7), 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Function 'positionCaseInsensitive' doesn't support FixedString haystack argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001b975e0c 4. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000837d9c2 5. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d58bb 6. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 7. DB::IExecutableFunction::defaultImplementationForNulls(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b6008d9 8. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffbf4 9. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 10. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x000000003324d830 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x0000000033248983 13. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000003b82b8f7 14. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:0: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000003bdff695 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d2837e 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d111cc 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 310 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 311 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 312 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 313 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7, 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7, 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7, 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 314 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 315 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 316 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7, 7), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7, 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7, 7), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 317 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7, 7), pattern) FROM tab__fuzz_0 PREWHERE sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) GROUP BY intDiv(toUInt32(rtime), 20) * 1000, divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)) Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7, 7), pattern) FROM tab__fuzz_0 PREWHERE sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) GROUP BY intDiv(toUInt32(rtime), 20) * 1000, divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7, 7), pattern) FROM tab__fuzz_0 PREWHERE sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(0))) GROUP BY intDiv(toUInt32(rtime), 20) * 1000, divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 318 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7)), 7), 7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7)), 7), 7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7)), 7), 7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 319 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 320 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 321 out of 1000 SELECT positionCaseInsensitive(materialize(4), toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23, toFixedString(toFixedString('aaaaa\0x', 7, 7), 7), 7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(materialize(4), toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23, toFixedString(toFixedString('aaaaa\0x', 7, 7), 7), 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(materialize(4), toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23), 23, toFixedString(toFixedString('aaaaa\0x', 7, 7), 7), 7), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 322 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7), pattern) FROM tab__fuzz_1 PREWHERE (number / toNullable(4)) % toNullable(2) Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7), pattern) FROM tab__fuzz_1 PREWHERE (number / toNullable(4)) % toNullable(2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7), pattern) FROM tab__fuzz_1 PREWHERE (number / toNullable(4)) % toNullable(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 323 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 324 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7, toLowCardinality(7)), toLowCardinality(toUInt256(7))), 7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7, toLowCardinality(7)), toLowCardinality(toUInt256(7))), 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7, toLowCardinality(7)), toLowCardinality(toUInt256(7))), 7), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 325 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7, 7), 7), 7), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7, 7), 7), 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7, 7), 7), 7), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 326 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern), toNullable(7))), 7), 7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern), toNullable(7))), 7), 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern), toNullable(7))), 7), 7), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 327 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7), 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7), 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7), 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 328 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7, 7), 7), 7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7, 7), 7), 7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7, 7), 7), 7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 329 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7), 7), 7), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7), 7), 7), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7), 7), 7), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 330 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(7)), 7), 7, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 331 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 332 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7, 7), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7, 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7, 7), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 333 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(7)), 7), tab__fuzz_27, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(7)), 7), tab__fuzz_27, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(7)), 7), tab__fuzz_27, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 334 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7, 7), 7), 7), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN ESTIMATE SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7, 7), 7), 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7, 7), 7), 7), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 28. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 29. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 335 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 336 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 337 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7), 7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7), 7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7), 7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 338 out of 1000 EXPLAIN PIPELINE header = true SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7), pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN PIPELINE header = true SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 339 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 340 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7), 7), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7), 7), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7), 7), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 341 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 342 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(toFixedString('aaaaa\0x', toLowCardinality(7)), 7)), 7), pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN PIPELINE SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(toFixedString('aaaaa\0x', toLowCardinality(7)), 7)), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt256'. Expected 1 argument, got 2 arguments: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(toFixedString('aaaaa\0x', toLowCardinality(7)), 7)), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000089618ce 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000893c835 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 343 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 344 out of 1000 SELECT toFixedString(toFixedString('test_cluster_two_shards', 23), 23), positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 345 out of 1000 SELECT toFixedString(toFixedString('test_cluster_two_shards', 23), 23), positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toFixedString(toFixedString('test_cluster_two_shards', 23), 23), positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitive: In scope SELECT toFixedString(toFixedString('test_cluster_two_shards', 23), 23), positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 346 out of 1000 SELECT toFixedString(23), positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT toFixedString(23), positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toFixedString(23), positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 347 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23, 23), positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7))), pattern) FROM tab__fuzz_0 PREWHERE a >= materialize(toNullable(0)) Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23, 23), positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7))), pattern) FROM tab__fuzz_0 PREWHERE a >= materialize(toNullable(0))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString('test_cluster_two_shards', 23, 23), positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7))), pattern) FROM tab__fuzz_0 PREWHERE a >= materialize(toNullable(0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 348 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 349 out of 1000 SELECT toFixedString(toFixedString('test_cluster_two_shards', 23), 23), positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7), 7), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toFixedString(toFixedString('test_cluster_two_shards', 23), 23), positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7), 7), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString(toFixedString('test_cluster_two_shards', 23), 23), positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7), 7), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 350 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 23, positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 351 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 23, positionCaseInsensitive(toFixedString(toFixedString(toFixedString(7), toUInt256(7)), 7), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23), 23, positionCaseInsensitive(toFixedString(toFixedString(toFixedString(7), toUInt256(7)), 7), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toFixedString('test_cluster_two_shards', 23), 23, positionCaseInsensitive(toFixedString(toFixedString(toFixedString(7), toUInt256(7)), 7), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 352 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 353 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 354 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitive: In scope SELECT 'test_cluster_two_shards', 23, 23, positionCaseInsensitive(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 355 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, positionCaseInsensitive(toFixedString(toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), toUInt256(7)), 7), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 356 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 357 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 358 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 359 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 360 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 361 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 362 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 363 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 364 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 365 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 366 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 367 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 368 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 369 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 370 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 371 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 372 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 373 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 374 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 375 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 376 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 377 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 378 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 379 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 380 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 381 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 382 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 383 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 384 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 385 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 386 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 387 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 388 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 389 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 390 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 391 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 392 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 393 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 394 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 395 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 396 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 398 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 399 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 400 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 401 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 402 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 403 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 404 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 405 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 406 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 407 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 408 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 409 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 410 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 411 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 412 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 413 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 414 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 415 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 416 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 417 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 418 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 419 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 420 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 421 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 422 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 423 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 424 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 425 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), 23 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 426 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 427 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 428 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 429 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 430 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 431 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 432 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 433 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 434 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 435 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 436 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 437 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 438 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 439 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 440 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 441 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 442 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 443 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 444 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 445 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 446 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 447 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 448 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 449 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 450 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 451 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 452 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 453 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 454 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 455 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 456 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 457 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 458 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 459 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 460 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 461 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 463 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 464 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_2 Got boring AST Fuzzing step 465 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 466 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 467 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 468 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 469 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 470 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 471 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 472 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 473 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 474 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 475 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 476 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 477 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 478 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 479 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 480 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(t__fuzz_1, 23) FROM tab__fuzz_3 Error on processing query 'SELECT 'test_cluster_two_shards', 23, toNullable(t__fuzz_1, 23) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_1' in scope SELECT 'test_cluster_two_shards', 23, toNullable(t__fuzz_1, 23) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 481 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 482 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23) FROM tab__fuzz_0 Got boring AST Fuzzing step 483 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23) FROM tab__fuzz_0 Got boring AST Fuzzing step 484 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 486 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23) FROM tab__fuzz_2 Got boring AST Fuzzing step 487 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23) FROM tab__fuzz_2 Got boring AST Fuzzing step 488 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23) FROM tab__fuzz_2 PREWHERE number / 4 Error on processing query 'SELECT 'test_cluster_two_shards', 23, toNullable(23) FROM tab__fuzz_2 PREWHERE number / 4': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT 'test_cluster_two_shards', 23, toNullable(23) FROM tab__fuzz_2 PREWHERE number / 4. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 489 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23) FROM tab__fuzz_2 Got boring AST Fuzzing step 490 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 491 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 492 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_1 Got boring AST Fuzzing step 493 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_1 Got boring AST Fuzzing step 494 out of 1000 SELECT 'test_cluster_two_shards', toUInt256(23), 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 495 out of 1000 SELECT toLowCardinality(toNullable('test_cluster_two_shards')), 23, 23 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 496 out of 1000 SELECT toLowCardinality(toNullable('test_cluster_two_shards')), 23, 23 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 497 out of 1000 SELECT toLowCardinality(toNullable('test_cluster_two_shards')), 23, 23 FROM tab__fuzz_0 PREWHERE toNullable(toFixedString(materialize('test_cluster_two_shards'), 23)) Error on processing query 'SELECT toLowCardinality(toNullable('test_cluster_two_shards')), 23, 23 FROM tab__fuzz_0 PREWHERE toNullable(toFixedString(materialize('test_cluster_two_shards'), 23))': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: Nullable(FixedString(23)). In query SELECT toLowCardinality(toNullable('test_cluster_two_shards')), 23, 23 FROM tab__fuzz_0 PREWHERE toNullable(toFixedString(materialize('test_cluster_two_shards'), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 498 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 499 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 500 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 501 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 503 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 504 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 505 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 506 out of 1000 SELECT 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 507 out of 1000 SELECT toNullable('aaaaa\0x'), toLowCardinality(7), 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 508 out of 1000 SELECT toNullable('aaaaa\0x'), 7, 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 509 out of 1000 SELECT toNullable('aaaaa\0x'), 7, 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_1 Got boring AST Fuzzing step 510 out of 1000 SELECT toNullable('aaaaa\0x'), 7, 'test_cluster_two_shards', 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 511 out of 1000 SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 512 out of 1000 SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 513 out of 1000 SELECT 'aaaaa\0x', materialize(7), toFixedString('test_cluster_two_shards', 23), 23, 23 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 SELECT 'aaaaa\0x', 7, toFixedString('test_cluster_two_shards', 23), 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 515 out of 1000 SELECT 'aaaaa\0x', 7, toFixedString('test_cluster_two_shards', materialize(23)), 23, 23 FROM tab__fuzz_1 Error on processing query 'SELECT 'aaaaa\0x', 7, toFixedString('test_cluster_two_shards', materialize(23)), 23, 23 FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT 'aaaaa\0x', 7, toFixedString('test_cluster_two_shards', materialize(23)), 23, 23 FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 516 out of 1000 SELECT 'aaaaa\0x', 7, toFixedString('test_cluster_two_shards', 23), 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 517 out of 1000 SELECT 'aaaaa\0x', 7, toFixedString('test_cluster_two_shards', 23), 23, 23 FROM tab__fuzz_3 WHERE if((b != toNullable(100)) AND (c = toNullable(0)), 1, toLowCardinality(0)) Error on processing query 'SELECT 'aaaaa\0x', 7, toFixedString('test_cluster_two_shards', 23), 23, 23 FROM tab__fuzz_3 WHERE if((b != toNullable(100)) AND (c = toNullable(0)), 1, toLowCardinality(0))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT 'aaaaa\0x', 7, toFixedString('test_cluster_two_shards', 23), 23, 23 FROM tab__fuzz_3 WHERE if((b != toNullable(100)) AND (c = toNullable(0)), 1, toLowCardinality(0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 518 out of 1000 SELECT 'aaaaa\0x', 7, toFixedString('test_cluster_two_shards', 23), 23, 23 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 519 out of 1000 SELECT 'aaaaa\0x', 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 520 out of 1000 SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 522 out of 1000 SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 523 out of 1000 EXPLAIN PIPELINE SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 EXPLAIN PIPELINE SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1 Got boring AST Fuzzing step 525 out of 1000 EXPLAIN ESTIMATE SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 526 out of 1000 EXPLAIN ESTIMATE SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1 Got boring AST Fuzzing step 527 out of 1000 EXPLAIN PIPELINE SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 528 out of 1000 EXPLAIN PIPELINE SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1 Got boring AST Fuzzing step 529 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('toNullable'): toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 530 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('toNullable'): toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 531 out of 1000 EXPLAIN QUERY TREE SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 532 out of 1000 EXPLAIN QUERY TREE SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1 Got boring AST Fuzzing step 533 out of 1000 EXPLAIN QUERY TREE SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1 Got boring AST Fuzzing step 534 out of 1000 EXPLAIN QUERY TREE SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1 Got boring AST Fuzzing step 535 out of 1000 EXPLAIN QUERY TREE SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1 Got boring AST Fuzzing step 536 out of 1000 EXPLAIN QUERY TREE SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1 Got boring AST Fuzzing step 537 out of 1000 EXPLAIN SYNTAX SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 538 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('toNullable'): toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 539 out of 1000 EXPLAIN SYNTAX SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, materialize(23) FROM tab__fuzz_1 Got boring AST Fuzzing step 540 out of 1000 SELECT toNullable('aaaaa\0x'), 7, toFixedString('test_cluster_two_shards', 23), 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 541 out of 1000 SELECT 'aaaaa\0x', toLowCardinality(7), toFixedString('test_cluster_two_shards', 23), 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 542 out of 1000 SELECT 'aaaaa\0x', toLowCardinality(7), toFixedString('test_cluster_two_shards', 23), 23, 23 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 543 out of 1000 SELECT 'aaaaa\0x', toLowCardinality(7), toFixedString('test_cluster_two_shards', 23), 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 544 out of 1000 SELECT 'aaaaa\0x', toLowCardinality(7), 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 545 out of 1000 SELECT materialize('aaaaa\0x'), toLowCardinality(7), 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 546 out of 1000 SELECT materialize('aaaaa\0x'), toLowCardinality(7), 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 547 out of 1000 SELECT materialize('aaaaa\0x'), toLowCardinality(7), 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 548 out of 1000 SELECT materialize('aaaaa\0x'), toLowCardinality(7), 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 549 out of 1000 SELECT materialize('aaaaa\0x'), toLowCardinality(7), 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 550 out of 1000 SELECT materialize('aaaaa\0x'), toLowCardinality(7), 'test_cluster_two_shards', 23, toNullable(toUInt256(23)), 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 551 out of 1000 SELECT materialize('aaaaa\0x'), toLowCardinality(7), 'test_cluster_two_shards', 23, toUInt256(23), toLowCardinality(23) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 552 out of 1000 SELECT 'aaaaa\0x', toLowCardinality(7), 'test_cluster_two_shards', 23, 23, toLowCardinality(23) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 553 out of 1000 SELECT 'aaaaa\0x', toLowCardinality(7), 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 WHERE divide((x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4), number, toNullable(materialize(2))) % 2 Error on processing query 'SELECT 'aaaaa\0x', toLowCardinality(7), 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 WHERE divide((x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4), number, toNullable(materialize(2))) % 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT 'aaaaa\0x', toLowCardinality(7), 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 WHERE divide((x1 AND x2) AND (toLowCardinality(toNullable(0)) AND 1000 AND x3 AND x4), number, toNullable(materialize(2))) % 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 554 out of 1000 SELECT 'aaaaa\0x', toLowCardinality(toNullable(7)), 'test_cluster_two_shards', 23, 23, toLowCardinality(23) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 555 out of 1000 SELECT 'aaaaa\0x', toLowCardinality(toNullable(7)), 'test_cluster_two_shards', 23, 23, toLowCardinality(23) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 556 out of 1000 SELECT 'aaaaa\0x', toLowCardinality(toNullable(7)), 'test_cluster_two_shards', 23, 23, toLowCardinality(23) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 557 out of 1000 SELECT 'aaaaa\0x', toLowCardinality(7), 'test_cluster_two_shards', 23, 23, toLowCardinality(tab__fuzz_34, materialize(toNullable(23))) FROM tab__fuzz_3 Error on processing query 'SELECT 'aaaaa\0x', toLowCardinality(7), 'test_cluster_two_shards', 23, 23, toLowCardinality(tab__fuzz_34, materialize(toNullable(23))) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'tab__fuzz_34' in scope SELECT 'aaaaa\0x', toLowCardinality(7), 'test_cluster_two_shards', 23, 23, toLowCardinality(tab__fuzz_34, materialize(toNullable(23))) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 558 out of 1000 SELECT 'aaaaa\0x', toNullable(7), 'test_cluster_two_shards', 23, 23, toLowCardinality(toLowCardinality(23)) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 559 out of 1000 SELECT 'aaaaa\0x', 7, 'test_cluster_two_shards', 23, 23, toLowCardinality(23) FROM tab__fuzz_2 GROUP BY x6 OR x7 Error on processing query 'SELECT 'aaaaa\0x', 7, 'test_cluster_two_shards', 23, 23, toLowCardinality(23) FROM tab__fuzz_2 GROUP BY x6 OR x7': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x6' in scope SELECT 'aaaaa\0x', 7, 'test_cluster_two_shards', 23, 23, toLowCardinality(23) FROM tab__fuzz_2 GROUP BY x6 OR x7. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 560 out of 1000 SELECT 'aaaaa\0x', toNullable(7), 'test_cluster_two_shards', 23, 23, toLowCardinality(toLowCardinality(23)) FROM tab__fuzz_2 Got boring AST Fuzzing step 561 out of 1000 SELECT 'aaaaa\0x', toNullable(7), 'test_cluster_two_shards', 23, 23, toLowCardinality(toLowCardinality(23)) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 562 out of 1000 SELECT 'aaaaa\0x', 7, 'test_cluster_two_shards', 23, 23, toLowCardinality(toLowCardinality(23)) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 563 out of 1000 SELECT 'aaaaa\0x', 7, 'test_cluster_two_shards', 23, 23, toLowCardinality(23) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 564 out of 1000 SELECT 'aaaaa\0x', 7, 'test_cluster_two_shards', 23, 23, toLowCardinality(23) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 565 out of 1000 SELECT 'aaaaa\0x', 7, 'test_cluster_two_shards', 23, 23, toLowCardinality(23) FROM tab__fuzz_1 Got boring AST Fuzzing step 566 out of 1000 SELECT 'aaaaa\0x', 7, 'test_cluster_two_shards', 23, 23, toLowCardinality(23) FROM tab__fuzz_1 Got boring AST Fuzzing step 567 out of 1000 SELECT 'aaaaa\0x', 7, 'test_cluster_two_shards', 23, 23, toLowCardinality(23) FROM tab__fuzz_1 PREWHERE cluster(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23), 23, currentDatabase(), t) Error on processing query 'SELECT 'aaaaa\0x', 7, 'test_cluster_two_shards', 23, 23, toLowCardinality(23) FROM tab__fuzz_1 PREWHERE cluster(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT 'aaaaa\0x', 7, 'test_cluster_two_shards', 23, 23, toLowCardinality(23) FROM tab__fuzz_1 PREWHERE cluster(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23), 23, currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 568 out of 1000 EXPLAIN AST optimize = true SELECT 'aaaaa\0x', 7, 'test_cluster_two_shards', 23, 23, toLowCardinality(23) FROM tab__fuzz_1 Error on processing query 'EXPLAIN AST optimize = true SELECT 'aaaaa\0x', 7, 'test_cluster_two_shards', 23, 23, toLowCardinality(23) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "optimize" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495f93b 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 569 out of 1000 SELECT 'aaaaa\0x', 7, 'test_cluster_two_shards', 23, 23, toLowCardinality(23) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 570 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 571 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 572 out of 1000 SELECT 'test_cluster_two_shards', materialize(23), 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 573 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 574 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 575 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 576 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 12 Error on processing query 'EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 12': Received from localhost:9000. DB::Exception: Positional argument number 12 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 12. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 577 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 578 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 Got boring AST Fuzzing step 579 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 Got boring AST Fuzzing step 580 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, materialize(23) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 581 out of 1000 SELECT 'test_cluster_two_shards', 23, toLowCardinality(toNullable(23)), 23 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 582 out of 1000 SELECT 'test_cluster_two_shards', 23, toLowCardinality(number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8))), toNullable(23)), 23 FROM tab__fuzz_3 Error on processing query 'SELECT 'test_cluster_two_shards', 23, toLowCardinality(number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8))), toNullable(23)), 23 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT 'test_cluster_two_shards', 23, toLowCardinality(number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8))), toNullable(23)), 23 FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 583 out of 1000 SELECT 'test_cluster_two_shards', 23, toLowCardinality(toNullable(23)), 23 FROM tab__fuzz_2 Got boring AST Fuzzing step 584 out of 1000 SELECT 'test_cluster_two_shards', 23, toLowCardinality(toNullable(23)), 23 FROM tab__fuzz_2 Got boring AST Fuzzing step 585 out of 1000 SELECT 'test_cluster_two_shards', 23, toLowCardinality(toNullable(23)), 23 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 586 out of 1000 SELECT 'test_cluster_two_shards', 23, toLowCardinality(toNullable(23)), 23 FROM tab__fuzz_1 Got boring AST Fuzzing step 587 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), 23 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 588 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(materialize(23)), 23 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 589 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(materialize(23)), 23 FROM tab__fuzz_2 Got boring AST Fuzzing step 590 out of 1000 SELECT materialize('test_cluster_two_shards'), 23, materialize(23), 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 591 out of 1000 SELECT materialize('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 592 out of 1000 SELECT materialize('test_cluster_two_shards'), 23, toUInt128(23), 23 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 593 out of 1000 SELECT materialize('test_cluster_two_shards'), 23, toUInt128(23), 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 594 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 595 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 596 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY if(greaterOrEquals(a, toUInt256(toNullable(1)), 0) AND 1, 1, toUInt256(0)), c > toLowCardinality(220) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY if(greaterOrEquals(a, toUInt256(toNullable(1)), 0) AND 1, 1, toUInt256(0)), c > toLowCardinality(220)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY if(greaterOrEquals(a, toUInt256(toNullable(1)), 0) AND 1, 1, toUInt256(0)), c > toLowCardinality(220). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 597 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 598 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 599 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, toNullable(23) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 600 out of 1000 SELECT materialize('test_cluster_two_shards'), 23, 23, toNullable(23) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 601 out of 1000 EXPLAIN PIPELINE compact = true SELECT materialize('test_cluster_two_shards'), 23, 23, toNullable(23) FROM tab__fuzz_1 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT materialize('test_cluster_two_shards'), 23, 23, toNullable(23) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 602 out of 1000 SELECT materialize('test_cluster_two_shards'), 23, 23, toNullable(23) FROM tab__fuzz_1 Got boring AST Fuzzing step 603 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, toNullable(23) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 604 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 605 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 606 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, 23 FROM tab__fuzz_3 PREWHERE plus(n) Error on processing query 'SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, 23 FROM tab__fuzz_3 PREWHERE plus(n)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'n' in scope SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, 23 FROM tab__fuzz_3 PREWHERE plus(n). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 607 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(toLowCardinality(23)), 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 608 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(toLowCardinality(23)), 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 609 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 610 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 611 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 612 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 613 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, 23 FROM tab__fuzz_0 Got boring AST Fuzzing step 614 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, toLowCardinality(toNullable(23)) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 615 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, toLowCardinality(toNullable(23)) FROM tab__fuzz_2 Got boring AST Fuzzing step 616 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, toLowCardinality(toNullable(23)) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 617 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, toLowCardinality(toNullable(23)) FROM tab__fuzz_3 PREWHERE toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toNullable(12))) Error on processing query 'SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, toLowCardinality(toNullable(23)) FROM tab__fuzz_3 PREWHERE toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toNullable(12)))': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: LowCardinality(Nullable(FixedString(12))). In query SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, toLowCardinality(toNullable(23)) FROM tab__fuzz_3 PREWHERE toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toNullable(12))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 618 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, toNullable(23) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 619 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, toNullable(23) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 620 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, toNullable(23) FROM tab__fuzz_2 Got boring AST Fuzzing step 621 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 23, toNullable(23) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 622 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 23, toNullable(23) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 623 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, toNullable(23) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 624 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, toNullable(23) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 625 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, toNullable(23) FROM tab__fuzz_2 Got boring AST Fuzzing step 626 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, toNullable(23) FROM tab__fuzz_2 Got boring AST Fuzzing step 627 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, toNullable(23) FROM tab__fuzz_2 WHERE sum(if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), 1, 0)) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, toNullable(23) FROM tab__fuzz_2 WHERE sum(if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), 1, 0))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT 'test_cluster_two_shards', 23, 23, toNullable(23) FROM tab__fuzz_2 WHERE sum(if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), 1, 0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 628 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, toNullable(23) FROM tab__fuzz_2 Got boring AST Fuzzing step 629 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, toNullable(23) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 630 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 631 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 632 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 633 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 634 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 635 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 636 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 45 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 637 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 638 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 640 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 641 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 642 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 643 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 45 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 644 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 645 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 45 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 646 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 647 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 648 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 649 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 650 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 651 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 652 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 653 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 654 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 655 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 656 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 657 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 658 out of 1000 SELECT s IN ('a', 'b'), 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 Error on processing query 'SELECT s IN ('a', 'b'), 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT s IN ('a', 'b'), 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 659 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 Got boring AST Fuzzing step 660 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 661 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 Got boring AST Fuzzing step 663 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 664 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 665 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 666 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), 23, toLowCardinality(23) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 667 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), 23, toLowCardinality(23) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 668 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, toLowCardinality(23) FROM tab__fuzz_3 GROUP BY sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS, positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7)))), 7), pattern), sum(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)) IGNORE NULLS Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, toLowCardinality(23) FROM tab__fuzz_3 GROUP BY sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS, positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7)))), 7), pattern), sum(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)) IGNORE NULLS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT 'test_cluster_two_shards', 23, 23, toLowCardinality(23) FROM tab__fuzz_3 GROUP BY sum(if((b != 100) AND (c > 220), 1, toLowCardinality(0))) IGNORE NULLS, positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7)))), 7), pattern), sum(if(greaterOrEquals(a, toUInt256(toNullable(toNullable(1))), 0) AND 1, 1, 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 669 out of 1000 SELECT 'test_cluster_two_shards', toNullable(materialize(23)), 23, toLowCardinality(23) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 670 out of 1000 SELECT 'test_cluster_two_shards', toNullable(materialize(23)), 23, toLowCardinality(23) FROM tab__fuzz_1 Got boring AST Fuzzing step 671 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), 23, toLowCardinality(23) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 672 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 673 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 674 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, toUInt128(23) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 675 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, toUInt128(23) FROM tab__fuzz_3 Got boring AST Fuzzing step 676 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, toUInt128(materialize(23)) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, toUInt128(23) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 678 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, toUInt128(23) FROM tab__fuzz_3 Got boring AST Fuzzing step 679 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 23, toUInt128(23) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 680 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 23, toUInt128(23) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 681 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 23, toUInt128(23) FROM tab__fuzz_1 Got boring AST Fuzzing step 682 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, toUInt128(23) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 683 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, toUInt128(23) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 684 out of 1000 SELECT 'test_cluster_two_shards', 23, toLowCardinality(23), toUInt128(23) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 685 out of 1000 SELECT 'test_cluster_two_shards', 23, toLowCardinality(23), 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 686 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 688 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 689 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 690 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 691 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 692 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 693 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 694 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 695 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 696 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 697 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 698 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 699 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 700 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 701 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 702 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 703 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 704 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 705 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 706 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 707 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 708 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 709 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 710 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 46 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 711 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 712 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 713 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 46 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 714 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 715 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 716 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 717 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 718 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 719 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 720 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Got boring AST Fuzzing step 721 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 722 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 723 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 724 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 725 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 726 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 727 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 728 out of 1000 SELECT sum(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12), 12, if((b != 100) AND (c = 0), 1, 0)), 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Error on processing query 'SELECT sum(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12), 12, if((b != 100) AND (c = 0), 1, 0)), 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT sum(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12), 12, if((b != 100) AND (c = 0), 1, 0)), 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 729 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7)': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 730 out of 1000 SELECT if((a >= 0) AND (b != 100) AND (c > toUInt256(220)), 1, 0), 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Error on processing query 'SELECT if((a >= 0) AND (b != 100) AND (c > toUInt256(220)), 1, 0), 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT if((a >= 0) AND (b != 100) AND (c > toUInt256(220)), 1, 0), 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 731 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 WITH TOTALS Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 732 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 733 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 734 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 735 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 736 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 737 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 738 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 739 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 740 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 742 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 743 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 744 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 745 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 746 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 747 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 748 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 749 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 750 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 751 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 752 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 753 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 754 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 755 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 756 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 757 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 758 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 759 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 760 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 761 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 46 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 762 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 763 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 764 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 765 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 766 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 767 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 768 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 769 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 770 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 771 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 772 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 773 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 774 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 775 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 776 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 777 out of 1000 SELECT 'test_cluster_two_shards', 23, materialize(23), 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) Error on processing query 'SELECT 'test_cluster_two_shards', 23, materialize(23), 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7)': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, materialize(23), 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 778 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 779 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 780 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 781 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 782 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 783 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 784 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 785 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 786 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 787 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 788 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 789 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 790 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 791 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 792 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 793 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 794 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 795 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 796 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 797 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', 7, 7 Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', 7, 7': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', 7, 7. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 798 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 799 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 800 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 801 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 802 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 803 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 46 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 804 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 805 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 806 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 807 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 808 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 809 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7)': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 810 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 WITH TOTALS Error on processing query 'EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 10. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 11. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 14. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 19. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 20. ? @ 0x00007fa035818ac3 21. ? @ 0x00007fa0358aa850 Fuzzing step 811 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 812 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, 7 Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, 7': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, 7. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 813 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7)': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 814 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7)': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 815 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY toFixedString('aaaaa\0x', 7), 7 Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY toFixedString('aaaaa\0x', 7), 7': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY toFixedString('aaaaa\0x', 7), 7. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 816 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7)': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 817 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Got boring AST Fuzzing step 818 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7)': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 819 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true, compact = true SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 WITH TOTALS Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true, compact = true SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 820 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY toFixedString('aaaaa\0x', 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 821 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 GROUP BY toFixedString(toNullable('aaaaa\0x'), 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 822 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY toFixedString(toNullable('aaaaa\0x'), 7), toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 823 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY toFixedString(toNullable('aaaaa\0x'), 7), toLowCardinality(7) Got boring AST Fuzzing step 824 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY toFixedString(toNullable('aaaaa\0x'), 7), toLowCardinality(7) Got boring AST Fuzzing step 825 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString(toNullable('aaaaa\0x'), 7), toLowCardinality(toLowCardinality(7)) Query succeeded, using this AST as a start Fuzzing step 826 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, 23 FROM tab__fuzz_3 GROUP BY toFixedString(toNullable('aaaaa\0x'), 7), toLowCardinality(toLowCardinality(7)) Query succeeded, using this AST as a start Fuzzing step 827 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, 23 FROM tab__fuzz_0 GROUP BY toFixedString(toNullable('aaaaa\0x'), 7), toLowCardinality(toLowCardinality(7)) Query succeeded, using this AST as a start Fuzzing step 828 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, 23 FROM tab__fuzz_0 GROUP BY toFixedString(toNullable('aaaaa\0x'), 7), toLowCardinality(toLowCardinality(7)) Got boring AST Fuzzing step 829 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, 23 FROM tab__fuzz_0 GROUP BY toFixedString(toNullable('aaaaa\0x'), 7), toLowCardinality(toLowCardinality(7)) Got boring AST Fuzzing step 830 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY toFixedString(toNullable('aaaaa\0x'), 7), toLowCardinality(toLowCardinality(7)) Query succeeded, using this AST as a start Fuzzing step 831 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY toFixedString(toNullable('aaaaa\0x'), 7), toLowCardinality(toLowCardinality(7)) Got boring AST Fuzzing step 832 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString(toNullable(position(toFixedString('aaaaa\0x', toUInt256(7)), pattern), 'aaaaa\0x'), 7), toLowCardinality(toLowCardinality(7)) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString(toNullable(position(toFixedString('aaaaa\0x', toUInt256(7)), pattern), 'aaaaa\0x'), 7), toLowCardinality(toLowCardinality(7))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toFixedString(toNullable(position(toFixedString('aaaaa\0x', toUInt256(7)), pattern), 'aaaaa\0x'), 7), toLowCardinality(toLowCardinality(7)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 833 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 GROUP BY toFixedString(toNullable('aaaaa\0x'), materialize(7)), toLowCardinality(toLowCardinality(7)) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 GROUP BY toFixedString(toNullable('aaaaa\0x'), materialize(7)), toLowCardinality(toLowCardinality(7))': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 GROUP BY toFixedString(toNullable('aaaaa\0x'), materialize(7)), toLowCardinality(toLowCardinality(7)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 834 out of 1000 SELECT 'test_cluster_two_shards', 23, toLowCardinality(23), 23 FROM tab__fuzz_0 GROUP BY toFixedString(toNullable('aaaaa\0x'), toLowCardinality(toUInt256(7))), toLowCardinality(toLowCardinality(7)) Query succeeded, using this AST as a start Fuzzing step 835 out of 1000 SELECT 'test_cluster_two_shards', 23, toLowCardinality(23), 23 FROM tab__fuzz_1 GROUP BY toFixedString(toNullable('aaaaa\0x'), toLowCardinality(toUInt256(7))), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 836 out of 1000 SELECT 'test_cluster_two_shards', 23, toLowCardinality(23), 23 FROM tab__fuzz_1 GROUP BY toFixedString(toNullable(test_alias__fuzz_28, 'aaaaa\0x'), toLowCardinality(toUInt256(7))), toLowCardinality(7) WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, toLowCardinality(23), 23 FROM tab__fuzz_1 GROUP BY toFixedString(toNullable(test_alias__fuzz_28, 'aaaaa\0x'), toLowCardinality(toUInt256(7))), toLowCardinality(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_28' in scope SELECT 'test_cluster_two_shards', 23, toLowCardinality(23), 23 FROM tab__fuzz_1 GROUP BY toFixedString(toNullable(test_alias__fuzz_28, 'aaaaa\0x'), toLowCardinality(toUInt256(7))), toLowCardinality(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 837 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true SELECT 'test_cluster_two_shards', 23, toLowCardinality(23), 23 FROM tab__fuzz_1 GROUP BY toFixedString(toNullable('aaaaa\0x'), toLowCardinality(toUInt256(7))), toLowCardinality(7) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true SELECT 'test_cluster_two_shards', 23, toLowCardinality(23), 23 FROM tab__fuzz_1 GROUP BY toFixedString(toNullable('aaaaa\0x'), toLowCardinality(toUInt256(7))), toLowCardinality(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 838 out of 1000 SELECT 'test_cluster_two_shards', 23, toLowCardinality(23), 23 FROM tab__fuzz_1 GROUP BY toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7)), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 839 out of 1000 SELECT 'test_cluster_two_shards', 23, toLowCardinality(23), 23 FROM tab__fuzz_1 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(7), 7 WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, toLowCardinality(23), 23 FROM tab__fuzz_1 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(7), 7 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, toLowCardinality(23), 23 FROM tab__fuzz_1 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(7), 7 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 840 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, toLowCardinality(23), 23 FROM tab__fuzz_1 GROUP BY toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7)), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 841 out of 1000 SELECT toNullable(positionCaseInsensitive(toFixedString('aaaaa\0x', 'test_cluster_two_shards', toNullable(23), 7), pattern), 'test_cluster_two_shards'), 23, toLowCardinality(23), 23 FROM tab__fuzz_1 GROUP BY toFixedString(toNullable('aaaaa\0x'), toLowCardinality(version_pair[1], 7)), toLowCardinality(7) WITH ROLLUP Error on processing query 'SELECT toNullable(positionCaseInsensitive(toFixedString('aaaaa\0x', 'test_cluster_two_shards', toNullable(23), 7), pattern), 'test_cluster_two_shards'), 23, toLowCardinality(23), 23 FROM tab__fuzz_1 GROUP BY toFixedString(toNullable('aaaaa\0x'), toLowCardinality(version_pair[1], 7)), toLowCardinality(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 4, should be 2: In scope SELECT toNullable(positionCaseInsensitive(toFixedString('aaaaa\0x', 'test_cluster_two_shards', toNullable(23), 7), pattern), 'test_cluster_two_shards'), 23, toLowCardinality(23), 23 FROM tab__fuzz_1 GROUP BY toFixedString(toNullable('aaaaa\0x'), toLowCardinality(version_pair[1], 7)), toLowCardinality(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 842 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, toLowCardinality(23), 23 FROM tab__fuzz_1 GROUP BY toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7)), toLowCardinality(7) WITH ROLLUP Got boring AST Fuzzing step 843 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, toLowCardinality(23), 23 FROM tab__fuzz_1 GROUP BY toFixedString(toNullable(toLowCardinality('aaaaa\0x')), toLowCardinality(7)), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 844 out of 1000 EXPLAIN PIPELINE header = true SELECT 'test_cluster_two_shards', 23, toLowCardinality(23), 23 FROM tab__fuzz_3 GROUP BY toFixedString(toNullable(materialize(100), toLowCardinality('aaaaa\0x')), toLowCardinality(7)), toLowCardinality(7) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE header = true SELECT 'test_cluster_two_shards', 23, toLowCardinality(23), 23 FROM tab__fuzz_3 GROUP BY toFixedString(toNullable(materialize(100), toLowCardinality('aaaaa\0x')), toLowCardinality(7)), toLowCardinality(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 845 out of 1000 SELECT 'test_cluster_two_shards', 23, toLowCardinality(23), 23 FROM tab__fuzz_0 GROUP BY toNullable(toLowCardinality('aaaaa\0x')), toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 846 out of 1000 SELECT 'test_cluster_two_shards', 23, toLowCardinality(23), 23 FROM tab__fuzz_2 GROUP BY toNullable(toLowCardinality('aaaaa\0x')), toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 847 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable(toLowCardinality('aaaaa\0x')), toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 848 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY toLowCardinality('aaaaa\0x'), toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 849 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY toLowCardinality('aaaaa\0x'), toLowCardinality(7), 7 WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY toLowCardinality('aaaaa\0x'), toLowCardinality(7), 7 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY toLowCardinality('aaaaa\0x'), toLowCardinality(7), 7 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 850 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 851 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(cluster('test_cluster_two_shards', currentDatabase(), t), 7), toLowCardinality(7) WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(cluster('test_cluster_two_shards', currentDatabase(), t), 7), toLowCardinality(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(cluster('test_cluster_two_shards', currentDatabase(), t), 7), toLowCardinality(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 852 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, toLowCardinality(toNullable(23)) FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, toLowCardinality(toNullable(23)) FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, toLowCardinality(toNullable(23)) FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 853 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 854 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, materialize(23) FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, materialize(23) FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, materialize(23) FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 855 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(toUInt256(7)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 856 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 857 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Got boring AST Fuzzing step 858 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 859 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 860 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 861 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Got boring AST Fuzzing step 862 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 863 out of 1000 SELECT 'test_cluster_two_shards', 23, toLowCardinality(toNullable(23)), 23 FROM tab__fuzz_0 PREWHERE sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), 0)) WITH TOTALS Error on processing query 'SELECT 'test_cluster_two_shards', 23, toLowCardinality(toNullable(23)), 23 FROM tab__fuzz_0 PREWHERE sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), 0)) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 'test_cluster_two_shards', 23, toLowCardinality(toNullable(23)), 23 FROM tab__fuzz_0 PREWHERE sum(if((a >= 0) AND (b != 100) AND (c = 0), materialize(1), 0)) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 864 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP WITH CUBE Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 168 ('CUBE'): CUBE. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 865 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 866 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 867 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 868 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 869 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(b != toUInt256(toFixedString('2022-01-01', 10), 100), 7), toLowCardinality(7) WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(b != toUInt256(toFixedString('2022-01-01', 10), 100), 7), toLowCardinality(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(b != toUInt256(toFixedString('2022-01-01', 10), 100), 7), toLowCardinality(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 870 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 871 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 872 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 873 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 PREWHERE number % 2 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 PREWHERE number % 2 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 PREWHERE number % 2 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 874 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Got boring AST Fuzzing step 875 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 876 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Got boring AST Fuzzing step 877 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Got boring AST Fuzzing step 878 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(materialize(toNullable(materialize(toUInt256(1)))), 7) WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(materialize(toNullable(materialize(toUInt256(1)))), 7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(materialize(toNullable(materialize(toUInt256(1)))), 7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 879 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Got boring AST Fuzzing step 880 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 881 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 882 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Got boring AST Fuzzing step 883 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Got boring AST Fuzzing step 884 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, toNullable(23), 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, toNullable(23), 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 885 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Got boring AST Fuzzing step 886 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), 23, toNullable(23), 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(toNullable(7)), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 887 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), 23, toNullable(23), 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(toNullable(7)), toLowCardinality(7) WITH ROLLUP Got boring AST Fuzzing step 888 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), 23, toNullable(23), 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 889 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), 23, toNullable(23), 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 890 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', 23, toNullable(23), 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 891 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 892 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), 23 FROM tab__fuzz_2 GROUP BY toLowCardinality('aaaaa\0x'), toLowCardinality(7), toLowCardinality(materialize(7)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 893 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 894 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 895 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 896 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), materialize(toNullable(23)) FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 897 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), materialize(toNullable(23)) FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 898 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), toNullable(23) FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(7)), 7), toLowCardinality(7) WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, toNullable(23), toNullable(23) FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(7)), 7), toLowCardinality(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 'test_cluster_two_shards', 23, toNullable(23), toNullable(23) FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(7)), 7), toLowCardinality(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 899 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), materialize(toNullable(23)) FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 900 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), materialize(toNullable(23)) FROM tab__fuzz_2 WITH TOTALS Error on processing query 'SELECT 'test_cluster_two_shards', 23, toNullable(23), materialize(toNullable(23)) FROM tab__fuzz_2 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 901 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), materialize(toNullable(23)) FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 902 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, toNullable(23) FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, toNullable(23) FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, toNullable(23) FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 903 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), materialize(toNullable(23)) FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 904 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), materialize(toNullable(23)) FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 905 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), materialize(23) FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 906 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 907 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Got boring AST Fuzzing step 908 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Got boring AST Fuzzing step 909 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(23), 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 910 out of 1000 SELECT 'test_cluster_two_shards', materialize(toNullable(23)), toNullable(23), 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 911 out of 1000 SELECT 'test_cluster_two_shards', materialize(toNullable(23)), toNullable(23), 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Got boring AST Fuzzing step 912 out of 1000 SELECT 'test_cluster_two_shards', materialize(toNullable(23)), 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', materialize(toNullable(23)), 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', materialize(toNullable(23)), 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 913 out of 1000 SELECT 'test_cluster_two_shards', materialize(23), 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 914 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), materialize(23), 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 915 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), materialize(23), 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP Error on processing query 'SELECT toLowCardinality('test_cluster_two_shards'), materialize(23), 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT toLowCardinality('test_cluster_two_shards'), materialize(23), 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 916 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP Error on processing query 'SELECT toLowCardinality('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT toLowCardinality('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 917 out of 1000 SELECT 'test_cluster_two_shards', materialize(23), 23, 23 FROM tab__fuzz_3 WHERE sum(if(greaterOrEquals(a, toNullable(toNullable(1)), 0) AND 1, 1, 0)) IGNORE NULLS GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', materialize(23), 23, 23 FROM tab__fuzz_3 WHERE sum(if(greaterOrEquals(a, toNullable(toNullable(1)), 0) AND 1, 1, 0)) IGNORE NULLS GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 'test_cluster_two_shards', materialize(23), 23, 23 FROM tab__fuzz_3 WHERE sum(if(greaterOrEquals(a, toNullable(toNullable(1)), 0) AND 1, 1, 0)) IGNORE NULLS GROUP BY 'aaaaa\0x', 7, toLowCardinality(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 918 out of 1000 SELECT 'test_cluster_two_shards', materialize(23), 23, 23 FROM tab__fuzz_2 GROUP BY toLowCardinality('aaaaa\0x'), toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 919 out of 1000 SELECT 'test_cluster_two_shards', materialize(23), 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 920 out of 1000 SELECT 'test_cluster_two_shards', materialize(23), 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Got boring AST Fuzzing step 921 out of 1000 SELECT 'test_cluster_two_shards', materialize(toLowCardinality(23)), 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 922 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', toLowCardinality(23), 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 923 out of 1000 SELECT 'test_cluster_two_shards', materialize(23), 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 924 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 925 out of 1000 EXPLAIN PIPELINE header = true SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE header = true SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 926 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 927 out of 1000 SELECT 'test_cluster_two_shards', 23, toUInt256(23), 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 928 out of 1000 SELECT 'test_cluster_two_shards', 23, toUInt256(23), 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 929 out of 1000 SELECT 'test_cluster_two_shards', 23, toUInt256(23), 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(toLowCardinality(7)), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 930 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, toUInt256(23), 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(toLowCardinality(7)), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 931 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, toUInt256(23), 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(toLowCardinality(7)), toLowCardinality(7) WITH ROLLUP WITH CUBE Error on processing query 'SELECT toNullable('test_cluster_two_shards'), 23, toUInt256(23), 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(toLowCardinality(7)), toLowCardinality(7) WITH ROLLUP WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 236 ('CUBE'): CUBE. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 932 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, toUInt256(23), 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(toLowCardinality(7)), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 933 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, toUInt256(23), 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(toLowCardinality(7)), toLowCardinality(materialize(7)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 934 out of 1000 SELECT toNullable(toLowCardinality('test_cluster_two_shards')), 23, toUInt256(23), 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(toLowCardinality(7)), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 935 out of 1000 SELECT toNullable(toLowCardinality('test_cluster_two_shards')), 23, toUInt256(23), 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 936 out of 1000 SELECT toNullable(toLowCardinality('test_cluster_two_shards')), 23, toUInt256(23), 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(materialize(7)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 937 out of 1000 SELECT toNullable(toLowCardinality('test_cluster_two_shards')), 23, toUInt256(23), 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(materialize(7)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 938 out of 1000 SELECT toNullable(toLowCardinality('test_cluster_two_shards')), 23, toUInt256(23), 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, toLowCardinality(materialize(7)) WITH ROLLUP Error on processing query 'SELECT toNullable(toLowCardinality('test_cluster_two_shards')), 23, toUInt256(23), 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, toLowCardinality(materialize(7)) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT toNullable(toLowCardinality('test_cluster_two_shards')), 23, toUInt256(23), 23 FROM tab__fuzz_3 GROUP BY 'aaaaa\0x', 7, toLowCardinality(materialize(7)) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 939 out of 1000 SELECT toNullable(toUInt256(toNullable(toNullable(1))), toLowCardinality('test_cluster_two_shards')), 23, toUInt256(23), 23 FROM tab__fuzz_2 GROUP BY toLowCardinality('aaaaa\0x'), toLowCardinality(7), toLowCardinality(7) WITH ROLLUP Error on processing query 'SELECT toNullable(toUInt256(toNullable(toNullable(1))), toLowCardinality('test_cluster_two_shards')), 23, toUInt256(23), 23 FROM tab__fuzz_2 GROUP BY toLowCardinality('aaaaa\0x'), toLowCardinality(7), toLowCardinality(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toNullable(toUInt256(toNullable(toNullable(1))), toLowCardinality('test_cluster_two_shards')), 23, toUInt256(23), 23 FROM tab__fuzz_2 GROUP BY toLowCardinality('aaaaa\0x'), toLowCardinality(7), toLowCardinality(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 940 out of 1000 SELECT toNullable(toLowCardinality('test_cluster_two_shards')), 23, toUInt256(23), 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(materialize(7)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 941 out of 1000 EXPLAIN PIPELINE SELECT toNullable(toLowCardinality('test_cluster_two_shards')), 23, toUInt256(32, 23), 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), materialize(7) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT toNullable(toLowCardinality('test_cluster_two_shards')), 23, toUInt256(32, 23), 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), materialize(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt256'. Expected 1 argument, got 2 arguments: In scope SELECT toNullable(toLowCardinality('test_cluster_two_shards')), 23, toUInt256(32, 23), 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), materialize(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000089618ce 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000893c835 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 942 out of 1000 SELECT toNullable(toLowCardinality(8), toLowCardinality('test_cluster_two_shards')), 23, toUInt256(23), 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(if((b != 100) AND (c = 0), 1, toNullable(0)), materialize(7)) WITH ROLLUP Error on processing query 'SELECT toNullable(toLowCardinality(8), toLowCardinality('test_cluster_two_shards')), 23, toUInt256(23), 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(if((b != 100) AND (c = 0), 1, toNullable(0)), materialize(7)) WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toNullable(toLowCardinality(8), toLowCardinality('test_cluster_two_shards')), 23, toUInt256(23), 23 FROM tab__fuzz_0 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(if((b != 100) AND (c = 0), 1, toNullable(0)), materialize(7)) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 943 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(materialize(7)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 944 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), toLowCardinality(materialize(7)) WITH ROLLUP Got boring AST Fuzzing step 945 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 946 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_3 WITH TOTALS Error on processing query 'SELECT toNullable('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_3 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 947 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_1 WHERE countSubstringsCaseInsensitive(pattern) GROUP BY 'aaaaa\0x', toLowCardinality(7), materialize(7) WITH ROLLUP Error on processing query 'SELECT toNullable('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_1 WHERE countSubstringsCaseInsensitive(pattern) GROUP BY 'aaaaa\0x', toLowCardinality(7), materialize(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT toNullable('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_1 WHERE countSubstringsCaseInsensitive(pattern) GROUP BY 'aaaaa\0x', toLowCardinality(7), materialize(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd64c8e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 948 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP Error on processing query 'SELECT toNullable('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT toNullable('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 949 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_1 PREWHERE version_pair[materialize(toNullable(1))] GROUP BY 'aaaaa\0x', toLowCardinality(7), materialize(7) WITH ROLLUP Error on processing query 'SELECT toNullable('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_1 PREWHERE version_pair[materialize(toNullable(1))] GROUP BY 'aaaaa\0x', toLowCardinality(7), materialize(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT toNullable('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_1 PREWHERE version_pair[materialize(toNullable(1))] GROUP BY 'aaaaa\0x', toLowCardinality(7), materialize(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 950 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), 7 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 951 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_2 GROUP BY 'aaaaa\0x', toLowCardinality(7), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 952 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', 7, materialize(7) WITH ROLLUP Error on processing query 'SELECT toNullable('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', 7, materialize(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT toNullable('test_cluster_two_shards'), 23, 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', 7, materialize(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 953 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toLowCardinality(7), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 954 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY GROUPING SETS (('aaaaa\0x', toLowCardinality(7), materialize(7))) WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY GROUPING SETS (('aaaaa\0x', toLowCardinality(7), materialize(7))) WITH ROLLUP': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343d54d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 955 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY materialize(toLowCardinality('aaaaa\0x')), toLowCardinality(toLowCardinality(7)), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 956 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY materialize(toLowCardinality('aaaaa\0x')), toLowCardinality(7), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY materialize(toLowCardinality('aaaaa\0x')), toLowCardinality(7), materialize(7) WITH ROLLUP Got boring AST Fuzzing step 958 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY toLowCardinality('aaaaa\0x'), toLowCardinality(7), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 959 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 PREWHERE if((a >= 0) AND notEquals(materialize(100)) AND (c > 220), 1, 0) GROUP BY toLowCardinality('aaaaa\0x'), toLowCardinality(7), materialize(7) WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 PREWHERE if((a >= 0) AND notEquals(materialize(100)) AND (c > 220), 1, 0) GROUP BY toLowCardinality('aaaaa\0x'), toLowCardinality(7), materialize(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 PREWHERE if((a >= 0) AND notEquals(materialize(100)) AND (c > 220), 1, 0) GROUP BY toLowCardinality('aaaaa\0x'), toLowCardinality(7), materialize(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 960 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY toLowCardinality('aaaaa\0x'), toLowCardinality(7), materialize(7) WITH ROLLUP Got boring AST Fuzzing step 961 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY toLowCardinality('aaaaa\0x'), toLowCardinality(7), materialize(7) WITH ROLLUP Got boring AST Fuzzing step 962 out of 1000 SELECT 'test_cluster_two_shards', 23, toUInt256(23), 23 FROM tab__fuzz_0 GROUP BY toLowCardinality('aaaaa\0x'), 7, materialize(7) WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, toUInt256(23), 23 FROM tab__fuzz_0 GROUP BY toLowCardinality('aaaaa\0x'), 7, materialize(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, toUInt256(23), 23 FROM tab__fuzz_0 GROUP BY toLowCardinality('aaaaa\0x'), 7, materialize(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 963 out of 1000 SELECT 'test_cluster_two_shards', 23, toUInt128(23), 23 FROM tab__fuzz_2 GROUP BY toLowCardinality('aaaaa\0x'), 7, materialize(7) WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, toUInt128(23), 23 FROM tab__fuzz_2 GROUP BY toLowCardinality('aaaaa\0x'), 7, materialize(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, toUInt128(23), 23 FROM tab__fuzz_2 GROUP BY toLowCardinality('aaaaa\0x'), 7, materialize(7) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 964 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toLowCardinality('aaaaa\0x'), toLowCardinality(7), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 965 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY toLowCardinality('aaaaa\0x'), toLowCardinality(7), 7 WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY toLowCardinality('aaaaa\0x'), toLowCardinality(7), 7 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY toLowCardinality('aaaaa\0x'), toLowCardinality(7), 7 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 966 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY toLowCardinality(materialize('aaaaa\0x')), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 967 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 WITH TOTALS Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 968 out of 1000 SELECT 'test_cluster_two_shards', 23, toUInt256(23), 23 FROM tab__fuzz_2 GROUP BY toLowCardinality(materialize('aaaaa\0x')), toLowCardinality(toNullable(7)), 7 WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, toUInt256(23), 23 FROM tab__fuzz_2 GROUP BY toLowCardinality(materialize('aaaaa\0x')), toLowCardinality(toNullable(7)), 7 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, toUInt256(23), 23 FROM tab__fuzz_2 GROUP BY toLowCardinality(materialize('aaaaa\0x')), toLowCardinality(toNullable(7)), 7 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 969 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toLowCardinality(materialize('aaaaa\0x')), toLowCardinality(toNullable(toUInt256(7))), 7 WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toLowCardinality(materialize('aaaaa\0x')), toLowCardinality(toNullable(toUInt256(7))), 7 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_1 GROUP BY toLowCardinality(materialize('aaaaa\0x')), toLowCardinality(toNullable(toUInt256(7))), 7 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 970 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY toLowCardinality(materialize(toNullable('aaaaa\0x'))), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 971 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY toLowCardinality(materialize(toNullable('aaaaa\0x'))), toNullable(7), 7 WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY toLowCardinality(materialize(toNullable('aaaaa\0x'))), toNullable(7), 7 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY toLowCardinality(materialize(toNullable('aaaaa\0x'))), toNullable(7), 7 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 972 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY materialize(toNullable('aaaaa\0x')), toNullable(7), 7 WITH ROLLUP Error on processing query 'SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY materialize(toNullable('aaaaa\0x')), toNullable(7), 7 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 4]. In scope SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY materialize(toNullable('aaaaa\0x')), toNullable(7), 7 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 973 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_0 GROUP BY toLowCardinality(toNullable('aaaaa\0x')), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 974 out of 1000 SELECT 'test_cluster_two_shards', 23, 23, 23 FROM tab__fuzz_2 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 975 out of 1000 EXPLAIN AST SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 976 out of 1000 EXPLAIN AST SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Got boring AST Fuzzing step 977 out of 1000 EXPLAIN AST SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Got boring AST Fuzzing step 978 out of 1000 EXPLAIN PIPELINE SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 979 out of 1000 EXPLAIN PIPELINE SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Got boring AST Fuzzing step 980 out of 1000 EXPLAIN AST SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 981 out of 1000 EXPLAIN SYNTAX SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 982 out of 1000 EXPLAIN SYNTAX SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Got boring AST Fuzzing step 983 out of 1000 EXPLAIN ESTIMATE SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 984 out of 1000 EXPLAIN ESTIMATE SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Got boring AST Fuzzing step 985 out of 1000 EXPLAIN ESTIMATE SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Got boring AST Fuzzing step 986 out of 1000 EXPLAIN ESTIMATE SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Got boring AST Fuzzing step 987 out of 1000 EXPLAIN ESTIMATE SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Got boring AST Fuzzing step 988 out of 1000 EXPLAIN ESTIMATE SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Got boring AST Fuzzing step 989 out of 1000 EXPLAIN ESTIMATE SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Got boring AST Fuzzing step 990 out of 1000 EXPLAIN AST SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 991 out of 1000 EXPLAIN AST SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Got boring AST Fuzzing step 992 out of 1000 EXPLAIN SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 993 out of 1000 EXPLAIN PIPELINE SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 994 out of 1000 EXPLAIN PIPELINE SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Got boring AST Fuzzing step 995 out of 1000 EXPLAIN PIPELINE SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Got boring AST Fuzzing step 996 out of 1000 EXPLAIN SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 997 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 51 ('materialize'): materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 998 out of 1000 EXPLAIN PIPELINE SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 999 out of 1000 EXPLAIN PIPELINE SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 23, 23 FROM tab__fuzz_0 GROUP BY toNullable('aaaaa\0x'), toLowCardinality(toNullable(7)), materialize(7) WITH ROLLUP Got boring AST Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab WHERE id = 2 Got boring AST Fuzzing step 2 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab WHERE id = 2 Got boring AST Fuzzing step 3 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_1 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 4 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 5 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_2 WHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_2 WHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('positionCaseInsensitiveUTF8'): positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_2 WHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 6 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_1 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 7 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 8 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_1 WHERE id = 2 Got boring AST Fuzzing step 9 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_1 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 10 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_1 WHERE id = 2 Got boring AST Fuzzing step 11 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 12 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 13 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_1 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 14 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 15 out of 1000 SELECT positionCaseInsensitiveUTF8(toNullable('aaaaa\0x'), toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 2 Error on processing query 'SELECT positionCaseInsensitiveUTF8(toNullable('aaaaa\0x'), toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type FixedString(12) of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(toNullable('aaaaa\0x'), toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 16 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 17 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 18 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 19 out of 1000 SELECT positionCaseInsensitiveUTF8(toNullable('aaaaa\0x'), pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 20 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 21 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 22 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 23 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE equals(id) Error on processing query 'SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE equals(id)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE equals(id). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 24 out of 1000 SELECT positionCaseInsensitiveUTF8(8, 'aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT positionCaseInsensitiveUTF8(8, 'aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(8, 'aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9827e7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 25 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 26 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 27 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 28 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 29 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 30 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 31 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 32 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 33 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 34 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 35 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 36 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE number / 2 Error on processing query 'SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE number / 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE number / 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 37 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 38 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 39 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 40 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 41 out of 1000 SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 42 out of 1000 SELECT 'aaaaa\0x', positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(toNullable(1)) Query succeeded, using this AST as a start Fuzzing step 43 out of 1000 SELECT 'aaaaa\0x', positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(toNullable(1)) Got boring AST Fuzzing step 44 out of 1000 SELECT 'aaaaa\0x', positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE materialize(toNullable(1)) Error on processing query 'SELECT 'aaaaa\0x', positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE materialize(toNullable(1))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaaa\0x', positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE materialize(toNullable(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 45 out of 1000 SELECT 'aaaaa\0x', positionCaseInsensitiveUTF8('aaaaa\0x', pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(toNullable(1)) Got boring AST Fuzzing step 46 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(toNullable(1)) Query succeeded, using this AST as a start Fuzzing step 47 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(toNullable(1)) Got boring AST Fuzzing step 48 out of 1000 SELECT materialize('aaaaa\0x') FROM tab__fuzz_3 PREWHERE id = 2 WHERE materialize(toNullable(1)) Query succeeded, using this AST as a start Fuzzing step 49 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), toNullable(1)) Error on processing query 'SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), toNullable(1))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), toNullable(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 50 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 51 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 52 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 53 out of 1000 EXPLAIN AST graph = true, optimize = true SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Error on processing query 'EXPLAIN AST graph = true, optimize = true SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "graph" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495f93b 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 54 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 55 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 56 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 57 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 58 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 59 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 60 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 61 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 62 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 63 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 64 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 65 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 66 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 68 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 69 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 70 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 71 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 (''aaaaa\0x''): 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 72 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 73 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 74 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 75 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 76 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 77 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 78 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 79 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 80 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 81 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 83 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 84 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 85 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 86 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 87 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 88 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE equals(2) WHERE materialize(1) Error on processing query 'SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE equals(2) WHERE materialize(1)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE equals(2) WHERE materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 89 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 90 out of 1000 SELECT x6 OR x7, 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = 2 WHERE materialize(1) Error on processing query 'SELECT x6 OR x7, 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = 2 WHERE materialize(1)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x6' in scope SELECT x6 OR x7, 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = 2 WHERE materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 91 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 92 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 93 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = toLowCardinality(2) WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 94 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toLowCardinality(2) WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 96 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 97 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 98 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 99 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 100 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 (''aaaaa\0x''): 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 101 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 102 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 103 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 105 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 106 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 107 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 108 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 109 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 110 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 111 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 112 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 113 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 114 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 115 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 116 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 (''aaaaa\0x''): 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 117 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 118 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 119 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 120 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 121 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 122 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 123 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 124 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 125 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 126 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 127 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 128 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 129 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 130 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 131 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 (''aaaaa\0x''): 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 132 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 133 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 134 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 135 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 136 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 137 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 138 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 139 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 140 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 141 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 142 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 143 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 (''aaaaa\0x''): 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 144 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 145 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 (''aaaaa\0x''): 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 146 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 147 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 148 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 149 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 150 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 151 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 152 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 153 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 154 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 155 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 (''aaaaa\0x''): 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 156 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 157 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 158 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 159 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(materialize(toUInt256(1))))) Error on processing query 'SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(materialize(toUInt256(1)))))': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Nullable(UInt256)) of column materialize(toLowCardinality(toNullable(materialize(_CAST('1'_UInt256, 'UInt256'_String))))) for filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000a853ded 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:46: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000003b83783e 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:0: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000003be3875c 6. ./contrib/llvm-project/libcxx/include/string:1499: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&, String&, bool&) @ 0x0000000034c6d231 7. ./build_docker/./src/Planner/Planner.cpp:360: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d275ce 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0f791 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 14. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 19. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 20. ? @ 0x00007fa035818ac3 21. ? @ 0x00007fa0358aa850 Fuzzing step 160 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 161 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 162 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 163 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 165 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 166 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 (''aaaaa\0x''): 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 167 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 168 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 169 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 170 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 171 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 172 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 173 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 174 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 175 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 176 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 177 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 178 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 179 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 180 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 181 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 (''aaaaa\0x''): 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 182 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 183 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 184 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 185 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 186 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 187 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 189 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 190 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 191 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 192 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 193 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 194 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 195 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 196 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 197 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 198 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 199 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 200 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 201 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 202 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 203 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 204 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 205 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 206 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 207 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 208 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 209 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(toNullable(1))) Got boring AST Fuzzing step 210 out of 1000 SELECT materialize('aaaaa\0x') FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(1)) Query succeeded, using this AST as a start Fuzzing step 211 out of 1000 SELECT materialize('aaaaa\0x') FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(1)) Got boring AST Fuzzing step 212 out of 1000 SELECT materialize('aaaaa\0x') FROM tab__fuzz_2 PREWHERE id = toLowCardinality(2) WHERE materialize(toLowCardinality(1)) Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 SELECT materialize('aaaaa\0x') FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 214 out of 1000 SELECT materialize('aaaaa\0x') FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) WHERE materialize(1) Got boring AST Fuzzing step 215 out of 1000 SELECT materialize('aaaaa\0x') FROM tab__fuzz_2 PREWHERE id = toLowCardinality(2) WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 216 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 217 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 218 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 219 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 220 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 221 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 222 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 223 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 224 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 225 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 226 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 227 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 228 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 229 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 230 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 231 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''aaaaa\0x''): 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 232 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 (''aaaaa\0x''): 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 233 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 234 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 235 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 236 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 237 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 238 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 239 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 240 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''aaaaa\0x''): 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 241 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 242 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 243 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 244 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 245 out of 1000 EXPLAIN SYNTAX SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 246 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 247 out of 1000 EXPLAIN AST SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 248 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 249 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 250 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 251 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 252 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 253 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 254 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 255 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 256 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 257 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 258 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 259 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 260 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = 2 WHERE materialize(1) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = 2 WHERE materialize(1)': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 261 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 262 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 263 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(materialize(toNullable(1))) Query succeeded, using this AST as a start Fuzzing step 264 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 265 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(materialize(1)) Got boring AST Fuzzing step 266 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 267 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = 2 WHERE materialize(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 268 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = 2 WHERE materialize(materialize(1)) Got boring AST Fuzzing step 269 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 270 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 271 out of 1000 SELECT materialize('aaaaa\0x') FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 272 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = 2 WHERE materialize(materialize(1)) Query succeeded, using this AST as a start Fuzzing step 273 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = 2 WHERE materialize(materialize(1)) Got boring AST Fuzzing step 274 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(materialize(1)) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(materialize(1))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 (''aaaaa\0x''): 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(materialize(1)). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 275 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = 2 WHERE materialize(materialize(1)) Got boring AST Fuzzing step 276 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 277 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 278 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 279 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 280 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 281 out of 1000 SELECT toUInt8((number / toUInt256(2)) % 2), 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(1) Error on processing query 'SELECT toUInt8((number / toUInt256(2)) % 2), 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(1)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT toUInt8((number / toUInt256(2)) % 2), 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 282 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 283 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 284 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 285 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 286 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 287 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = 2 WHERE materialize(1) Got boring AST Fuzzing step 288 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = 2 WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 289 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_3 PREWHERE id = toNullable(2) WHERE materialize(1) Query succeeded, using this AST as a start Fuzzing step 290 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 PREWHERE id = toNullable(2) Query succeeded, using this AST as a start Fuzzing step 291 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Query succeeded, using this AST as a start Fuzzing step 292 out of 1000 SELECT numbers(16), 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Error on processing query 'SELECT numbers(16), 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2)': Received from localhost:9000. DB::Exception: Function with name 'numbers' does not exist. In scope SELECT numbers(16), 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000002141cd37 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3232: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334b971c 5. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 8. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 293 out of 1000 SELECT toFixedString('aaaaa\0x', 7) FROM tab__fuzz_0 PREWHERE equals(toNullable(2)) Error on processing query 'SELECT toFixedString('aaaaa\0x', 7) FROM tab__fuzz_0 PREWHERE equals(toNullable(2))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT toFixedString('aaaaa\0x', 7) FROM tab__fuzz_0 PREWHERE equals(toNullable(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 294 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Got boring AST Fuzzing step 295 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Got boring AST Fuzzing step 296 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Query succeeded, using this AST as a start Fuzzing step 297 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Query succeeded, using this AST as a start Fuzzing step 298 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Got boring AST Fuzzing step 299 out of 1000 EXPLAIN SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Got boring AST Fuzzing step 300 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Query succeeded, using this AST as a start Fuzzing step 301 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Got boring AST Fuzzing step 302 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Got boring AST Fuzzing step 303 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Got boring AST Fuzzing step 304 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Query succeeded, using this AST as a start Fuzzing step 305 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Got boring AST Fuzzing step 306 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Query succeeded, using this AST as a start Fuzzing step 308 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Got boring AST Fuzzing step 309 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Got boring AST Fuzzing step 310 out of 1000 EXPLAIN PIPELINE SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Got boring AST Fuzzing step 311 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Query succeeded, using this AST as a start Fuzzing step 312 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_0 PREWHERE id = toNullable(2) Got boring AST Fuzzing step 313 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = toNullable(2) Query succeeded, using this AST as a start Fuzzing step 314 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_1 PREWHERE id = toNullable(2) Got boring AST Fuzzing step 315 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 316 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toLowCardinality(toFixedString('test_cluster_two_shards', 23)) Query succeeded, using this AST as a start Fuzzing step 317 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toLowCardinality('test_cluster_two_shards', 23) Error on processing query 'SELECT 'aaaaa\0x' FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toLowCardinality('test_cluster_two_shards', 23)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 'aaaaa\0x' FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toLowCardinality('test_cluster_two_shards', 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 318 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toLowCardinality(toFixedString('test_cluster_two_shards', 23)) Query succeeded, using this AST as a start Fuzzing step 319 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toLowCardinality(toFixedString('test_cluster_two_shards', 23)) Got boring AST Fuzzing step 320 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toLowCardinality(toFixedString('test_cluster_two_shards', 23)) Got boring AST Fuzzing step 321 out of 1000 SELECT 'aaaaa\0x' FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 322 out of 1000 SELECT toNullable(materialize(toUInt256(1))), 'aaaaa\0x' FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 323 out of 1000 SELECT toNullable(materialize(1)), 'aaaaa\0x' FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 324 out of 1000 SELECT toNullable(materialize(1)), 'aaaaa\0x' FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', toLowCardinality(23)) Query succeeded, using this AST as a start Fuzzing step 325 out of 1000 SELECT toNullable(materialize(1)), toLowCardinality('aaaaa\0x') FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', toLowCardinality(23)) Query succeeded, using this AST as a start Fuzzing step 326 out of 1000 SELECT toNullable(materialize(1)), toLowCardinality('aaaaa\0x') FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 327 out of 1000 SELECT toNullable(materialize(1)), toLowCardinality('aaaaa\0x') FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 328 out of 1000 SELECT toNullable(materialize(1)), toLowCardinality('aaaaa\0x') FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 329 out of 1000 SELECT toNullable(materialize(1)) FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 330 out of 1000 SELECT toNullable(materialize(1)) FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 331 out of 1000 SELECT toNullable(materialize(1)) FROM tab__fuzz_1 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23 WITH CUBE Error on processing query 'SELECT toNullable(materialize(1)) FROM tab__fuzz_1 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT toNullable(materialize(1)) FROM tab__fuzz_1 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 332 out of 1000 SELECT toNullable(materialize(1)) FROM tab__fuzz_3 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23 Error on processing query 'SELECT toNullable(materialize(1)) FROM tab__fuzz_3 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT toNullable(materialize(1)) FROM tab__fuzz_3 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 333 out of 1000 SELECT toNullable(materialize(toNullable(1))) FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 334 out of 1000 SELECT toNullable(materialize(toNullable(1))) FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 335 out of 1000 SELECT toNullable(materialize(toNullable(materialize(1)))) FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 336 out of 1000 SELECT toNullable(materialize(toNullable(materialize(1)))) FROM tab__fuzz_1 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23 Error on processing query 'SELECT toNullable(materialize(toNullable(materialize(1)))) FROM tab__fuzz_1 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT toNullable(materialize(toNullable(materialize(1)))) FROM tab__fuzz_1 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 337 out of 1000 SELECT materialize(toNullable(materialize(1))) FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(toNullable(toNullable(0)), 'test_cluster_two_shards', 23) Error on processing query 'SELECT materialize(toNullable(materialize(1))) FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(toNullable(toNullable(0)), 'test_cluster_two_shards', 23)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT materialize(toNullable(materialize(1))) FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(toNullable(toNullable(0)), 'test_cluster_two_shards', 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 338 out of 1000 SELECT toNullable(materialize(toNullable(materialize(1)))) FROM tab__fuzz_1 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23 Error on processing query 'SELECT toNullable(materialize(toNullable(materialize(1)))) FROM tab__fuzz_1 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT toNullable(materialize(toNullable(materialize(1)))) FROM tab__fuzz_1 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 339 out of 1000 SELECT toNullable(materialize(toNullable(materialize(1)))) FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 340 out of 1000 SELECT toNullable(materialize(toNullable(materialize(1)))) FROM tab__fuzz_0 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 341 out of 1000 SELECT toNullable(materialize(materialize(1))) FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 342 out of 1000 SELECT toNullable(materialize(materialize(1))) FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 343 out of 1000 SELECT toNullable(materialize(materialize(1))) FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 344 out of 1000 SELECT toNullable(materialize(1)) FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 345 out of 1000 SELECT toNullable(materialize(1)) FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 346 out of 1000 SELECT toNullable(materialize(1)) FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 347 out of 1000 SELECT toNullable(1) FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 348 out of 1000 SELECT toNullable(1) FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 349 out of 1000 SELECT toNullable(toNullable(1)) FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 350 out of 1000 SELECT toNullable(1) FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 351 out of 1000 SELECT cluster(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23), 23), currentDatabase(), t), toNullable(1) FROM tab__fuzz_2 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23 Error on processing query 'SELECT cluster(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23), 23), currentDatabase(), t), toNullable(1) FROM tab__fuzz_2 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT cluster(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23), 23), currentDatabase(), t), toNullable(1) FROM tab__fuzz_2 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 352 out of 1000 SELECT toNullable(1) FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 353 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(toLowCardinality(toFixedString('aaaaa\0x')), 'test_cluster_two_shards', 23) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(toLowCardinality(toFixedString('aaaaa\0x')), 'test_cluster_two_shards', 23)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(toLowCardinality(toFixedString('aaaaa\0x')), 'test_cluster_two_shards', 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 354 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 356 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 357 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 358 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 359 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 360 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 361 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 362 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 363 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 364 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 365 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 366 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 367 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 368 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 369 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 370 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 371 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 372 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 45 ('1'): 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 373 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 374 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 375 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 376 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 377 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 378 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 379 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 380 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 381 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 45 ('1'): 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 382 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 383 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 384 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 385 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 45 ('1'): 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 386 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 387 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 45 ('1'): 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 388 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 389 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 390 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 391 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 392 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Query succeeded, using this AST as a start Fuzzing step 393 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23 Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 394 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23 Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 23 (expected in range [1, 1]: While processing SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23: While processing SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), 'test_cluster_two_shards', 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x000000000860b48d 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000035a91aff 5. ./build_docker/./src/Interpreters/TreeRewriter.cpp:285: DB::InDepthNodeVisitor const&, std::shared_ptr const&), std::shared_ptr>, false, false, std::shared_ptr>::doVisit(std::shared_ptr&) @ 0x00000000356615a4 6. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000003564c4e7 7. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x0000000035635f9d 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 10. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 11. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 395 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23) Got boring AST Fuzzing step 396 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(materialize('test_cluster_two_shards'), 23) Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', nums__fuzz_11, 23) Error on processing query 'EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', nums__fuzz_11, 23)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_11' in scope SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', nums__fuzz_11, 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 398 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY 7, toFixedString('test_cluster_two_shards', 23) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY 7, toFixedString('test_cluster_two_shards', 23)': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_2 GROUP BY 7, toFixedString('test_cluster_two_shards', 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 399 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString(materialize('test_cluster_two_shards'), 23) Query succeeded, using this AST as a start Fuzzing step 400 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), toFixedString(materialize('test_cluster_two_shards'), 23) Query succeeded, using this AST as a start Fuzzing step 401 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY 7, toFixedString(materialize('test_cluster_two_shards'), 23) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY 7, toFixedString(materialize('test_cluster_two_shards'), 23)': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_0 GROUP BY 7, toFixedString(materialize('test_cluster_two_shards'), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 402 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), toFixedString(materialize('test_cluster_two_shards'), 23) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), toFixedString(materialize('test_cluster_two_shards'), 23)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 45 ('1'): 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), toFixedString(materialize('test_cluster_two_shards'), 23). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 403 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString(materialize('test_cluster_two_shards'), 23) Query succeeded, using this AST as a start Fuzzing step 404 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), materialize('test_cluster_two_shards'), 23 Error on processing query 'SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), materialize('test_cluster_two_shards'), 23': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), materialize('test_cluster_two_shards'), 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 405 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString(materialize('test_cluster_two_shards'), 23) Got boring AST Fuzzing step 406 out of 1000 SELECT 1 FROM tab__fuzz_3 PREWHERE tab__fuzz_41 GROUP BY toLowCardinality(7), toFixedString(materialize('test_cluster_two_shards'), 23) Error on processing query 'SELECT 1 FROM tab__fuzz_3 PREWHERE tab__fuzz_41 GROUP BY toLowCardinality(7), toFixedString(materialize('test_cluster_two_shards'), 23)': Received from localhost:9000. DB::Exception: Unknown expression identifier 'tab__fuzz_41' in scope SELECT 1 FROM tab__fuzz_3 PREWHERE tab__fuzz_41 GROUP BY toLowCardinality(7), toFixedString(materialize('test_cluster_two_shards'), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 407 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), materialize('test_cluster_two_shards'), 23 Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), materialize('test_cluster_two_shards'), 23': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), materialize('test_cluster_two_shards'), 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 408 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(materialize('test_cluster_two_shards'), 23) Query succeeded, using this AST as a start Fuzzing step 409 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(materialize(toFixedString('aaaaa\0x', 7), 'test_cluster_two_shards'), 23) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(materialize(toFixedString('aaaaa\0x', 7), 'test_cluster_two_shards'), 23)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(materialize(toFixedString('aaaaa\0x', 7), 'test_cluster_two_shards'), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 410 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toFixedString(materialize('test_cluster_two_shards'), 23) Query succeeded, using this AST as a start Fuzzing step 411 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_2 GROUP BY 7, toFixedString(materialize('test_cluster_two_shards'), 23) WITH ROLLUP Error on processing query 'SELECT toUInt128(1) FROM tab__fuzz_2 GROUP BY 7, toFixedString(materialize('test_cluster_two_shards'), 23) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT toUInt128(1) FROM tab__fuzz_2 GROUP BY 7, toFixedString(materialize('test_cluster_two_shards'), 23) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 412 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(materialize('test_cluster_two_shards'), 23) Query succeeded, using this AST as a start Fuzzing step 413 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_2 GROUP BY toLowCardinality(7), materialize('test_cluster_two_shards'), 23 Error on processing query 'SELECT toUInt128(1) FROM tab__fuzz_2 GROUP BY toLowCardinality(7), materialize('test_cluster_two_shards'), 23': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT toUInt128(1) FROM tab__fuzz_2 GROUP BY toLowCardinality(7), materialize('test_cluster_two_shards'), 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 414 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(materialize(materialize(toFixedString('test_cluster_two_shards', 23))), 23) Query succeeded, using this AST as a start Fuzzing step 415 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_0 GROUP BY 7, toFixedString(materialize(materialize(toFixedString(toLowCardinality(toFixedString('test_cluster_two_shards', 23)), 23))), 23) Error on processing query 'SELECT toUInt128(1) FROM tab__fuzz_0 GROUP BY 7, toFixedString(materialize(materialize(toFixedString(toLowCardinality(toFixedString('test_cluster_two_shards', 23)), 23))), 23)': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT toUInt128(1) FROM tab__fuzz_0 GROUP BY 7, toFixedString(materialize(materialize(toFixedString(toLowCardinality(toFixedString('test_cluster_two_shards', 23)), 23))), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 416 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), toFixedString(materialize(materialize('test_cluster_two_shards', 23)), 23) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), toFixedString(materialize(materialize('test_cluster_two_shards', 23)), 23)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), toFixedString(materialize(materialize('test_cluster_two_shards', 23)), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 417 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23) Query succeeded, using this AST as a start Fuzzing step 418 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23) Got boring AST Fuzzing step 419 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23) Got boring AST Fuzzing step 420 out of 1000 SELECT toNullable(1) FROM tab__fuzz_3 GROUP BY 7, toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23) Error on processing query 'SELECT toNullable(1) FROM tab__fuzz_3 GROUP BY 7, toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23)': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT toNullable(1) FROM tab__fuzz_3 GROUP BY 7, toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 421 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), materialize(toFixedString('test_cluster_two_shards', 23)), 23 Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), materialize(toFixedString('test_cluster_two_shards', 23)), 23': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), materialize(toFixedString('test_cluster_two_shards', 23)), 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 422 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23) Query succeeded, using this AST as a start Fuzzing step 423 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), materialize(toFixedString('test_cluster_two_shards', 23)), 23 Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), materialize(toFixedString('test_cluster_two_shards', 23)), 23': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), materialize(toFixedString('test_cluster_two_shards', 23)), 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 424 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23) Query succeeded, using this AST as a start Fuzzing step 425 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23) Got boring AST Fuzzing step 426 out of 1000 SELECT id = 2, 1 FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23) Error on processing query 'SELECT id = 2, 1 FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23)': Received from localhost:9000. DB::Exception: Column default.tab__fuzz_3.id is not under aggregate function and not in GROUP BY keys. In query SELECT id = 2, 1 FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033593a48 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 427 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23) Got boring AST Fuzzing step 428 out of 1000 SELECT if(greaterOrEquals(a, toNullable(toNullable(1)), 0) AND 1, 1, 0), 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23) Error on processing query 'SELECT if(greaterOrEquals(a, toNullable(toNullable(1)), 0) AND 1, 1, 0), 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT if(greaterOrEquals(a, toNullable(toNullable(1)), 0) AND 1, 1, 0), 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 429 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23) Got boring AST Fuzzing step 430 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY 7, toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY 7, toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23)': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_0 GROUP BY 7, toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 431 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), 12, pattern), 7), toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), 12, pattern), 7), toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), 12, pattern), 7), toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 432 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString(toFixedString('test_cluster_two_shards', 23), 23) Query succeeded, using this AST as a start Fuzzing step 433 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString(toFixedString('test_cluster_two_shards', 23), 23) Got boring AST Fuzzing step 434 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString(toFixedString('test_cluster_two_shards', 23), 23) Got boring AST Fuzzing step 435 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY 7, toFixedString(toFixedString('test_cluster_two_shards', 23), 23) Error on processing query 'SELECT 1 FROM tab__fuzz_1 GROUP BY 7, toFixedString(toFixedString('test_cluster_two_shards', 23), 23)': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_1 GROUP BY 7, toFixedString(toFixedString('test_cluster_two_shards', 23), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 436 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), toFixedString(toFixedString('test_cluster_two_shards', 23), 23) Query succeeded, using this AST as a start Fuzzing step 437 out of 1000 SELECT 1 FROM tab__fuzz_3 PREWHERE toLowCardinality(1) GROUP BY toLowCardinality(materialize(7)), toFixedString('test_cluster_two_shards', 23), 23 Error on processing query 'SELECT 1 FROM tab__fuzz_3 PREWHERE toLowCardinality(1) GROUP BY toLowCardinality(materialize(7)), toFixedString('test_cluster_two_shards', 23), 23': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_3 PREWHERE toLowCardinality(1) GROUP BY toLowCardinality(materialize(7)), toFixedString('test_cluster_two_shards', 23), 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 438 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY toLowCardinality(7), toFixedString(toFixedString('test_cluster_two_shards', 23), 23) Got boring AST Fuzzing step 439 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(toFixedString('test_cluster_two_shards', 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(toFixedString('test_cluster_two_shards', 23))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(toFixedString('test_cluster_two_shards', 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 440 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(toFixedString('test_cluster_two_shards', 23), 23) Query succeeded, using this AST as a start Fuzzing step 441 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY 7, toFixedString(toFixedString('test_cluster_two_shards', 23), 23) WITH ROLLUP Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY 7, toFixedString(toFixedString('test_cluster_two_shards', 23), 23) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_2 GROUP BY 7, toFixedString(toFixedString('test_cluster_two_shards', 23), 23) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 442 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY 7, toFixedString(toFixedString('test_cluster_two_shards', 23), 23) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY 7, toFixedString(toFixedString('test_cluster_two_shards', 23), 23)': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_2 GROUP BY 7, toFixedString(toFixedString('test_cluster_two_shards', 23), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 443 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString(toFixedString('test_cluster_two_shards', 23), 23) Query succeeded, using this AST as a start Fuzzing step 444 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY toLowCardinality(7), toFixedString(toFixedString('test_cluster_two_shards', 23), 23) Query succeeded, using this AST as a start Fuzzing step 445 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY 7, toFixedString(toFixedString('test_cluster_two_shards', 23), 23) Error on processing query 'EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY 7, toFixedString(toFixedString('test_cluster_two_shards', 23), 23)': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 7 (expected in range [1, 1]: While processing SELECT 1 FROM tab__fuzz_0 GROUP BY 7, toFixedString(toFixedString('test_cluster_two_shards', 23), 23): While processing SELECT 1 FROM tab__fuzz_0 GROUP BY 7, toFixedString(toFixedString('test_cluster_two_shards', 23), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x000000000860b48d 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000035a91aff 5. ./build_docker/./src/Interpreters/TreeRewriter.cpp:285: DB::InDepthNodeVisitor const&, std::shared_ptr const&), std::shared_ptr>, false, false, std::shared_ptr>::doVisit(std::shared_ptr&) @ 0x00000000356615a4 6. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000003564c4e7 7. ./build_docker/./src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x0000000035635f9d 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c07230 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 10. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 11. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 446 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY 7, toFixedString((x1 AND x2) AND (materialize(toNullable(0)) AND toLowCardinality(if(1 AND (c > 220), toUInt256(1), 0), 1000) AND x3 AND x4), 'test_cluster_two_shards', 23, 23) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY 7, toFixedString((x1 AND x2) AND (materialize(toNullable(0)) AND toLowCardinality(if(1 AND (c > 220), toUInt256(1), 0), 1000) AND x3 AND x4), 'test_cluster_two_shards', 23, 23)': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_0 GROUP BY 7, toFixedString((x1 AND x2) AND (materialize(toNullable(0)) AND toLowCardinality(if(1 AND (c > 220), toUInt256(1), 0), 1000) AND x3 AND x4), 'test_cluster_two_shards', 23, 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 447 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23, 23) Error on processing query 'SELECT 1 FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23, 23)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1 FROM tab__fuzz_3 GROUP BY toLowCardinality(7), toFixedString('test_cluster_two_shards', 23, 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 448 out of 1000 EXPLAIN AST optimize = true SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString(toFixedString('test_cluster_two_shards', 23), 23) Error on processing query 'EXPLAIN AST optimize = true SELECT 1 FROM tab__fuzz_1 GROUP BY toLowCardinality(7), toFixedString(toFixedString('test_cluster_two_shards', 23), 23)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "optimize" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495f93b 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 449 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Query succeeded, using this AST as a start Fuzzing step 450 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString('test_cluster_two_shards', 23), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 451 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Query succeeded, using this AST as a start Fuzzing step 452 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Query succeeded, using this AST as a start Fuzzing step 453 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Query succeeded, using this AST as a start Fuzzing step 454 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 46 ('1'): 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 455 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Got boring AST Fuzzing step 456 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Query succeeded, using this AST as a start Fuzzing step 457 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Got boring AST Fuzzing step 458 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Query succeeded, using this AST as a start Fuzzing step 459 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Query succeeded, using this AST as a start Fuzzing step 460 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Query succeeded, using this AST as a start Fuzzing step 461 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(23))) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 462 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Got boring AST Fuzzing step 463 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Query succeeded, using this AST as a start Fuzzing step 464 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 465 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 23))) Got boring AST Fuzzing step 466 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 467 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 468 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 23))) Got boring AST Fuzzing step 469 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 470 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Query succeeded, using this AST as a start Fuzzing step 471 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Got boring AST Fuzzing step 472 out of 1000 EXPLAIN optimize = true SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Error on processing query 'EXPLAIN optimize = true SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23)))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "optimize" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496cdff 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 473 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString('test_cluster_two_shards', 23), 23)) WITH ROLLUP Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', 23), 23)) WITH ROLLUP': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343d54d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 474 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Query succeeded, using this AST as a start Fuzzing step 475 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), version_pair, 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), version_pair, 23)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), version_pair, 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 476 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Query succeeded, using this AST as a start Fuzzing step 477 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Query succeeded, using this AST as a start Fuzzing step 478 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString('test_cluster_two_shards', 23), 23)) Error on processing query 'SELECT toUInt128(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT toUInt128(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 479 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(toUInt256(toNullable(2)), 7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Error on processing query 'SELECT toUInt128(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(toNullable(2)), 7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toUInt128(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(toNullable(2)), 7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 480 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString('test_cluster_two_shards', 23, 23))) Error on processing query 'SELECT toUInt128(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', 23, 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt128(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', 23, 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 481 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString('test_cluster_two_shards', 23, 23))) Error on processing query 'SELECT toUInt128(1) FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', 23, 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt128(1) FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', 23, 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 482 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString('test_cluster_two_shards', 23), 23)) Error on processing query 'SELECT toUInt128(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT toUInt128(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 483 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 484 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString('test_cluster_two_shards', toNullable(23), 23))) Error on processing query 'SELECT toUInt128(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', toNullable(23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toUInt128(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', toNullable(23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 486 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 487 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 488 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23))) WITH ROLLUP Error on processing query 'SELECT toUInt128(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23))) WITH ROLLUP': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343d54d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 489 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23))) WITH CUBE Error on processing query 'SELECT toUInt128(1) FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23))) WITH CUBE': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343d54d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 490 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 491 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23))) Got boring AST Fuzzing step 492 out of 1000 SELECT test_alias__fuzz_45, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))) Error on processing query 'SELECT test_alias__fuzz_45, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23)))': Received from localhost:9000. DB::Exception: Unknown expression identifier 'test_alias__fuzz_45' in scope SELECT test_alias__fuzz_45, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 493 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 494 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23))) Got boring AST Fuzzing step 495 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 496 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (7), (toFixedString('test_cluster_two_shards', toNullable(23)), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((7), (toFixedString('test_cluster_two_shards', toNullable(23)), 23))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((7), (toFixedString('test_cluster_two_shards', toNullable(23)), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 497 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString('test_cluster_two_shards', toNullable(23)), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', toNullable(23)), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', toNullable(23)), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 498 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 499 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString('test_cluster_two_shards', toNullable(23), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', toNullable(23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', toNullable(23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 500 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', if((a >= 0) AND (c = 0), 1, 0), toNullable(23)), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', if((a >= 0) AND (c = 0), 1, 0), toNullable(23)), 23)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', if((a >= 0) AND (c = 0), 1, 0), toNullable(23)), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 501 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), materialize(toLowCardinality(23))))) Error on processing query 'SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), materialize(toLowCardinality(23)))))': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), materialize(toLowCardinality(23))))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 502 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards'), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards'), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards'), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 503 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString('test_cluster_two_shards', toNullable(23)), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', toNullable(23)), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', toNullable(23)), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 504 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 505 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(toUInt256(23))), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(toUInt256(23))), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(toUInt256(23))), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 506 out of 1000 SELECT 1 FROM tab__fuzz_0 WITH TOTALS Error on processing query 'SELECT 1 FROM tab__fuzz_0 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 507 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString('test_cluster_two_shards', toNullable(toLowCardinality(toUInt256(23))), 23))) Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', toNullable(toLowCardinality(toUInt256(23))), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString('test_cluster_two_shards', toNullable(toLowCardinality(toUInt256(23))), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 508 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(toLowCardinality(toUInt256(materialize(23))))), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(toLowCardinality(toUInt256(materialize(23))))), 23)))': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(toLowCardinality(toUInt256(materialize(23))))), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 509 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(toUInt256(7))), (toFixedString(23))) Error on processing query 'SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(7))), (toFixedString(23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(7))), (toFixedString(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 510 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 511 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 512 out of 1000 SELECT 1 FROM tab__fuzz_2 WITH TOTALS Error on processing query 'SELECT 1 FROM tab__fuzz_2 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 513 out of 1000 SELECT toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0)), toLowCardinality(toUInt256(23)))), 23))) Error on processing query 'SELECT toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0)), toLowCardinality(toUInt256(23)))), 23)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7), 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0)), toLowCardinality(toUInt256(23)))), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 514 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 515 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 516 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 517 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 518 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 519 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 520 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 522 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 523 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 524 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 525 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 526 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 527 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 528 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 529 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 530 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 531 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 47 ('1'): 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNull. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 532 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 533 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 534 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 535 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 536 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 537 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 538 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 539 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 540 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 541 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 47 ('1'): 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNull. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 542 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 543 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 544 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 545 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 546 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 547 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 548 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 549 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 550 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 551 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 552 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('1'): 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNull. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 553 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 554 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 555 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 556 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 557 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 558 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 559 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 560 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 561 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 562 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 563 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 564 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 565 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 566 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 567 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 568 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 569 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 570 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 571 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 572 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 573 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 574 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 575 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 576 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 577 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 578 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 579 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 580 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 581 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 582 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 47 ('1'): 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNull. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 583 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 584 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 585 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 586 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), toLowCardinality(toNullable(2)), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), toLowCardinality(toNullable(2)), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), toLowCardinality(toNullable(2)), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 587 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 588 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 589 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 590 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 591 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 592 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 593 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 594 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 595 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 596 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 597 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 598 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 599 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 47 ('1'): 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNull. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 600 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('1'): 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNull. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 601 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toNullable(23))), toNullable(toLowCardinality(toUInt256(23)))), materialize(toLowCardinality(toNullable(23)))))) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toNullable(23))), toNullable(toLowCardinality(toUInt256(23)))), materialize(toLowCardinality(toNullable(23))))))': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toNullable(23))), toNullable(toLowCardinality(toUInt256(23)))), materialize(toLowCardinality(toNullable(23)))))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 602 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('1'): 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNull. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 603 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 604 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 605 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 606 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 607 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 608 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 609 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 610 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 611 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 612 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 613 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 614 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('1'): 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNull. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 615 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 616 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 617 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 618 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 619 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('1'): 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNull. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 620 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 621 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 622 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 623 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 624 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 625 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 626 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 627 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 628 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 629 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 630 out of 1000 SELECT 1 FROM tab__fuzz_0 WHERE id = 1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(id = materialize(toUInt128(1)), 23)))), 23))) WITH TOTALS Error on processing query 'SELECT 1 FROM tab__fuzz_0 WHERE id = 1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(id = materialize(toUInt128(1)), 23)))), 23))) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS and GROUPING SETS are not supported together. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343db0d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 631 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 632 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 633 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Got boring AST Fuzzing step 634 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))) Query succeeded, using this AST as a start Fuzzing step 635 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY 7, toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toUInt256(23))), 23) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY 7, toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toUInt256(23))), 23)': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_0 GROUP BY 7, toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toUInt256(23))), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 636 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23)) WITH ROLLUP Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23)) WITH ROLLUP': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343d54d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 637 out of 1000 SELECT x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23))), 23))) Error on processing query 'SELECT x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23))), 23)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23))), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 638 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toLowCardinality(toUInt256(23)))), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 639 out of 1000 SELECT 1 FROM tab__fuzz_3 WITH TOTALS Error on processing query 'SELECT 1 FROM tab__fuzz_3 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 640 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toLowCardinality(toUInt256(23))), 23))) Query succeeded, using this AST as a start Fuzzing step 641 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toLowCardinality(toUInt256(23))), 23))) Query succeeded, using this AST as a start Fuzzing step 642 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toLowCardinality(toUInt256(23))), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toLowCardinality(toUInt256(23))), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toLowCardinality(toUInt256(23))), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 643 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(toUInt256(23))), 23))) Query succeeded, using this AST as a start Fuzzing step 644 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(toUInt256(23)), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(toUInt256(23)), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(toUInt256(23)), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 645 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 646 out of 1000 SELECT 1 FROM tab__fuzz_2 PREWHERE materialize(materialize(toUInt128(1000))) GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_2 PREWHERE materialize(materialize(toUInt128(1000))) GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x0000000037f9adfa 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x0000000038d06faa 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::MergeTreeDataSelectExecutor::filterPartsByVirtualColumns(std::shared_ptr const&, DB::MergeTreeData const&, std::vector, std::allocator>> const&, DB::ActionsDAG const*, std::shared_ptr) @ 0x0000000039a5472c 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::buildIndexes(std::optional&, DB::ActionsDAG const*, DB::MergeTreeData const&, std::vector, std::allocator>> const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003bf2f170 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1639: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000003bf2e127 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000003c1827e4 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000003c1822fe 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c129752 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 647 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 648 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt256(23)), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt256(23)), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt256(23)), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 649 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(23)), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(23)), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(23)), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 650 out of 1000 SELECT toUInt256(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(23)), 23)) Error on processing query 'SELECT toUInt256(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(23)), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT toUInt256(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(23)), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 651 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt256(23)), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt256(23)), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt256(23)), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 652 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(23)), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(23)), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(23)), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 653 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(23)), 23))) Got boring AST Fuzzing step 654 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(23)), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(23)), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(23)), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 655 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(23)), 23))) Got boring AST Fuzzing step 656 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 657 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(23)), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(23)), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt256(23)), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 658 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(23), toUInt256(toLowCardinality(23))), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(23), toUInt256(toLowCardinality(23))), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(23), toUInt256(toLowCardinality(23))), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 659 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toLowCardinality(toFixedString('test_cluster_two_shards', 23)), 23), toUInt256(23)), 23))) WITH TOTALS Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toLowCardinality(toFixedString('test_cluster_two_shards', 23)), 23), toUInt256(23)), 23))) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS and GROUPING SETS are not supported together. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343db0d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 660 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 661 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(r1 + r2, 7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toUInt256(23)))) Error on processing query 'SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(r1 + r2, 7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toUInt256(23))))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'r1' in scope SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(r1 + r2, 7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toUInt256(23)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 663 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 664 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Got boring AST Fuzzing step 665 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 666 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 667 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 668 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23))) Error on processing query 'EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 669 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 670 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 671 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(toNullable(7))), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 672 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(toNullable(7))), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Got boring AST Fuzzing step 673 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 674 out of 1000 SELECT tab__fuzz_1, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Error on processing query 'SELECT tab__fuzz_1, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)))': Received from localhost:9000. DB::Exception: Unknown expression identifier 'tab__fuzz_1' in scope SELECT tab__fuzz_1, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 675 out of 1000 SELECT 1 FROM tab__fuzz_2 WITH TOTALS Error on processing query 'SELECT 1 FROM tab__fuzz_2 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 676 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 678 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 679 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 680 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 681 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(23), 23), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(23), 23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 682 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) WITH ROLLUP Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) WITH ROLLUP': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343d54d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 683 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 684 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 685 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 686 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 687 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 688 out of 1000 SELECT 1 FROM tab__fuzz_1 WHERE x10 OR x11 GROUP BY toLowCardinality(7), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23) Error on processing query 'SELECT 1 FROM tab__fuzz_1 WHERE x10 OR x11 GROUP BY toLowCardinality(7), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x10' in scope SELECT 1 FROM tab__fuzz_1 WHERE x10 OR x11 GROUP BY toLowCardinality(7), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 689 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 690 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('1'): 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 691 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 692 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Got boring AST Fuzzing step 693 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 47 ('1'): 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 694 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 695 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Got boring AST Fuzzing step 696 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Got boring AST Fuzzing step 697 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 698 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Got boring AST Fuzzing step 699 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 700 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 701 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 702 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Got boring AST Fuzzing step 703 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('1'): 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 704 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Got boring AST Fuzzing step 705 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('1'): 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 706 out of 1000 EXPLAIN PIPELINE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 707 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('1'): 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 708 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 709 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Got boring AST Fuzzing step 710 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Got boring AST Fuzzing step 711 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 712 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Got boring AST Fuzzing step 713 out of 1000 EXPLAIN AST SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Got boring AST Fuzzing step 714 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 715 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Got boring AST Fuzzing step 716 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 717 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 718 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Got boring AST Fuzzing step 719 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 720 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(materialize('aaaaa\0x')), 23), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(materialize('aaaaa\0x')), 23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(materialize('aaaaa\0x')), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 721 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 722 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Error on processing query 'EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 723 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 724 out of 1000 SELECT toNullable(' ', 1, 1), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Error on processing query 'SELECT toNullable(' ', 1, 1), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 3, should be 1: In scope SELECT toNullable(' ', 1, 1), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 725 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 726 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Got boring AST Fuzzing step 727 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 728 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Got boring AST Fuzzing step 729 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 730 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 731 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) WITH TOTALS Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS and GROUPING SETS are not supported together. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343db0d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 732 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) WITH ROLLUP Error on processing query 'SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) WITH ROLLUP': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343d54d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 733 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)) Error on processing query 'SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 734 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 735 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 736 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 737 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 738 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23)), 23))) WITH TOTALS Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23)), 23))) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS and GROUPING SETS are not supported together. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343db0d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 739 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23)), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23)), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23)), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 740 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 742 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 743 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(toNullable(materialize(materialize(1))), 7)), (toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23)), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(toNullable(materialize(materialize(1))), 7)), (toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23)), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(toNullable(materialize(materialize(1))), 7)), (toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23)), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 744 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(0 AND 1000 AND x4, 7)), (toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23, toUInt128(23)), 23))) Error on processing query 'SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(0 AND 1000 AND x4, 7)), (toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23, toUInt128(23)), 23)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x4' in scope SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(0 AND 1000 AND x4, 7)), (toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23, toUInt128(23)), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 745 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23)), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23)), 23))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23)), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 746 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 747 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 748 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 749 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 750 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 751 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 752 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 753 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 754 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 755 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 756 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 757 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 758 out of 1000 EXPLAIN PIPELINE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 759 out of 1000 EXPLAIN ESTIMATE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 760 out of 1000 EXPLAIN ESTIMATE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 761 out of 1000 EXPLAIN ESTIMATE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 762 out of 1000 EXPLAIN AST SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 763 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toFixedString'): toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedSt. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 764 out of 1000 EXPLAIN AST SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 765 out of 1000 EXPLAIN AST SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 766 out of 1000 EXPLAIN AST SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 767 out of 1000 EXPLAIN AST SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 768 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 769 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 770 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 771 out of 1000 EXPLAIN PIPELINE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 772 out of 1000 EXPLAIN SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 773 out of 1000 EXPLAIN SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 774 out of 1000 EXPLAIN SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 775 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 776 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toFixedString'): toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedSt. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 777 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 778 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 779 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 780 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 781 out of 1000 EXPLAIN AST SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 782 out of 1000 EXPLAIN AST SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 783 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toFixedString'): toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedSt. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 784 out of 1000 EXPLAIN AST SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 785 out of 1000 EXPLAIN AST SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 786 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toFixedString'): toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedSt. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 787 out of 1000 EXPLAIN ESTIMATE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 788 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 789 out of 1000 EXPLAIN ESTIMATE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 790 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toFixedString'): toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedSt. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 791 out of 1000 EXPLAIN PIPELINE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 792 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 793 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 794 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 795 out of 1000 EXPLAIN AST SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 796 out of 1000 EXPLAIN AST SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 797 out of 1000 EXPLAIN AST SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 798 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 799 out of 1000 EXPLAIN SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 800 out of 1000 EXPLAIN SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 801 out of 1000 EXPLAIN SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 802 out of 1000 EXPLAIN SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 803 out of 1000 EXPLAIN SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 804 out of 1000 EXPLAIN SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 805 out of 1000 EXPLAIN SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 806 out of 1000 EXPLAIN SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 807 out of 1000 EXPLAIN SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 808 out of 1000 EXPLAIN SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 809 out of 1000 EXPLAIN SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 810 out of 1000 EXPLAIN SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 811 out of 1000 EXPLAIN SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 812 out of 1000 EXPLAIN SYNTAX SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 813 out of 1000 EXPLAIN AST SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 814 out of 1000 EXPLAIN AST SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 815 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toFixedString'): toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedSt. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 816 out of 1000 EXPLAIN AST SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 817 out of 1000 EXPLAIN AST SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 818 out of 1000 EXPLAIN AST SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 819 out of 1000 EXPLAIN AST SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 820 out of 1000 EXPLAIN AST SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 821 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 822 out of 1000 EXPLAIN AST SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 823 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toFixedString'): toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedSt. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 824 out of 1000 EXPLAIN ESTIMATE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 825 out of 1000 EXPLAIN ESTIMATE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 826 out of 1000 EXPLAIN PIPELINE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 827 out of 1000 EXPLAIN PIPELINE SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 828 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Query succeeded, using this AST as a start Fuzzing step 829 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 2]. In scope SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 830 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt128(23)), 23))) Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt128(23)), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt128(23)), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 831 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 832 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23))) Got boring AST Fuzzing step 833 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', materialize(7), 23), toUInt128(23)), 23))) Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', materialize(7), 23), toUInt128(23)), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', materialize(7), 23), toUInt128(23)), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 834 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23), 23))) Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 2]. In scope SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 835 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 836 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 837 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 838 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23))) Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 839 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23))) Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 840 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 841 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 842 out of 1000 SELECT toFixedString('test_cluster_two_shards', toLowCardinality(23)), 1 FROM tab__fuzz_0 WITH TOTALS Error on processing query 'SELECT toFixedString('test_cluster_two_shards', toLowCardinality(23)), 1 FROM tab__fuzz_0 WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033594451 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 843 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), materialize(toUInt128(23))))) Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), materialize(toUInt128(23)))))': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), materialize(toUInt128(23))))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 844 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_2 PREWHERE toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(toNullable(7))) GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)) Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_2 PREWHERE toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(toNullable(7))) GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 2]. In scope SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_2 PREWHERE toFixedString(toFixedString('aaaaa\0x', 7), toLowCardinality(toNullable(7))) GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 845 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality((number / 4) % 2, 7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23))) Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality((number / 4) % 2, 7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality((number / 4) % 2, 7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 846 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23)), 23))) Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23)), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23)), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 847 out of 1000 EXPLAIN PIPELINE header = true SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_2 WHERE c = toUInt256(0) GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Error on processing query 'EXPLAIN PIPELINE header = true SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_2 WHERE c = toUInt256(0) GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 848 out of 1000 SELECT toFixedString(toNullable(1) AND x1 AND x2 AND x3 AND x4, 'test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Error on processing query 'SELECT toFixedString(toNullable(1) AND x1 AND x2 AND x3 AND x4, 'test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT toFixedString(toNullable(1) AND x1 AND x2 AND x3 AND x4, 'test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 849 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 850 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)) Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 2]. In scope SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 851 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23))) Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 852 out of 1000 SELECT toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(toUInt128(23)))), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 853 out of 1000 SELECT toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 854 out of 1000 SELECT toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23, 23))) Error on processing query 'SELECT toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23, 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23, 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 855 out of 1000 SELECT toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23), toLowCardinality(23)))) Query succeeded, using this AST as a start Fuzzing step 856 out of 1000 SELECT toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(toUInt128(23)))), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23), toLowCardinality(23)))) Query succeeded, using this AST as a start Fuzzing step 857 out of 1000 SELECT toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23), 23), toLowCardinality(23)))) Query succeeded, using this AST as a start Fuzzing step 858 out of 1000 SELECT toFixedString('test_cluster_two_shards', toLowCardinality(23)), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23), 23), toLowCardinality(23)))) Query succeeded, using this AST as a start Fuzzing step 859 out of 1000 EXPLAIN ESTIMATE SELECT toFixedString(intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000)), 'test_cluster_two_shards', toLowCardinality(23)), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23), 23), toLowCardinality(23)))) Error on processing query 'EXPLAIN ESTIMATE SELECT toFixedString(intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000)), 'test_cluster_two_shards', toLowCardinality(23)), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23), 23), toLowCardinality(23))))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT toFixedString(intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000)), 'test_cluster_two_shards', toLowCardinality(23)), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23), 23), toLowCardinality(23)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 860 out of 1000 SELECT toFixedString('test_cluster_two_shards', toLowCardinality(23)), 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23), 23), toLowCardinality(23)))) Query succeeded, using this AST as a start Fuzzing step 861 out of 1000 SELECT toFixedString('test_cluster_two_shards', toLowCardinality(23)), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toLowCardinality(materialize(23))))) Error on processing query 'SELECT toFixedString('test_cluster_two_shards', toLowCardinality(23)), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toLowCardinality(materialize(23)))))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 2]. In scope SELECT toFixedString('test_cluster_two_shards', toLowCardinality(23)), 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toLowCardinality(materialize(23))))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 862 out of 1000 SELECT toFixedString('test_cluster_two_shards', toLowCardinality(23)), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(tab__fuzz_16, 23))), 23), 23), 23))) WITH TOTALS Error on processing query 'SELECT toFixedString('test_cluster_two_shards', toLowCardinality(23)), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(tab__fuzz_16, 23))), 23), 23), 23))) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS and GROUPING SETS are not supported together. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343db0d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 863 out of 1000 SELECT toFixedString('test_cluster_two_shards', toLowCardinality(23)), 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toLowCardinality(23)))) Query succeeded, using this AST as a start Fuzzing step 864 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 'test_cluster_two_shards', toLowCardinality(23), 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23, 23), toLowCardinality(23)))) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 'test_cluster_two_shards', toLowCardinality(23), 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23, 23), toLowCardinality(23))))': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 865 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23), toLowCardinality(23)))) Error on processing query 'SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23), toLowCardinality(23))))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23), toLowCardinality(23)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 866 out of 1000 SELECT toFixedString('test_cluster_two_shards', 23), 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toLowCardinality(23)))) Query succeeded, using this AST as a start Fuzzing step 867 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toLowCardinality(23)))) Query succeeded, using this AST as a start Fuzzing step 868 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(intDiv(toUInt32(rtime), 20), 7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23)), toLowCardinality(23)))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(intDiv(toUInt32(rtime), 20), 7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23)), toLowCardinality(23))))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(intDiv(toUInt32(rtime), 20), 7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23)), toLowCardinality(23)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 869 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), toLowCardinality(23)))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), toLowCardinality(23))))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), toLowCardinality(23)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 870 out of 1000 SELECT 'test_cluster_two_shards', 23, toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 871 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), toLowCardinality(23)))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), toLowCardinality(23))))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), toLowCardinality(23)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 872 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toLowCardinality(23)))) Got boring AST Fuzzing step 873 out of 1000 SELECT 'test_cluster_two_shards', 23, toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), toLowCardinality(23)))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), toLowCardinality(23))))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), toLowCardinality(23)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 874 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 875 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 876 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(toUInt256(0), 7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), materialize(toLowCardinality(23))))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0), 7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), materialize(toLowCardinality(23)))))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0), 7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), materialize(toLowCardinality(23))))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 877 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 878 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23))) Got boring AST Fuzzing step 879 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23))) Got boring AST Fuzzing step 880 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 881 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23)) Error on processing query 'SELECT toLowCardinality('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT toLowCardinality('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 882 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), toLowCardinality(23)), 23), currentDatabase(), t), 7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, toLowCardinality(toNullable(23)), 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), toLowCardinality(23)), 23), currentDatabase(), t), 7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, toLowCardinality(toNullable(23)), 23)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), toLowCardinality(23)), 23), currentDatabase(), t), 7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, toLowCardinality(toNullable(23)), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 883 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 PREWHERE cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 PREWHERE cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 PREWHERE cluster(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23, 23), currentDatabase(), t) GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 884 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 885 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), toUInt128(23)), 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 886 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), toUInt128(23)), 23), 23, 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), toUInt128(23)), 23), 23, 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), toUInt128(23)), 23), 23, 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 887 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), toUInt128(23)), 23), 23), 23))) Got boring AST Fuzzing step 888 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 889 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(materialize(' ', 1), 7)), (toFixedString(toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23), 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(materialize(' ', 1), 7)), (toFixedString(toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(materialize(' ', 1), 7)), (toFixedString(toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 890 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), 12), 12), pattern), toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23), 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), 12), 12), pattern), toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), 12), 12), pattern), toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 891 out of 1000 SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23), 23)) Error on processing query 'SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 892 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality('aaaxxxaa\0xxx'), 23), 23), 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality('aaaxxxaa\0xxx'), 23), 23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality('aaaxxxaa\0xxx'), 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 893 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23), 23))) Got boring AST Fuzzing step 894 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23), 23))) Got boring AST Fuzzing step 895 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23, 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23, 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23, 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 896 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23, 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23, 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23, 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 897 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(toLowCardinality(toUInt128(7)))), (toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23), 23)) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(toLowCardinality(toUInt128(7)))), (toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(toLowCardinality(toUInt128(7)))), (toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 898 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23, 23), 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23, 23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(materialize('test_cluster_two_shards'), 23), 23, 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 899 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23))) Query succeeded, using this AST as a start Fuzzing step 900 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23))) Got boring AST Fuzzing step 901 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 902 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 903 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23)) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 904 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 905 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 WHERE toNullable(toLowCardinality('test_cluster_two_shards')) GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 WHERE toNullable(toLowCardinality('test_cluster_two_shards')) GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 WHERE toNullable(toLowCardinality('test_cluster_two_shards')) GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 906 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(23)))) Query succeeded, using this AST as a start Fuzzing step 907 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(if((a >= toLowCardinality(0)) AND 1, 1, 0), 23)))) Error on processing query 'SELECT toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(if((a >= toLowCardinality(0)) AND 1, 1, 0), 23))))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(if((a >= toLowCardinality(0)) AND 1, 1, 0), 23)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 908 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(materialize(7))), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23))) Error on processing query 'SELECT toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(materialize(7))), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(materialize(7))), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 909 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, toNullable(toNullable(23))))) Error on processing query 'SELECT toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, toNullable(toNullable(23)))))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, toNullable(toNullable(23))))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 910 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), toNullable(23)))) Error on processing query 'SELECT toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), toNullable(23))))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), toNullable(23)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 911 out of 1000 SELECT greaterOrEquals(test_alias__fuzz_32, a, 0), toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(23))) Error on processing query 'SELECT greaterOrEquals(test_alias__fuzz_32, a, 0), toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_32' in scope SELECT greaterOrEquals(test_alias__fuzz_32, a, 0), toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 912 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(23)))) Query succeeded, using this AST as a start Fuzzing step 913 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(23)))) Query succeeded, using this AST as a start Fuzzing step 914 out of 1000 SELECT toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_2 WHERE if((a >= 0) AND (c > 220), 1, toLowCardinality(toNullable('test_cluster_two_shards')), 23, 0) GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(toUInt256(23))), toFixedString('test_cluster_two_shards', 23), 23), 23), 23))) Error on processing query 'SELECT toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_2 WHERE if((a >= 0) AND (c > 220), 1, toLowCardinality(toNullable('test_cluster_two_shards')), 23, 0) GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(toUInt256(23))), toFixedString('test_cluster_two_shards', 23), 23), 23), 23)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toNullable('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_2 WHERE if((a >= 0) AND (c > 220), 1, toLowCardinality(toNullable('test_cluster_two_shards')), 23, 0) GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), toLowCardinality(toUInt256(23))), toFixedString('test_cluster_two_shards', 23), 23), 23), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 915 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(23)))) Query succeeded, using this AST as a start Fuzzing step 916 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, toNullable(23)))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, toNullable(23))))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, toNullable(23)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 917 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), materialize(toLowCardinality(23))), toNullable(23)))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), materialize(toLowCardinality(23))), toNullable(23))))': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), materialize(toLowCardinality(23))), toNullable(23)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 918 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 919 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), 23)) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23)), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 920 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(23))) Got boring AST Fuzzing step 921 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), toNullable(sum(if((a >= 0) AND (b != 100) AND equals(c, toLowCardinality(1), 0), 1, 0)) IGNORE NULLS, 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), toNullable(sum(if((a >= 0) AND (b != 100) AND equals(c, toLowCardinality(1), 0), 1, 0)) IGNORE NULLS, 23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), toNullable(sum(if((a >= 0) AND (b != 100) AND equals(c, toLowCardinality(1), 0), 1, 0)) IGNORE NULLS, 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 922 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23)) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 923 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), sum(if((a >= 0) AND (b != toUInt128(100)) AND (c > toUInt256(220)), 1, 0)), 23), toNullable(cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23, currentDatabase(), t), 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), sum(if((a >= 0) AND (b != toUInt128(100)) AND (c > toUInt256(220)), 1, 0)), 23), toNullable(cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23, currentDatabase(), t), 23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), sum(if((a >= 0) AND (b != toUInt128(100)) AND (c > toUInt256(220)), 1, 0)), 23), toNullable(cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23, currentDatabase(), t), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 924 out of 1000 SELECT 'test_cluster_two_shards', 23 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, toNullable(23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, toNullable(23)))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 2]. In scope SELECT 'test_cluster_two_shards', 23 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 925 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), toNullable(23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 926 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 927 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 PREWHERE toNullable(100) GROUP BY GROUPING SETS ( (toLowCardinality(position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern), 7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, toNullable(23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 PREWHERE toNullable(100) GROUP BY GROUPING SETS ((toLowCardinality(position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern), 7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, toNullable(23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 PREWHERE toNullable(100) GROUP BY GROUPING SETS ((toLowCardinality(position(toFixedString(toFixedString('aaaaa\0x', 7), 7), pattern), 7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 928 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 929 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), toNullable(toUInt128(23)))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), toNullable(toUInt128(23))))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), 23), toNullable(toUInt128(23)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 930 out of 1000 SELECT 'test_cluster_two_shards', 23, toNullable(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23)), 23)) Error on processing query 'SELECT 'test_cluster_two_shards', 23, toNullable(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23)), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, toNullable(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23)), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 931 out of 1000 SELECT multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0)), 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23), toNullable(toUInt128(23)))) Error on processing query 'SELECT multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0)), 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23), toNullable(toUInt128(23))))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0)), 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23), toNullable(toUInt128(23)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 932 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 23), 23), 23)) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toLowCardinality('test_cluster_two_shards'), 23), 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 933 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 934 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23, 23), toNullable(23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23, 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23, 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 935 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23, toNullable(23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23, toNullable(23)))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23, toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 936 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 937 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), 23)) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 938 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), 23)) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 939 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23, toNullable(23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23, toNullable(23)))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23, toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 940 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23, 23), 23)) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23, 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23, 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 941 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23, toNullable(23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23, toNullable(23)))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23, toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 942 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 WHERE t__fuzz_36 GROUP BY GROUPING SETS ( (toLowCardinality(countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern), 7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern), 23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 WHERE t__fuzz_36 GROUP BY GROUPING SETS ((toLowCardinality(countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern), 7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern), 23)))': Received from localhost:9000. DB::Exception: Unknown expression identifier 't__fuzz_36' in scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 WHERE t__fuzz_36 GROUP BY GROUPING SETS ((toLowCardinality(countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), pattern), 7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern), 23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 943 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 944 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(23))) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 945 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23, 23), 23)) Error on processing query 'SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23, 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23, 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 946 out of 1000 SELECT 'test_cluster_two_shards', 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 947 out of 1000 SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 948 out of 1000 SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23, toNullable(23))) Error on processing query 'SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23, toNullable(23)))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23, toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 949 out of 1000 SELECT materialize(toLowCardinality(toLowCardinality('test_cluster_two_shards'))), 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), 23)) Error on processing query 'SELECT materialize(toLowCardinality(toLowCardinality('test_cluster_two_shards'))), 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 3]. In scope SELECT materialize(toLowCardinality(toLowCardinality('test_cluster_two_shards'))), 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 950 out of 1000 SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23, toNullable(23)), 23)) Error on processing query 'SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23, toNullable(23)), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23, toNullable(23)), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 951 out of 1000 SELECT materialize(toLowCardinality(materialize('test_cluster_two_shards'))), 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23))) Error on processing query 'SELECT materialize(toLowCardinality(materialize('test_cluster_two_shards'))), 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 3]. In scope SELECT materialize(toLowCardinality(materialize('test_cluster_two_shards'))), 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 952 out of 1000 SELECT materialize('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23), 23), 23), toNullable(23))) Error on processing query 'SELECT materialize('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23), 23), 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 3]. In scope SELECT materialize('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23), 23), 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 953 out of 1000 SELECT materialize('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23))) Error on processing query 'SELECT materialize('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 3]. In scope SELECT materialize('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_3 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 954 out of 1000 EXPLAIN SYNTAX SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt128(100), toLowCardinality(23)), 23), 23), toNullable(23))) Error on processing query 'EXPLAIN SYNTAX SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt128(100), toLowCardinality(23)), 23), 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt128(100), toLowCardinality(23)), 23), 23): While processing SELECT materialize(toLowCardinality('test_cluster_two_shards')), 23, 1 FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt128(100), toLowCardinality(23)), 23), 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 9. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2182b 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActionsNoMakeSet(std::shared_ptr const&, DB::ActionsDAG&, bool) @ 0x0000000033a70990 19. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::ExpressionAnalyzer::analyzeAggregation(DB::ActionsDAG&) @ 0x0000000033a6a366 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x0000000033a64f39 21. ./src/Interpreters/ExpressionAnalyzer.h:324: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x0000000034c6416d 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0a180 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 955 out of 1000 SELECT materialize('test_cluster_two_shards'), 23, toLowCardinality(1) FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 956 out of 1000 SELECT materialize('test_cluster_two_shards'), 23, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23), 23), 23), toNullable(23))) Error on processing query 'SELECT materialize('test_cluster_two_shards'), 23, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23), 23), 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT materialize('test_cluster_two_shards'), 23, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23), 23), 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 957 out of 1000 SELECT materialize('test_cluster_two_shards'), 23, toLowCardinality(1) FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23, 23)) Error on processing query 'SELECT materialize('test_cluster_two_shards'), 23, toLowCardinality(1) FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23, 23))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 3]. In scope SELECT materialize('test_cluster_two_shards'), 23, toLowCardinality(1) FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23, 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 958 out of 1000 SELECT materialize('test_cluster_two_shards'), 23, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 959 out of 1000 SELECT materialize('test_cluster_two_shards'), 23, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(materialize(toLowCardinality(23)))), 23), 23), 23)) Error on processing query 'SELECT materialize('test_cluster_two_shards'), 23, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(materialize(toLowCardinality(23)))), 23), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 3]. In scope SELECT materialize('test_cluster_two_shards'), 23, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(materialize(toLowCardinality(23)))), 23), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 960 out of 1000 SELECT materialize('test_cluster_two_shards'), 23, toLowCardinality(1) FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 961 out of 1000 SELECT materialize('test_cluster_two_shards'), 23, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 962 out of 1000 SELECT materialize(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 'test_cluster_two_shards'), 23, toLowCardinality(toLowCardinality(1)) FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23))) Error on processing query 'SELECT materialize(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 'test_cluster_two_shards'), 23, toLowCardinality(toLowCardinality(1)) FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT materialize(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23)), 'test_cluster_two_shards'), 23, toLowCardinality(toLowCardinality(1)) FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 963 out of 1000 SELECT materialize('test_cluster_two_shards'), 23, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(23))) Got boring AST Fuzzing step 964 out of 1000 SELECT materialize('test_cluster_two_shards'), 23, toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23), 23), 23), toNullable(23))) Error on processing query 'SELECT materialize('test_cluster_two_shards'), 23, toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23), 23), 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT materialize('test_cluster_two_shards'), 23, toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23), 23), 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 965 out of 1000 SELECT materialize('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(materialize(23))), 23), 23), toNullable(23))) Error on processing query 'SELECT materialize('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(materialize(23))), 23), 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT materialize('test_cluster_two_shards'), 23, 1 FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(materialize(23))), 23), 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 966 out of 1000 SELECT materialize('test_cluster_two_shards'), 23, toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23), 23), toNullable(toNullable(23)))) Query succeeded, using this AST as a start Fuzzing step 967 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(toNullable(23)))) Query succeeded, using this AST as a start Fuzzing step 968 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), toNullable(toNullable(23)))) Error on processing query 'SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), toNullable(toNullable(23))))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), toNullable(toNullable(23)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 969 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(toNullable(23)))) Error on processing query 'SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(toNullable(23))))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(toNullable(23)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 970 out of 1000 EXPLAIN PIPELINE header = true SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(toNullable(23)))) Error on processing query 'EXPLAIN PIPELINE header = true SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(toNullable(23))))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 971 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(toNullable(23)))) Got boring AST Fuzzing step 972 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(toLowCardinality(7))), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(toNullable(23)))) Query succeeded, using this AST as a start Fuzzing step 973 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(toNullable(23)))) Query succeeded, using this AST as a start Fuzzing step 974 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, toNullable(toNullable(23)))) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23, toNullable(toNullable(23))))': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 975 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23), toNullable(toNullable(23)))) Got boring AST Fuzzing step 976 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toUInt128(23))), 23), toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 977 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toUInt128(23)), 23), 23)) Error on processing query 'SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toUInt128(23)), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toUInt128(23)), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 978 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt128(23)), sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0)), 23), 23)) Error on processing query 'SELECT toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt128(23)), sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0)), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt128(23)), sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0)), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 979 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toUInt128(23))), 23), toNullable(23))) Error on processing query 'SELECT toLowCardinality(1) FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toUInt128(23))), 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(1) FROM tab__fuzz_0 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toUInt128(23))), 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 980 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt128(23)), toNullable(toUInt128(23))), 23), toNullable(23))) WITH ROLLUP Error on processing query 'SELECT toLowCardinality(1) FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt128(23)), toNullable(toUInt128(23))), 23), toNullable(23))) WITH ROLLUP': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343d54d 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 8. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 981 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toUInt128(23))), 23), toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 982 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toUInt128(23))), 23), toNullable(23))) Got boring AST Fuzzing step 983 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23)), 23), toNullable(23))) Error on processing query 'SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23)), 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23)), 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 984 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23), toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 985 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23), toNullable(23))) Got boring AST Fuzzing step 986 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(toLowCardinality(23))), 23), toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 987 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23), toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 988 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23), 23)) Error on processing query 'SELECT toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 989 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(23)), 23)) Error on processing query 'SELECT toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(23)), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, 23), toLowCardinality(23)), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 990 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23), toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 991 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23), 23)) Error on processing query 'SELECT toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 992 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23), toNullable(23))) Error on processing query 'SELECT toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Positional argument number 7 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ((7), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 993 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt128(23)), 23), toNullable(23))) Error on processing query 'SELECT toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt128(23)), 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt128(23)), 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 994 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23), 23), toNullable(23))) Error on processing query 'SELECT toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23), 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toLowCardinality(1) FROM tab__fuzz_2 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23), 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 995 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23), 23)) Error on processing query 'SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23), 23))': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23), 23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e211b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 996 out of 1000 SELECT toLowCardinality(toUInt128(1)) FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(toUInt256(7))), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt128(23)), 23), toNullable(23))) Error on processing query 'SELECT toLowCardinality(toUInt128(1)) FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(7))), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt128(23)), 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toLowCardinality(toUInt128(1)) FROM tab__fuzz_0 GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(7))), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt128(23)), 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 997 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_3 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toUInt128(23)), 23), toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 998 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ( (toLowCardinality(tab__fuzz_42, 7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt128(23)), 23), toNullable(23))) Error on processing query 'SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(tab__fuzz_42, 7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt128(23)), 23), toNullable(23)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'tab__fuzz_42' in scope SELECT toLowCardinality(1) FROM tab__fuzz_1 GROUP BY GROUPING SETS ((toLowCardinality(tab__fuzz_42, 7)), (toFixedString(toFixedString('test_cluster_two_shards', 23, toUInt128(23)), 23), toNullable(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e214c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 999 out of 1000 SELECT toLowCardinality(1) FROM tab__fuzz_0 GROUP BY GROUPING SETS ( (toLowCardinality(7)), (toFixedString(toFixedString(toFixedString(toLowCardinality(toNullable('test_cluster_two_shards')), 23), toUInt128(23)), 23), toNullable(23))) Query succeeded, using this AST as a start Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 2 out of 1000 SELECT position(haystack, pattern) FROM tab WHERE id = 2 Got boring AST Fuzzing step 3 out of 1000 SELECT position(haystack, pattern) FROM tab WHERE id = 2 Got boring AST Fuzzing step 4 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 5 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 6 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Got boring AST Fuzzing step 7 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE equals(toUInt256(2)) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE equals(toUInt256(2))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE equals(toUInt256(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 8 out of 1000 EXPLAIN PIPELINE compact = true SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 9 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 10 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Got boring AST Fuzzing step 11 out of 1000 EXPLAIN ESTIMATE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE equals(toFixedString(toNullable('test_cluster_two_shards'), 23, 23), id, 2) Error on processing query 'EXPLAIN ESTIMATE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE equals(toFixedString(toNullable('test_cluster_two_shards'), 23, 23), id, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE equals(toFixedString(toNullable('test_cluster_two_shards'), 23, 23), id, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 20. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 21. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 12 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Got boring AST Fuzzing step 13 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 14 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS WHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE sum(if((a >= toUInt128(0)) AND (b != 100) AND (c > 220), 1, 0)) IGNORE NULLS WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 15 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Got boring AST Fuzzing step 16 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Got boring AST Fuzzing step 17 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 18 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 19 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 20 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 21 out of 1000 SELECT position(positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x')), 7), pattern), haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Error on processing query 'SELECT position(positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x')), 7), pattern), haystack, pattern) FROM tab__fuzz_1 WHERE id = 2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT position(positionCaseInsensitive(toFixedString(toLowCardinality(toFixedString('aaaaa\0x')), 7), pattern), haystack, pattern) FROM tab__fuzz_1 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 22 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 23 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 24 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 25 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 26 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 27 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 28 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 29 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 30 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 31 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 32 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 33 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 34 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 35 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 36 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 37 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 38 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(toUInt256(2)) WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 39 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(toUInt256(2)) WHERE id = 2 Got boring AST Fuzzing step 40 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(toUInt256(toUInt128(2))) WHERE id = toUInt256(2) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(toUInt256(toUInt128(2))) WHERE id = toUInt256(2)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(toUInt256(toUInt128(2))) WHERE id = toUInt256(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 41 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(toUInt256(toUInt128(2))) WHERE equals(if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(toLowCardinality(100))) AND (c = 0), 1, 0), id, 2) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(toUInt256(toUInt128(2))) WHERE equals(if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(toLowCardinality(100))) AND (c = 0), 1, 0), id, 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(toUInt256(toUInt128(2))) WHERE equals(if((a >= 0) AND notEquals(b, toFixedString(toLowCardinality(toLowCardinality(23)), materialize(toNullable(23))), toNullable(toLowCardinality(100))) AND (c = 0), 1, 0), id, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 42 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = materialize(toUInt256(2)) WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 43 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = materialize(toUInt256(2)) WHERE id = 2 Got boring AST Fuzzing step 44 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(2) WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 45 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 46 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 47 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 48 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 49 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 50 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 51 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 52 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 53 out of 1000 SELECT position(haystack) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT position(haystack) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 25 (')'): ) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2. Expected one of: token sequence, Dot, token, Comma, IN, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS, identifier. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 54 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 55 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 56 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 57 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 58 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 59 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 60 out of 1000 EXPLAIN `header, description` = true, actions = true, optimize = true SELECT toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))), 23, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Error on processing query 'EXPLAIN `header, description` = true, actions = true, optimize = true SELECT toFixedString(toLowCardinality(toLowCardinality(toUInt128(23)))), 23, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Unknown setting "header, description" for EXPLAIN PLAN query. Supported settings: sorting, optimize, indexes, json, actions, description, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000034980e77 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496d3ee 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 61 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toLowCardinality(toNullable(2)) WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 62 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(toNullable(2)) WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(toNullable(2)) WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(toNullable(2)) WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 63 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toLowCardinality(toNullable(2)) WHERE id = 2 Got boring AST Fuzzing step 64 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 65 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toLowCardinality(2) WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(toLowCardinality(2)) WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(toLowCardinality(2)) WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(toLowCardinality(2)) WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 67 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 68 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toLowCardinality(2) WHERE id = 2 Got boring AST Fuzzing step 69 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toLowCardinality(2) WHERE id = 2 Got boring AST Fuzzing step 70 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toLowCardinality(2) WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 71 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 72 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toLowCardinality(toLowCardinality(2)) WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 73 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toLowCardinality(toLowCardinality(2)) WHERE id = 2 Got boring AST Fuzzing step 74 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toLowCardinality(toLowCardinality(2)) WHERE id = 2 Got boring AST Fuzzing step 75 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 76 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(toLowCardinality(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))), 2)) WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(toLowCardinality(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))), 2)) WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(toLowCardinality(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, materialize(0))), 2)) WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 77 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 78 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) WHERE id = 2 Got boring AST Fuzzing step 79 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) WHERE id = 2 Got boring AST Fuzzing step 80 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(toFixedString(toFixedString(toFixedString(materialize(toLowCardinality('test_cluster_two_shards')), toLowCardinality(23)), toLowCardinality(23)), 23), 2) WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(toFixedString(toFixedString(toFixedString(materialize(toLowCardinality('test_cluster_two_shards')), toLowCardinality(23)), toLowCardinality(23)), 23), 2) WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(toFixedString(toFixedString(toFixedString(materialize(toLowCardinality('test_cluster_two_shards')), toLowCardinality(23)), toLowCardinality(23)), 23), 2) WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 81 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toLowCardinality(2) WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toLowCardinality(2) WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 83 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 EXPLAIN PIPELINE compact = true SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toLowCardinality(2) WHERE id = 2 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toLowCardinality(2) WHERE id = 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 85 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) WHERE id = 2 Got boring AST Fuzzing step 86 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE equals(id, a >= toUInt256(0), toLowCardinality(2)) WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE equals(id, a >= toUInt256(0), toLowCardinality(2)) WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE equals(id, a >= toUInt256(0), toLowCardinality(2)) WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 87 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) WHERE id = 2 Got boring AST Fuzzing step 88 out of 1000 SELECT position(pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(toLowCardinality(2)) WHERE id = 2 Error on processing query 'SELECT position(pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(toLowCardinality(2)) WHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 24 (')'): ) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(toLowCardinality(2)) WHERE id = 2. Expected one of: token sequence, Dot, token, Comma, IN, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS, identifier. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 89 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) WHERE id = 2 Got boring AST Fuzzing step 90 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toLowCardinality(round((sum(multiIf(s IN ('a', 'b'), cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23), 23, currentDatabase(toUInt128(32)), t), 1, 0)) RESPECT NULLS / count()) * 100), 2) WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toLowCardinality(round((sum(multiIf(s IN ('a', 'b'), cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23), 23, currentDatabase(toUInt128(32)), t), 1, 0)) RESPECT NULLS / count()) * 100), 2) WHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toLowCardinality(round((sum(multiIf(s IN ('a', 'b'), cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), toNullable(23)), 23), 23, currentDatabase(toUInt128(32)), t), 1, 0)) RESPECT NULLS / count()) * 100), 2) WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 28. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 Fuzzing step 91 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) WHERE id = 2 Got boring AST Fuzzing step 92 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toLowCardinality(2) WHERE id = 2 Got boring AST Fuzzing step 93 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toLowCardinality(2) WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 94 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toLowCardinality(2) WHERE id = 2 Got boring AST Fuzzing step 95 out of 1000 SELECT cluster(currentDatabase(), test_alias), position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE id = 2 Error on processing query 'SELECT cluster(currentDatabase(), test_alias), position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias' in scope SELECT cluster(currentDatabase(), test_alias), position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 96 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toLowCardinality(2) WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE id = 2 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE id = 2': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 98 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toLowCardinality(2) WHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toLowCardinality(2) WHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toLowCardinality(2) WHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 99 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE equals(id, toLowCardinality(toNullable(toUInt128(23))), toLowCardinality(2)) WHERE id = toUInt256(2) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE equals(id, toLowCardinality(toNullable(toUInt128(23))), toLowCardinality(2)) WHERE id = toUInt256(2)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE equals(id, toLowCardinality(toNullable(toUInt128(23))), toLowCardinality(2)) WHERE id = toUInt256(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 100 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toLowCardinality(toFixedString(toNullable(' '), 1), 2) WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toLowCardinality(toFixedString(toNullable(' '), 1), 2) WHERE id = 2': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toLowCardinality(toFixedString(toNullable(' '), 1), 2) WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 101 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 102 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toLowCardinality(2) WHERE id = 2 Got boring AST Fuzzing step 103 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toLowCardinality(2) WHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 105 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 106 out of 1000 SELECT position(haystack, toNullable(materialize(0)), pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT position(haystack, toNullable(materialize(0)), pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(haystack, toNullable(materialize(0)), pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 107 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 108 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 109 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 110 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 111 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 112 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 113 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 114 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 115 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 116 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 117 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 118 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 119 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE toLowCardinality(toUInt128(1)) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE toLowCardinality(toUInt128(1))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE toLowCardinality(toUInt128(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 120 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 121 out of 1000 SELECT toLowCardinality(toUInt128(1)), position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 122 out of 1000 SELECT toLowCardinality(1), position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 123 out of 1000 SELECT toLowCardinality(1), position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 124 out of 1000 SELECT toLowCardinality(1), position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 125 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 126 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 127 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 128 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 129 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 130 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 131 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 132 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 134 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 135 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 136 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 137 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 138 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 139 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 140 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 141 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 142 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 143 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 144 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 145 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 146 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 147 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 148 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 149 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 150 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 151 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = toUInt128(toUInt128(2)) Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = toUInt128(toUInt128(2)) Got boring AST Fuzzing step 153 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = toUInt128(toUInt128(2)) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = toUInt128(toUInt128(2))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = toUInt128(toUInt128(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 154 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = toUInt128(toUInt128(2)) Got boring AST Fuzzing step 155 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = toUInt128(toUInt128(2)) Got boring AST Fuzzing step 156 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = toUInt128(toUInt128(2)) Query succeeded, using this AST as a start Fuzzing step 157 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = toUInt128(2) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = toUInt128(2)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = toUInt128(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 158 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = toUInt128(2) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = toUInt128(2)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = toUInt128(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 159 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(toUInt128(2)) Query succeeded, using this AST as a start Fuzzing step 160 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE id = toUInt128(toUInt128(2)) Query succeeded, using this AST as a start Fuzzing step 161 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE equals(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23, id, toUInt128(2)) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE equals(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23, id, toUInt128(2))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE equals(toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))), toLowCardinality(23)), 23, id, toUInt128(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 162 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE equals(id, toNullable(toNullable('OK')), toUInt128(toUInt128(2))) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE equals(id, toNullable(toNullable('OK')), toUInt128(toUInt128(2)))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE equals(id, toNullable(toNullable('OK')), toUInt128(toUInt128(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 163 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE id = toUInt128(toUInt128(2)) Got boring AST Fuzzing step 164 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE id = toUInt128(toUInt128(2)) Got boring AST Fuzzing step 165 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) GROUP BY toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toLowCardinality(23)), materialize(23)) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) GROUP BY toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toLowCardinality(23)), materialize(23))': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) GROUP BY toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toLowCardinality(23)), materialize(23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 166 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE id = toUInt128(toUInt128(2)) Got boring AST Fuzzing step 167 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toUInt128(2) WHERE id = toUInt128(toUInt128(2)) Query succeeded, using this AST as a start Fuzzing step 168 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toUInt128(2) WHERE id = toUInt128(toUInt128(2)) Got boring AST Fuzzing step 169 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toUInt128(2) WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 170 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toUInt128(2) WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 171 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toUInt128(2) WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 172 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toUInt128(2) WHERE id = 2 Got boring AST Fuzzing step 173 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toUInt128(2) WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toUInt128(2) WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toUInt128(2) WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 174 out of 1000 SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100), position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100), position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT round((sum(multiIf(s IN ('a', 'b'), 1, 0)) / count()) * 100), position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 175 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toUInt128(2) WHERE id = 2 Got boring AST Fuzzing step 176 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 177 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 178 out of 1000 SELECT if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, materialize(0)), position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, materialize(0)), position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT if((a >= 0) AND (b != materialize(100)) AND (c > 220), 1, materialize(0)), position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 179 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 180 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 181 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = toUInt256(2) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = toUInt256(2)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = toUInt256(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 182 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 183 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 184 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 185 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Got boring AST Fuzzing step 186 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 187 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 189 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 190 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 191 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 192 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 193 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 194 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 195 out of 1000 EXPLAIN ESTIMATE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 196 out of 1000 EXPLAIN ESTIMATE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 197 out of 1000 EXPLAIN ESTIMATE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 198 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 199 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 200 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 201 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 202 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 203 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 204 out of 1000 EXPLAIN QUERY TREE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 205 out of 1000 EXPLAIN QUERY TREE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 206 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 207 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 208 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 209 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 210 out of 1000 EXPLAIN ESTIMATE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 211 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 212 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 213 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 214 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 215 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 216 out of 1000 EXPLAIN ESTIMATE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 217 out of 1000 EXPLAIN ESTIMATE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 218 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 219 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 220 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 221 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 222 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 223 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 224 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 225 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 226 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 227 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 228 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 229 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 230 out of 1000 EXPLAIN ESTIMATE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 231 out of 1000 EXPLAIN ESTIMATE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 232 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 233 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 234 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 235 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = toUInt128(toUInt256(2)) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = toUInt128(toUInt256(2))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = toUInt128(toUInt256(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 236 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 237 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 238 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 239 out of 1000 EXPLAIN ESTIMATE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 240 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 241 out of 1000 EXPLAIN ESTIMATE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 242 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 243 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 244 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 245 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 246 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 247 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 248 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 249 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 250 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 251 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 252 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Got boring AST Fuzzing step 253 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 254 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE id = toUInt128(2) Got boring AST Fuzzing step 255 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 256 out of 1000 SELECT position(sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)), haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Error on processing query 'SELECT position(sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)), haystack, pattern) FROM tab__fuzz_0 WHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT position(sum(if((b != 100) AND (c = toNullable(0)), toNullable(1), 0)), haystack, pattern) FROM tab__fuzz_0 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 257 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 258 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 259 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE equals(id) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE equals(id)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE equals(id). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 260 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 261 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 262 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 263 out of 1000 SELECT position(pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'SELECT position(pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 24 (')'): ) FROM tab__fuzz_3 WHERE id = 2. Expected one of: token sequence, Dot, token, Comma, IN, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS, identifier. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 264 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 265 out of 1000 SELECT countSubstringsCaseInsensitive(haystack, pattern), position(haystack, sum(if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), 1, 0)), pattern) FROM tab__fuzz_0 WHERE id = 2 Error on processing query 'SELECT countSubstringsCaseInsensitive(haystack, pattern), position(haystack, sum(if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), 1, 0)), pattern) FROM tab__fuzz_0 WHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT countSubstringsCaseInsensitive(haystack, pattern), position(haystack, sum(if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), 1, 0)), pattern) FROM tab__fuzz_0 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 266 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 267 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 268 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 269 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 270 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 271 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 272 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 273 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 274 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 275 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 276 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 277 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 278 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 279 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 280 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 281 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 282 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 283 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 284 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 285 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE toUInt128(1) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE toUInt128(1)': Received from localhost:9000. DB::Exception: Illegal type UInt128 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x0000000034e16cd8 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000034e00ca0 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0eea9 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 13. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 18. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 19. ? @ 0x00007fa035818ac3 20. ? @ 0x00007fa0358aa850 Fuzzing step 286 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 287 out of 1000 EXPLAIN QUERY TREE SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 288 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 289 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 290 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 291 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 292 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 293 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 294 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 295 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 296 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 GROUP BY materialize(toLowCardinality(8)), tab__fuzz_0, toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_1 GROUP BY materialize(toLowCardinality(8)), tab__fuzz_0, toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23)': Received from localhost:9000. DB::Exception: Unknown expression identifier 'tab__fuzz_0' in scope SELECT position(haystack, pattern) FROM tab__fuzz_1 GROUP BY materialize(toLowCardinality(8)), tab__fuzz_0, toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(23)), 23), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 297 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE tab__fuzz_2 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression identifier 'tab__fuzz_2' in scope SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 298 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE if((a >= 0) AND (b != toUInt128(100)), 1, 0) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE if((a >= 0) AND (b != toUInt128(100)), 1, 0)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE if((a >= 0) AND (b != toUInt128(100)), 1, 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 299 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT position(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT position(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 300 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 301 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 302 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 303 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 304 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 305 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 306 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 307 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 308 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 309 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 310 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 311 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 312 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 313 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 314 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 315 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 316 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 317 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 318 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE position('aaaaa\0x', 7, pattern) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE position('aaaaa\0x', 7, pattern)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE position('aaaaa\0x', 7, pattern). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 319 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 320 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 321 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 322 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 323 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 324 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 325 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 326 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 327 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 328 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 329 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 330 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 331 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 332 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 333 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 334 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 335 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 336 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 337 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 338 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 339 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 340 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 341 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 342 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 343 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 344 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 345 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 346 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 347 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 348 out of 1000 EXPLAIN QUERY TREE SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 349 out of 1000 EXPLAIN QUERY TREE SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 350 out of 1000 EXPLAIN QUERY TREE SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 351 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 352 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 353 out of 1000 EXPLAIN QUERY TREE SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 354 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 356 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 357 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 358 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 359 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 360 out of 1000 SELECT position(haystack, multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(haystack, multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT position(haystack, multiIf(s IN ('a', 'b'), toNullable(1), toLowCardinality(0)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 361 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 362 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 363 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 364 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 365 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 366 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 367 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 368 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 369 out of 1000 SELECT position(c = 0, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(c = 0, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT position(c = 0, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 370 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 371 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 372 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 373 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 374 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 375 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 377 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 378 out of 1000 SELECT position(haystack, toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(toUInt256(23)), 23), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(haystack, toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(toUInt256(23)), 23), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(haystack, toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(toUInt256(23)), 23), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 379 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 380 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 381 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 382 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 383 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 384 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 385 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 GROUP BY toNullable(220), number / materialize(2), toLowCardinality(toUInt128(23)), t__fuzz_8 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_2 GROUP BY toNullable(220), number / materialize(2), toLowCardinality(toUInt128(23)), t__fuzz_8': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(haystack, pattern) FROM tab__fuzz_2 GROUP BY toNullable(220), number / materialize(2), toLowCardinality(toUInt128(23)), t__fuzz_8. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 386 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 387 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 388 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 389 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 390 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 391 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 392 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 393 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 394 out of 1000 SELECT position(haystack, toLowCardinality(12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(haystack, toLowCardinality(12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(haystack, toLowCardinality(12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 395 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 396 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 398 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 399 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 400 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 401 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 402 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 403 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 404 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 405 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 406 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 407 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 408 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 409 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 410 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 411 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 412 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 413 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 414 out of 1000 SELECT position(haystack) FROM tab__fuzz_2 Error on processing query 'SELECT position(haystack) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 25 (')'): ) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Comma, IN, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS, identifier. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 415 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 416 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 417 out of 1000 EXPLAIN QUERY TREE run_passes = true, passes = true SELECT position(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN QUERY TREE run_passes = true, passes = true SELECT position(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "run_passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 418 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 419 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 420 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 421 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 422 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 423 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 Query succeeded, using this AST as a start Fuzzing step 424 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE equals(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), id, 1) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE equals(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), id, 1)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE equals(toFixedString(toFixedString(toNullable('aaaaa\0x'), 7), 7), id, 1). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 425 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 426 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 427 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 1 Got boring AST Fuzzing step 428 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 429 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 430 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toUInt128(2) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toUInt128(2)': Received from localhost:9000. DB::Exception: Column default.tab__fuzz_1.haystack is not under aggregate function and not in GROUP BY keys. In query SELECT position(haystack, pattern) FROM tab__fuzz_1 GROUP BY 'aaaaa\0x', toUInt128(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033593a48 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 431 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 432 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 433 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 434 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 435 out of 1000 SELECT id = toLowCardinality(2), position(haystack, pattern) FROM tab__fuzz_0 WHERE toFixedString(toNullable('aaaxxxaa\0xxx'), 12) Error on processing query 'SELECT id = toLowCardinality(2), position(haystack, pattern) FROM tab__fuzz_0 WHERE toFixedString(toNullable('aaaxxxaa\0xxx'), 12)': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(12)). In query SELECT id = toLowCardinality(2), position(haystack, pattern) FROM tab__fuzz_0 WHERE toFixedString(toNullable('aaaxxxaa\0xxx'), 12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 436 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 437 out of 1000 SELECT position(haystack) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 25 (')'): ) FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Comma, IN, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS, identifier. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 438 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 439 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 440 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 441 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 442 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 443 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 444 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 445 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 446 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 447 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 448 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 449 out of 1000 SELECT if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0), position(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0), position(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0), position(haystack, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 450 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 451 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 452 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 453 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 454 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 455 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 456 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 457 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 458 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 459 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 460 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 461 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 463 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 464 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 465 out of 1000 SELECT position(pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 24 (')'): ) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Comma, IN, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS, identifier. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 466 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 467 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 468 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 469 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 470 out of 1000 SELECT position(haystack) FROM tab__fuzz_1 Error on processing query 'SELECT position(haystack) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 25 (')'): ) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Comma, IN, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS, identifier. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 471 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 472 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 473 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 474 out of 1000 SELECT position(pattern) FROM tab__fuzz_1 Error on processing query 'SELECT position(pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 24 (')'): ) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Comma, IN, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS, identifier. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 475 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 476 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 477 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 478 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 479 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 480 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 481 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 482 out of 1000 EXPLAIN QUERY TREE SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 483 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 484 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 485 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 486 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 487 out of 1000 EXPLAIN ESTIMATE SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 488 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 489 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 490 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 491 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 492 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 493 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 494 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 495 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 496 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 497 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 498 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 499 out of 1000 EXPLAIN ESTIMATE SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 500 out of 1000 EXPLAIN ESTIMATE SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 501 out of 1000 EXPLAIN ESTIMATE SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 502 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 503 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 504 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 505 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 506 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 507 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 508 out of 1000 EXPLAIN SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 509 out of 1000 EXPLAIN QUERY TREE SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 510 out of 1000 EXPLAIN QUERY TREE SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 511 out of 1000 EXPLAIN QUERY TREE SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 512 out of 1000 EXPLAIN QUERY TREE SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 513 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 515 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 516 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 517 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 518 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 519 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 520 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 522 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 523 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 524 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 525 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 526 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 527 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 528 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 529 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 530 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 531 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 532 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 533 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 534 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 GROUP BY multiply(1000), a >= 0, 4, toNullable('test_cluster_two_shards'), multiIf(s IN ('a', 'b'), 1, toLowCardinality(toLowCardinality(toUInt128(0)))) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_0 GROUP BY multiply(1000), a >= 0, 4, toNullable('test_cluster_two_shards'), multiIf(s IN ('a', 'b'), 1, toLowCardinality(toLowCardinality(toUInt128(0))))': Received from localhost:9000. DB::Exception: Positional argument number 4 is out of bounds. Expected in range [1, 1]. In scope SELECT position(haystack, pattern) FROM tab__fuzz_0 GROUP BY multiply(1000), a >= 0, 4, toNullable('test_cluster_two_shards'), multiIf(s IN ('a', 'b'), 1, toLowCardinality(toLowCardinality(toUInt128(0)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 535 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 536 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 537 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 538 out of 1000 SELECT position(toFixedString('test_cluster_two_shards', 23), 23, 23, haystack, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(toFixedString('test_cluster_two_shards', 23), 23, 23, haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function position doesn't match: passed 5, should be 2 or 3: In scope SELECT position(toFixedString('test_cluster_two_shards', 23), 23, 23, haystack, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96c52e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 539 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 540 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE t__fuzz_18 Error on processing query 'EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE t__fuzz_18': Received from localhost:9000. DB::Exception: Unknown expression identifier 't__fuzz_18' in scope SELECT position(haystack, pattern) FROM tab__fuzz_0 PREWHERE t__fuzz_18. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 13. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 541 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 542 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 543 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 544 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 545 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 546 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 547 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 548 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 549 out of 1000 SELECT position(haystack, position(toFixedString(toNullable('aaaaa\0x'), 7, 7, 7), pattern), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(haystack, position(toFixedString(toNullable('aaaaa\0x'), 7, 7, 7), pattern), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 4, should be 2: In scope SELECT position(haystack, position(toFixedString(toNullable('aaaaa\0x'), 7, 7, 7), pattern), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 550 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 551 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 552 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 553 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 554 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 555 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 556 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 557 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 558 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 559 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE toFixedString('OK', 2) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE toFixedString('OK', 2)': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: FixedString(2). In query SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE toFixedString('OK', 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 560 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 561 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 562 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 563 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 564 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 565 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 566 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 567 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 568 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 569 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 570 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 571 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 572 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 573 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 574 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 575 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 576 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 577 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 578 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 579 out of 1000 SELECT position(haystack, toNullable(8), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT position(haystack, toNullable(8), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(haystack, toNullable(8), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 580 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 581 out of 1000 EXPLAIN QUERY TREE passes = true SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN QUERY TREE passes = true SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 582 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 583 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 584 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 585 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 586 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 587 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 588 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 589 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 590 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 591 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 592 out of 1000 SELECT position(haystack, if((a >= 0) AND 1 AND (c > 220), 1, 0), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, if((a >= 0) AND 1 AND (c > 220), 1, 0), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT position(haystack, if((a >= 0) AND 1 AND (c > 220), 1, 0), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 593 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23)': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: FixedString(23). In query SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 594 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 595 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 596 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 597 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 598 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 599 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 600 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 GROUP BY (a >= toLowCardinality(0)) AND 1, 23, positionCaseInsensitiveUTF8('aaaaa\0x', pattern), nums__fuzz_28 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 GROUP BY (a >= toLowCardinality(0)) AND 1, 23, positionCaseInsensitiveUTF8('aaaaa\0x', pattern), nums__fuzz_28': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 GROUP BY (a >= toLowCardinality(0)) AND 1, 23, positionCaseInsensitiveUTF8('aaaaa\0x', pattern), nums__fuzz_28. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 601 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 602 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 603 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 604 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 605 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 606 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 607 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 608 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 609 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 610 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 611 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 612 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 613 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 614 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 615 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 616 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 617 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 618 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 619 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 620 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 621 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 622 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 623 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 624 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 625 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 626 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 627 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 628 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 629 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 630 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 631 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(7)), pattern) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_1 WHERE positionCaseInsensitive(toFixedString(toLowCardinality('aaaaa\0x'), toUInt256(7)), pattern)': Received from localhost:9000. DB::Exception: Illegal type UInt64 of column positionCaseInsensitive(_CAST('aaaaa\0x'_LowCardinality(FixedString(7)), 'LowCardinality(FixedString(7))'_String), __table1.pattern) for filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000a853ded 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:46: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000003b83783e 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:0: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000003be3875c 6. ./contrib/llvm-project/libcxx/include/string:1499: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&, String&, bool&) @ 0x0000000034c6d231 7. ./build_docker/./src/Planner/Planner.cpp:360: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d275ce 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0f791 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 14. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 19. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 20. ? @ 0x00007fa035818ac3 21. ? @ 0x00007fa0358aa850 Fuzzing step 632 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 633 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 634 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 635 out of 1000 SELECT position(haystack) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 25 (')'): ) FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Comma, IN, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS, identifier. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 636 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE if((a >= 0) AND (b != 100) AND (c = 0), 1, 0) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE if((a >= 0) AND (b != 100) AND (c = 0), 1, 0)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT position(haystack, pattern) FROM tab__fuzz_1 PREWHERE if((a >= 0) AND (b != 100) AND (c = 0), 1, 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 637 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 638 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 639 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 640 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 641 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 642 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 643 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 644 out of 1000 EXPLAIN PIPELINE compact = true SELECT position(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT position(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 645 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 646 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE toLowCardinality(toLowCardinality(toUInt128(23))) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE toLowCardinality(toLowCardinality(toUInt128(23)))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3 PREWHERE toLowCardinality(toLowCardinality(toUInt128(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 647 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 GROUP BY toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), xor(x8, xor(x9, xor(x10, x11))), toLowCardinality(0), a >= toLowCardinality(0) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_0 GROUP BY toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), xor(x8, xor(x9, xor(x10, x11))), toLowCardinality(0), a >= toLowCardinality(0)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT position(haystack, pattern) FROM tab__fuzz_0 GROUP BY toFixedString(toFixedString('test_cluster_two_shards', 23), 23, 23), xor(x8, xor(x9, xor(x10, x11))), toLowCardinality(0), a >= toLowCardinality(0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 648 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 649 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 650 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 651 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 652 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 653 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 654 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 655 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 656 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 657 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 658 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 659 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 660 out of 1000 EXPLAIN ESTIMATE SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 661 out of 1000 EXPLAIN ESTIMATE SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 662 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 663 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 664 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 665 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 666 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 667 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT position(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT position(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('position'): position(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 668 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 669 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 670 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 671 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 672 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 673 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 674 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 675 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 676 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_1 GROUP BY cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23, currentDatabase(), t) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_1 GROUP BY cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT position(haystack, pattern) FROM tab__fuzz_1 GROUP BY cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toLowCardinality(23)), 23, currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 678 out of 1000 SELECT position(haystack, toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type FixedString(7) of argument of function position: In scope SELECT position(haystack, toLowCardinality(toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7))), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 679 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 680 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 681 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 682 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 683 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toLowCardinality(23)), currentDatabase(), t) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toLowCardinality(23)), currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), toLowCardinality(23)), currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 684 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 685 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 686 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 688 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 689 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 690 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 691 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 692 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 693 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 694 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 695 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 696 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 697 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE t__fuzz_25 Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE t__fuzz_25': Received from localhost:9000. DB::Exception: Unknown expression identifier 't__fuzz_25' in scope SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE t__fuzz_25. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 698 out of 1000 EXPLAIN ESTIMATE SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 699 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 700 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 701 out of 1000 EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT position(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('position'): position(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 702 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 703 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 704 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 705 out of 1000 EXPLAIN PIPELINE SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 706 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 707 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 708 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 709 out of 1000 EXPLAIN SYNTAX SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 710 out of 1000 EXPLAIN AST SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 711 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 712 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 713 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE toUInt8((number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(materialize(2))) Error on processing query 'SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE toUInt8((number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(materialize(2)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT position(haystack, pattern) FROM tab__fuzz_0 WHERE toUInt8((number / toUInt256(materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(materialize(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 714 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 715 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 716 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 717 out of 1000 SELECT position(toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23), haystack, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT position(toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23), haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type String of argument of function position: In scope SELECT position(toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23), haystack, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96ce0e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 718 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 719 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 720 out of 1000 SELECT position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 721 out of 1000 SELECT materialize(1), position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 722 out of 1000 SELECT materialize(1), position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 723 out of 1000 SELECT materialize(1), position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT materialize(1), position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT materialize(1), position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 724 out of 1000 SELECT materialize(1), position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT materialize(1), position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT materialize(1), position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 725 out of 1000 SELECT materialize(1), position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 726 out of 1000 SELECT materialize(1), position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 727 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 728 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 729 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true, compact = true SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true, compact = true SELECT 1, position(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 730 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 731 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 732 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 733 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 734 out of 1000 SELECT materialize(1), position(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 735 out of 1000 SELECT materialize(1), position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 736 out of 1000 SELECT materialize(1), position(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 737 out of 1000 SELECT materialize(1), position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 738 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(1), position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(1), position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('materialize'): materialize(1), position(haystack, pattern) FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 739 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 740 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 742 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 743 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 744 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 745 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 746 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 747 out of 1000 SELECT toUInt128(1), position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 748 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 749 out of 1000 SELECT toUInt128(1), position(haystack, pattern) FROM tab__fuzz_0 PREWHERE toFixedString(toFixedString('aaaaa\0x', 7), 7) Error on processing query 'SELECT toUInt128(1), position(haystack, pattern) FROM tab__fuzz_0 PREWHERE toFixedString(toFixedString('aaaaa\0x', 7), 7)': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: FixedString(7). In query SELECT toUInt128(1), position(haystack, pattern) FROM tab__fuzz_0 PREWHERE toFixedString(toFixedString('aaaaa\0x', 7), 7). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 750 out of 1000 SELECT toUInt128(1), position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 751 out of 1000 SELECT toUInt128(1), position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 752 out of 1000 SELECT toUInt128(1), position(round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100)), haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toUInt128(1), position(round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100)), haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT toUInt128(1), position(round((sum(multiIf(s IN ('a', 'b'), materialize(toLowCardinality(1)), 0)) IGNORE NULLS / count()) * materialize(100)), haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 753 out of 1000 EXPLAIN PIPELINE compact = true SELECT toUInt128(1), toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), position(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT toUInt128(1), toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), position(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 754 out of 1000 SELECT toUInt128(1), position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 755 out of 1000 SELECT toUInt128(1), position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 756 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 757 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 758 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 759 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 760 out of 1000 EXPLAIN SYNTAX SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 761 out of 1000 EXPLAIN ESTIMATE SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 762 out of 1000 EXPLAIN SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 763 out of 1000 EXPLAIN SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Got boring AST Fuzzing step 764 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('1'): 1, position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 765 out of 1000 EXPLAIN SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Got boring AST Fuzzing step 766 out of 1000 EXPLAIN AST SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 767 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 768 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Got boring AST Fuzzing step 769 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 770 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 771 out of 1000 EXPLAIN PIPELINE header = true SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE header = true SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 772 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE number / toUInt256(8) Error on processing query 'SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE number / toUInt256(8)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE number / toUInt256(8). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 773 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 774 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toUInt256(2) Got boring AST Fuzzing step 775 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 776 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 777 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 778 out of 1000 EXPLAIN PIPELINE compact = true SELECT toLowCardinality('OK'), 1, countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern), position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT toLowCardinality('OK'), 1, countSubstringsCaseInsensitiveUTF8(toLowCardinality('aaaxxxaa\0xxx'), pattern), position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 779 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 780 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 781 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 782 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 783 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 784 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_0 PREWHERE equals(id, or2, 2) Error on processing query 'SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_0 PREWHERE equals(id, or2, 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'or2' in scope SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_0 PREWHERE equals(id, or2, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 785 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 786 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 787 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 788 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 789 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 790 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 791 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toNullable(2) Query succeeded, using this AST as a start Fuzzing step 792 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(id, or2, toNullable(2)) Error on processing query 'SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(id, or2, toNullable(2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'or2' in scope SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(id, or2, toNullable(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 793 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toNullable(2) WHERE equals(id) Error on processing query 'SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toNullable(2) WHERE equals(id)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toNullable(2) WHERE equals(id). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 794 out of 1000 SELECT toLowCardinality('OK'), toLowCardinality(1), position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toNullable(2) Query succeeded, using this AST as a start Fuzzing step 795 out of 1000 SELECT toLowCardinality('OK'), toLowCardinality(1), position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 796 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 797 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 798 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 799 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 800 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 801 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 802 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 803 out of 1000 EXPLAIN AST SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 804 out of 1000 EXPLAIN AST SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 805 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 806 out of 1000 EXPLAIN SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 807 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 808 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 809 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 810 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 811 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 812 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 813 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 814 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toLowCardinality'): toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 815 out of 1000 SELECT 'OK', 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE position('aaaaa\0x', 7, pattern) Error on processing query 'SELECT 'OK', 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE position('aaaaa\0x', 7, pattern)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT 'OK', 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE position('aaaaa\0x', 7, pattern). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 816 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 817 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 818 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 819 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 820 out of 1000 EXPLAIN SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 821 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toLowCardinality'): toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 822 out of 1000 EXPLAIN SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 823 out of 1000 EXPLAIN SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 824 out of 1000 EXPLAIN SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 825 out of 1000 SELECT toLowCardinality('OK'), 1, position(pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'SELECT toLowCardinality('OK'), 1, position(pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 57 (')'): ) FROM tab__fuzz_2 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Comma, IN, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS, identifier, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 826 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 827 out of 1000 EXPLAIN SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 828 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 829 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 830 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 831 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 832 out of 1000 SELECT toLowCardinality('OK'), 1, position(t__fuzz_1, haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Error on processing query 'SELECT toLowCardinality('OK'), 1, position(t__fuzz_1, haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_1' in scope SELECT toLowCardinality('OK'), 1, position(t__fuzz_1, haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 833 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 834 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 835 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 836 out of 1000 SELECT 'OK', 1, xor(x8, xor(x9, xor(x10, x11))), position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'SELECT 'OK', 1, xor(x8, xor(x9, xor(x10, x11))), position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x8' in scope SELECT 'OK', 1, xor(x8, xor(x9, xor(x10, x11))), position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 837 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 838 out of 1000 SELECT 'OK', 1, position(toFixedString(toNullable('test_cluster_two_shards'), 23), haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Error on processing query 'SELECT 'OK', 1, position(toFixedString(toNullable('test_cluster_two_shards'), 23), haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type String of argument of function position: In scope SELECT 'OK', 1, position(toFixedString(toNullable('test_cluster_two_shards'), 23), haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96ce0e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 839 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 840 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 GROUP BY tab__fuzz_16 Error on processing query 'SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 GROUP BY tab__fuzz_16': Received from localhost:9000. DB::Exception: Unknown expression identifier 'tab__fuzz_16' in scope SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 GROUP BY tab__fuzz_16. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 841 out of 1000 SELECT toLowCardinality('OK'), toUInt256(1), position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 842 out of 1000 SELECT toLowCardinality('OK'), 1, position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 843 out of 1000 SELECT toLowCardinality(toNullable('OK')), 1, position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 844 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 845 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Got boring AST Fuzzing step 846 out of 1000 EXPLAIN AST SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 847 out of 1000 EXPLAIN AST SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Got boring AST Fuzzing step 848 out of 1000 EXPLAIN QUERY TREE SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 849 out of 1000 EXPLAIN ESTIMATE SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'EXPLAIN ESTIMATE SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 850 out of 1000 EXPLAIN AST SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Got boring AST Fuzzing step 851 out of 1000 EXPLAIN AST SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Got boring AST Fuzzing step 852 out of 1000 EXPLAIN AST SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Got boring AST Fuzzing step 853 out of 1000 EXPLAIN QUERY TREE SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 854 out of 1000 EXPLAIN AST SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Got boring AST Fuzzing step 855 out of 1000 EXPLAIN SYNTAX SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: While processing 1, position(haystack, pattern): While processing SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 856 out of 1000 EXPLAIN SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'EXPLAIN SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954fee 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 857 out of 1000 EXPLAIN SYNTAX SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: While processing 1, position(haystack, pattern): While processing SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033224571 11. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b1870d 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000033b3d553 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b20248 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a2f5 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b2ed3c 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000033b1a475 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x0000000033af7075 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x0000000033a7619f 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000033aa1745 20. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x0000000033ab34d2 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000034c2d7cc 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:812: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x0000000034c0d179 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bf8210 24. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000034bead07 25. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034bea511 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000003496e67f 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f156 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000003496f161 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495d6ff 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 Fuzzing step 858 out of 1000 EXPLAIN AST SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Got boring AST Fuzzing step 859 out of 1000 EXPLAIN QUERY TREE SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:212: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000034988cd8 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495a1f8 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 860 out of 1000 EXPLAIN AST SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Got boring AST Fuzzing step 861 out of 1000 EXPLAIN AST SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Got boring AST Fuzzing step 862 out of 1000 EXPLAIN AST SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Got boring AST Fuzzing step 863 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 864 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 865 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Got boring AST Fuzzing step 866 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 867 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Got boring AST Fuzzing step 868 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 869 out of 1000 SELECT 1, position(haystack, intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000)), pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'SELECT 1, position(haystack, intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000)), pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT 1, position(haystack, intDiv(toUInt32(rtime), toUInt256(20)) * materialize(toUInt128(1000)), pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 870 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 871 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Got boring AST Fuzzing step 872 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 WHERE id = toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 873 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 874 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 WHERE id = toUInt256(2) Query succeeded, using this AST as a start Fuzzing step 875 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE equals(2) Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE equals(2)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE equals(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 876 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 877 out of 1000 EXPLAIN SYNTAX SELECT 1, position(haystack) FROM tab__fuzz_1 WHERE id = 2 Error on processing query 'EXPLAIN SYNTAX SELECT 1, position(haystack) FROM tab__fuzz_1 WHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 51 (')'): ) FROM tab__fuzz_1 WHERE id = 2. Expected one of: token sequence, Dot, token, Comma, IN, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS, identifier, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 878 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 879 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 880 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 881 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Got boring AST Fuzzing step 882 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 883 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = toUInt128(2) Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = toUInt128(2)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = toUInt128(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 884 out of 1000 SELECT toNullable(1), position(haystack, pattern) FROM tab__fuzz_3 WHERE id = toUInt128(2) Error on processing query 'SELECT toNullable(1), position(haystack, pattern) FROM tab__fuzz_3 WHERE id = toUInt128(2)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT toNullable(1), position(haystack, pattern) FROM tab__fuzz_3 WHERE id = toUInt128(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 885 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = toUInt128(2) Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = toUInt128(2)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 WHERE id = toUInt128(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 886 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 WHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 887 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 WHERE id = toUInt128(2) Got boring AST Fuzzing step 888 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 889 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 890 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 891 out of 1000 EXPLAIN PIPELINE SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 892 out of 1000 EXPLAIN PIPELINE SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 893 out of 1000 EXPLAIN PIPELINE SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 894 out of 1000 EXPLAIN PIPELINE SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 895 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 896 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 897 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 898 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 899 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 900 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 901 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 902 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 903 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 904 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(id, if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, toNullable(0)), 2) Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(id, if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, toNullable(0)), 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(id, if((a >= 0) AND (b != 100) AND (c = toUInt256(0)), 1, toNullable(0)), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 905 out of 1000 SELECT 1, position(haystack) FROM tab__fuzz_3 Error on processing query 'SELECT 1, position(haystack) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 (')'): ) FROM tab__fuzz_3. Expected one of: token sequence, Dot, token, Comma, IN, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS, identifier, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 906 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 907 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 908 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 909 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE toFixedString('aaaaa\0x', 7) Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE toFixedString('aaaaa\0x', 7)': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: FixedString(7). In query SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE toFixedString('aaaaa\0x', 7). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 910 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 911 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 912 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toNullable(2) GROUP BY positionCaseInsensitive(sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))), 'aaaaa\0x', pattern), t__fuzz_27, number / toUInt256(8) Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toNullable(2) GROUP BY positionCaseInsensitive(sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))), 'aaaaa\0x', pattern), t__fuzz_27, number / toUInt256(8)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toNullable(2) GROUP BY positionCaseInsensitive(sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))), 'aaaaa\0x', pattern), t__fuzz_27, number / toUInt256(8). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 913 out of 1000 EXPLAIN QUERY TREE passes = true SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE divide(number, toLowCardinality(0), toUInt256(8)) Error on processing query 'EXPLAIN QUERY TREE passes = true SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE divide(number, toLowCardinality(0), toUInt256(8))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 914 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 915 out of 1000 SELECT 1, position((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100, haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 1, position((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100, haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT 1, position((sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))) IGNORE NULLS / count() IGNORE NULLS) * 100, haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 25. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 Fuzzing step 916 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 917 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 918 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 919 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 920 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)) Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23))': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: LowCardinality(Nullable(FixedString(23))). In query SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toLowCardinality(23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 921 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 922 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 923 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('1'): 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 924 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 925 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 926 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Got boring AST Fuzzing step 927 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function position: In scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 928 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 929 out of 1000 SELECT 1, position(pattern) FROM tab__fuzz_0 Error on processing query 'SELECT 1, position(pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (')'): ) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Comma, IN, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS, identifier, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 930 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 931 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 932 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 933 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 934 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE toUInt8((number / 256) % 2) Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE toUInt8((number / 256) % 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_1 PREWHERE toUInt8((number / 256) % 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 935 out of 1000 SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 GROUP BY nums__fuzz_28, toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toUInt256(23))), 23), x3 AND x4 Error on processing query 'SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 GROUP BY nums__fuzz_28, toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toUInt256(23))), 23), x3 AND x4': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_28' in scope SELECT 1, position(haystack, pattern) FROM tab__fuzz_2 GROUP BY nums__fuzz_28, toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toNullable(toUInt256(23))), 23), x3 AND x4. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 936 out of 1000 SELECT 1 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 937 out of 1000 SELECT 1 FROM tab__fuzz_3 WHERE sum(if((a >= 0) AND 1 AND greater(c, toFixedString(toFixedString(materialize('test_cluster_two_shards'), toUInt128(23)), 23), toNullable(220)), 1, 0)) Error on processing query 'SELECT 1 FROM tab__fuzz_3 WHERE sum(if((a >= 0) AND 1 AND greater(c, toFixedString(toFixedString(materialize('test_cluster_two_shards'), toUInt128(23)), 23), toNullable(220)), 1, 0))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 1 FROM tab__fuzz_3 WHERE sum(if((a >= 0) AND 1 AND greater(c, toFixedString(toFixedString(materialize('test_cluster_two_shards'), toUInt128(23)), 23), toNullable(220)), 1, 0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 938 out of 1000 SELECT sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0)), 1 FROM tab__fuzz_3 GROUP BY toFixedString(12), (a >= 0) AND (c > 220) Error on processing query 'SELECT sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0)), 1 FROM tab__fuzz_3 GROUP BY toFixedString(12), (a >= 0) AND (c > 220)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT sum(if((a >= 0) AND (b != toUInt256(toFixedString('2022-01-01', 10), 100)) AND 1 AND (c > 220), toUInt128(1), 0)), 1 FROM tab__fuzz_3 GROUP BY toFixedString(12), (a >= 0) AND (c > 220). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 939 out of 1000 SELECT 1 FROM tab__fuzz_3 Got boring AST Fuzzing step 940 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 941 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_1 WHERE toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 942 out of 1000 EXPLAIN QUERY TREE dump_ast = true SELECT toUInt128(1) FROM tab__fuzz_3 WHERE toLowCardinality(7) Error on processing query 'EXPLAIN QUERY TREE dump_ast = true SELECT toUInt128(1) FROM tab__fuzz_3 WHERE toLowCardinality(7)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "dump_ast" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 943 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_1 WHERE toLowCardinality(7) Got boring AST Fuzzing step 944 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_1 WHERE toLowCardinality(7) Got boring AST Fuzzing step 945 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_0 WHERE toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 946 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_0 WHERE toLowCardinality(7) Got boring AST Fuzzing step 947 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_0 WHERE toLowCardinality(7) Got boring AST Fuzzing step 948 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_0 WHERE toLowCardinality(7) Got boring AST Fuzzing step 949 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_2 WHERE toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 950 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_2 WHERE toLowCardinality(7) Got boring AST Fuzzing step 951 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_3 WHERE toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 952 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_2 WHERE toLowCardinality(7) Query succeeded, using this AST as a start Fuzzing step 953 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_2 WHERE toLowCardinality(7) Got boring AST Fuzzing step 954 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 955 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_3 Got boring AST Fuzzing step 956 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_3 Got boring AST Fuzzing step 957 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 958 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_2 Got boring AST Fuzzing step 959 out of 1000 SELECT toUInt128(if(1 AND (c > 220), toUInt256(1), 0), 1) FROM tab__fuzz_3 Error on processing query 'SELECT toUInt128(if(1 AND (c > 220), toUInt256(1), 0), 1) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT toUInt128(if(1 AND (c > 220), toUInt256(1), 0), 1) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 960 out of 1000 EXPLAIN PIPELINE SELECT toUInt128(1) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 961 out of 1000 EXPLAIN SELECT toUInt128(1) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 962 out of 1000 EXPLAIN QUERY TREE SELECT toUInt128(1) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 963 out of 1000 EXPLAIN AST SELECT toUInt128(1) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 964 out of 1000 EXPLAIN AST SELECT toUInt128(1) FROM tab__fuzz_3 Got boring AST Fuzzing step 965 out of 1000 EXPLAIN AST SELECT toUInt128(1) FROM tab__fuzz_3 Got boring AST Fuzzing step 966 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_0 WHERE toUInt8(divide((intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)), number, 8) % 2) Error on processing query 'SELECT toUInt128(1) FROM tab__fuzz_0 WHERE toUInt8(divide((intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)), number, 8) % 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT toUInt128(1) FROM tab__fuzz_0 WHERE toUInt8(divide((intDiv(toUInt32(rtime), 20) * 20) * toNullable(materialize(1000)), number, 8) % 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 967 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 968 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 969 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 970 out of 1000 SELECT toUInt128(1) FROM tab__fuzz_2 PREWHERE toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), toUInt128(12)), 12) Error on processing query 'SELECT toUInt128(1) FROM tab__fuzz_2 PREWHERE toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), toUInt128(12)), 12)': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: Nullable(FixedString(12)). In query SELECT toUInt128(1) FROM tab__fuzz_2 PREWHERE toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), toUInt128(12)), 12). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 971 out of 1000 SELECT 1 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 972 out of 1000 SELECT 1 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 973 out of 1000 SELECT materialize(1) FROM tab__fuzz_2 WHERE number / 2 Error on processing query 'SELECT materialize(1) FROM tab__fuzz_2 WHERE number / 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT materialize(1) FROM tab__fuzz_2 WHERE number / 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 974 out of 1000 SELECT 1 FROM tab__fuzz_2 Got boring AST Fuzzing step 975 out of 1000 SELECT 1 FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 976 out of 1000 SELECT 1 FROM tab__fuzz_1 Got boring AST Fuzzing step 977 out of 1000 SELECT 1 FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 978 out of 1000 SELECT 1 FROM tab__fuzz_3 Query succeeded, using this AST as a start Fuzzing step 979 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY toNullable(materialize(toNullable(materialize(1)))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23), 23) Query succeeded, using this AST as a start Fuzzing step 980 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY toNullable(materialize(toNullable(materialize(1)))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), materialize(23)), 23) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY toNullable(materialize(toNullable(materialize(1)))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), materialize(23)), 23)': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT 1 FROM tab__fuzz_2 GROUP BY toNullable(materialize(toNullable(materialize(1)))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), materialize(23)), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 981 out of 1000 SELECT 1 FROM tab__fuzz_1 GROUP BY toNullable(materialize(toNullable(materialize(sum(if((b != 100) AND (c > 220), 1, toNullable(0))) IGNORE NULLS, 1)))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23), 23) Error on processing query 'SELECT 1 FROM tab__fuzz_1 GROUP BY toNullable(materialize(toNullable(materialize(sum(if((b != 100) AND (c > 220), 1, toNullable(0))) IGNORE NULLS, 1)))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23), 23)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT 1 FROM tab__fuzz_1 GROUP BY toNullable(materialize(toNullable(materialize(sum(if((b != 100) AND (c > 220), 1, toNullable(0))) IGNORE NULLS, 1)))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 27. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 Fuzzing step 982 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY toNullable(materialize(toNullable(materialize(1)))), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23), 23) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY toNullable(materialize(toNullable(materialize(1)))), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23), 23)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT 1 FROM tab__fuzz_2 GROUP BY toNullable(materialize(toNullable(materialize(1)))), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 983 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY toNullable(materialize(toNullable(materialize(1)))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23), 23) Query succeeded, using this AST as a start Fuzzing step 984 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY toNullable(toNullable(materialize(1))), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, pattern), toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23), 23 Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY toNullable(toNullable(materialize(1))), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, pattern), toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23), 23': Received from localhost:9000. DB::Exception: Positional argument number 23 is out of bounds. Expected in range [1, 1]. In scope SELECT 1 FROM tab__fuzz_0 GROUP BY toNullable(toNullable(materialize(1))), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, pattern), toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23), 23. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 985 out of 1000 EXPLAIN PIPELINE compact = true SELECT 1 FROM tab__fuzz_0 GROUP BY toNullable(materialize(toNullable(materialize(1)))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern), toFixedString(toFixedString(materialize('test_cluster_two_shards', toLowCardinality(23)), 23), 23) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 1 FROM tab__fuzz_0 GROUP BY toNullable(materialize(toNullable(materialize(1)))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern), toFixedString(toFixedString(materialize('test_cluster_two_shards', toLowCardinality(23)), 23), 23)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 986 out of 1000 SELECT 1 FROM tab__fuzz_0 GROUP BY toNullable(materialize(toNullable(materialize(1)))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), 12), pattern), toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23, 23) Error on processing query 'SELECT 1 FROM tab__fuzz_0 GROUP BY toNullable(materialize(toNullable(materialize(1)))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), 12), pattern), toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23, 23)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 1 FROM tab__fuzz_0 GROUP BY toNullable(materialize(toNullable(materialize(1)))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), 12), pattern), toFixedString(materialize(toFixedString('test_cluster_two_shards', toLowCardinality(23))), 23, 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 987 out of 1000 EXPLAIN ESTIMATE SELECT 1 FROM tab__fuzz_0 GROUP BY materialize(toNullable(materialize(1))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23) Query succeeded, using this AST as a start Fuzzing step 988 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY materialize(toNullable(materialize(1))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23) Query succeeded, using this AST as a start Fuzzing step 989 out of 1000 SELECT 1 FROM tab__fuzz_2 GROUP BY materialize(materialize(1)), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23) Error on processing query 'SELECT 1 FROM tab__fuzz_2 GROUP BY materialize(materialize(1)), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT 1 FROM tab__fuzz_2 GROUP BY materialize(materialize(1)), countSubstringsCaseInsensitiveUTF8(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 990 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY materialize(toNullable(materialize(1))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23) Got boring AST Fuzzing step 991 out of 1000 EXPLAIN QUERY TREE SELECT 1 FROM tab__fuzz_0 GROUP BY materialize(toNullable(materialize(1))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23) Query succeeded, using this AST as a start Fuzzing step 992 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY materialize(toNullable(materialize(1))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23) Query succeeded, using this AST as a start Fuzzing step 993 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY materialize(toNullable(materialize(1))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23) Got boring AST Fuzzing step 994 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY materialize(toNullable(materialize(1))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23) Got boring AST Fuzzing step 995 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_0 GROUP BY materialize(toNullable(materialize(1))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1 FROM tab__fuzz_0 GROUP BY materialize(toNullable(materialize(1))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 45 ('1'): 1 FROM tab__fuzz_0 GROUP BY materialize(toNullable(materialize(1))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 996 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY materialize(toNullable(materialize(1))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23) Got boring AST Fuzzing step 997 out of 1000 EXPLAIN SYNTAX SELECT 1 FROM tab__fuzz_0 GROUP BY materialize(toNullable(materialize(1))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23) Got boring AST Fuzzing step 998 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY materialize(toNullable(materialize(1))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23) Query succeeded, using this AST as a start Fuzzing step 999 out of 1000 EXPLAIN SELECT 1 FROM tab__fuzz_0 GROUP BY materialize(toNullable(materialize(1))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12), pattern), toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23) Got boring AST Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab WHERE id = 2 Got boring AST Fuzzing step 2 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 GROUP BY toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(toUInt128(23)))), toLowCardinality(23)), toFixedString((a >= materialize(0)) AND (b != toLowCardinality(100)), toFixedString(toNullable('aaaaa\0x'), 7), 7, toNullable(7)), position(toFixedString('aaaaa\0x', toUInt128(7)), pattern) Error on processing query 'SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 GROUP BY toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(toUInt128(23)))), toLowCardinality(23)), toFixedString((a >= materialize(0)) AND (b != toLowCardinality(100)), toFixedString(toNullable('aaaaa\0x'), 7), 7, toNullable(7)), position(toFixedString('aaaaa\0x', toUInt128(7)), pattern)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 GROUP BY toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23, toLowCardinality(toLowCardinality(toUInt128(23)))), toLowCardinality(23)), toFixedString((a >= materialize(0)) AND (b != toLowCardinality(100)), toFixedString(toNullable('aaaaa\0x'), 7), 7, toNullable(7)), position(toFixedString('aaaaa\0x', toUInt128(7)), pattern). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 4 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 5 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('positionCaseInsensitive'): positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 6 out of 1000 SELECT positionCaseInsensitive(sum(if((a >= toNullable(0)) AND (b != materialize(100)) AND (c > 220), 1, 0)), haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Error on processing query 'SELECT positionCaseInsensitive(sum(if((a >= toNullable(0)) AND (b != materialize(100)) AND (c > 220), 1, 0)), haystack, pattern) FROM tab__fuzz_0 WHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT positionCaseInsensitive(sum(if((a >= toNullable(0)) AND (b != materialize(100)) AND (c > 220), 1, 0)), haystack, pattern) FROM tab__fuzz_0 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 7 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 8 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 9 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 10 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 11 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 12 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 13 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 14 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 15 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 16 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 17 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 18 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 19 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 20 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 21 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 22 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 23 out of 1000 EXPLAIN SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 24 out of 1000 EXPLAIN SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 25 out of 1000 EXPLAIN SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 26 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 27 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 28 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 29 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 30 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 31 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 32 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 33 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 34 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 35 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 36 out of 1000 EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('positionCaseInsensitive'): positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 37 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 38 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 39 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 40 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 41 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 42 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('positionCaseInsensitive'): positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 43 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 44 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 45 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 46 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 47 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 48 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 49 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 50 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 51 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 EXPLAIN SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 53 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 54 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 55 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 57 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 58 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 59 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 60 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 61 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 62 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 63 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 64 out of 1000 EXPLAIN AST SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 65 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 67 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 68 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2 Error on processing query 'SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 69 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 70 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 71 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE id = 2 Got boring AST Fuzzing step 72 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 73 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 WHERE id = 2 Got boring AST Fuzzing step 74 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 75 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 WHERE id = toNullable(2) Query succeeded, using this AST as a start Fuzzing step 76 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 77 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 78 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 79 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 80 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 81 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 82 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 83 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 86 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 87 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 88 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 89 out of 1000 SELECT xor(x4, x5), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT xor(x4, x5), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x4' in scope SELECT xor(x4, x5), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 90 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 91 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 92 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 93 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 94 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 96 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 97 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 98 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 99 out of 1000 SELECT positionCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, 12), haystack, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT positionCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, 12), haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitive(toFixedString(toFixedString(toNullable('aaaxxxaa\0xxx'), 12), 12, 12), haystack, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 100 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 101 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 102 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 103 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 105 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 106 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 107 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 108 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('positionCaseInsensitive'): positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 109 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 110 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 111 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 112 out of 1000 EXPLAIN SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 113 out of 1000 EXPLAIN SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 114 out of 1000 EXPLAIN SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 115 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 117 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 118 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 119 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 120 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 121 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 122 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 123 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 124 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 125 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 126 out of 1000 SELECT version_pair[materialize(sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), materialize(toUInt256(0)))) IGNORE NULLS, 1)], positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 GROUP BY multiply(intDiv(toUInt32(rtime), materialize(20)) * materialize(toLowCardinality(20)), toFixedString(' ', 1), 1000), materialize(toNullable(toNullable(1))) Error on processing query 'SELECT version_pair[materialize(sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), materialize(toUInt256(0)))) IGNORE NULLS, 1)], positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 GROUP BY multiply(intDiv(toUInt32(rtime), materialize(20)) * materialize(toLowCardinality(20)), toFixedString(' ', 1), 1000), materialize(toNullable(toNullable(1)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT version_pair[materialize(sum(multiIf(s IN ('a', 'b'), materialize(toUInt256(1)), materialize(toUInt256(0)))) IGNORE NULLS, 1)], positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 GROUP BY multiply(intDiv(toUInt32(rtime), materialize(20)) * materialize(toLowCardinality(20)), toFixedString(' ', 1), 1000), materialize(toNullable(toNullable(1))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 127 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitive: In scope SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9785de 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 128 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 129 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 130 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 131 out of 1000 SELECT positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 132 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 134 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23)': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: FixedString(23). In query SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 WHERE toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 135 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 136 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 GROUP BY countSubstringsCaseInsensitive(pattern), positionCaseInsensitive(toFixedString('aaaaa\0x', toLowCardinality(7), 7), pattern) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 GROUP BY countSubstringsCaseInsensitive(pattern), positionCaseInsensitive(toFixedString('aaaaa\0x', toLowCardinality(7), 7), pattern)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 GROUP BY countS. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 137 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 138 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 139 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 141 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 142 out of 1000 SELECT materialize(materialize(sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))), toUInt128(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), 1))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT materialize(materialize(sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))), toUInt128(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), 1))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT materialize(materialize(sum(if((a >= 0) AND notEquals(b) AND (c = 0), 1, materialize(0))), toUInt128(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), 1))), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 143 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 144 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 145 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern), positionCaseInsensitive(haystack) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern), positionCaseInsensitive(haystack) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern), positionCaseInsensitive(haystack) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 146 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 147 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable(23), 23), toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable(23), 23), toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: toFixedString is only implemented for types String and FixedString: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable(23), 23), toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62b17c 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 148 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 149 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 150 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 151 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 153 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 154 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 155 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 156 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 157 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 158 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 159 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 160 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 161 out of 1000 EXPLAIN PIPELINE header = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN PIPELINE header = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 162 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 163 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), pattern), positionCaseInsensitive(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23), nums__fuzz_41, 23), currentDatabase(materialize(toLowCardinality(1))), t), haystack, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), pattern), positionCaseInsensitive(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23), nums__fuzz_41, 23), currentDatabase(materialize(toLowCardinality(1))), t), haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), pattern), positionCaseInsensitive(cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(23), nums__fuzz_41, 23), currentDatabase(materialize(toLowCardinality(1))), t), haystack, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 165 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 166 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), positionCaseInsensitive(pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), positionCaseInsensitive(pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), positionCaseInsensitive(pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b977fee 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 167 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 168 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 169 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 170 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12)), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12)), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12)), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 171 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 172 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 173 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 12)), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 12)), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt256'. Expected 1 argument, got 2 arguments: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 12)), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000089618ce 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000893c835 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 174 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12, pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12, pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12, pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 175 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString((number / 2) % 2, toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString((number / 2) % 2, toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString((number / 2) % 2, toFixedString('aaaxxxaa\0xxx', 12), 12), pattern), positionCaseInsensitive(haystack, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 176 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 177 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 178 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 179 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE (sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(materialize(toLowCardinality(materialize(' '), toNullable(1))), 100) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE (sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(materialize(toLowCardinality(materialize(' '), toNullable(1))), 100)': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 WHERE (sum(multiIf(s IN materialize(('a', 'b')), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(materialize(toLowCardinality(materialize(' '), toNullable(1))), 100). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 180 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), toLowCardinality(12)), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), toLowCardinality(12)), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), toLowCardinality(12)), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 181 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 182 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 183 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 184 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 185 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 186 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 187 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 188 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 189 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 190 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 191 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), sum(materialize(toUInt128(2)), if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, toLowCardinality(0))) RESPECT NULLS, toLowCardinality(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), sum(materialize(toUInt128(2)), if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, toLowCardinality(0))) RESPECT NULLS, toLowCardinality(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), sum(materialize(toUInt128(2)), if((a >= toLowCardinality(0)) AND (b != 100) AND (c = 0), 1, toLowCardinality(0))) RESPECT NULLS, toLowCardinality(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 24. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 Fuzzing step 192 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 193 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 194 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 195 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 196 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 197 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 198 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 199 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 200 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 201 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 202 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 203 out of 1000 SELECT (x1 AND x2) AND (x3 AND x4), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT (x1 AND x2) AND (x3 AND x4), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT (x1 AND x2) AND (x3 AND x4), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 204 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 205 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(toNullable(12))), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(toNullable(12))), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(toNullable(12))), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 206 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 207 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 208 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12)), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12)), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 209 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 210 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 211 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 212 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 213 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 214 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 215 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 216 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 217 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 218 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 219 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 220 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 GROUP BY materialize(toLowCardinality('aaaxxxaa\0xxx')), toFixedString('test_cluster_two_shards', 23) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 GROUP BY materialize(toLowCardinality('aaaxxxaa\0xxx')), toFixedString('test_cluster_two_shards', 23)': Received from localhost:9000. DB::Exception: Column default.tab__fuzz_1.pattern is not under aggregate function and not in GROUP BY keys. In query SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 GROUP BY materialize(toLowCardinality('aaaxxxaa\0xxx')), toFixedString('test_cluster_two_shards', 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033593a48 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 221 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 222 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 223 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 224 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 225 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 226 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 227 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 228 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 229 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 230 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 231 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 232 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 233 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 234 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 235 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 236 out of 1000 SELECT position(toFixedString('aaaaa\0x', 7), toLowCardinality(toNullable(7)), pattern), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT position(toFixedString('aaaaa\0x', 7), toLowCardinality(toNullable(7)), pattern), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function position: In scope SELECT position(toFixedString('aaaaa\0x', 7), toLowCardinality(toNullable(7)), pattern), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 237 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 238 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(materialize(toLowCardinality('aaaxxxaa\0xxx')), 12), 12), pattern) FROM tab__fuzz_2 WHERE multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(materialize(toLowCardinality('aaaxxxaa\0xxx')), 12), 12), pattern) FROM tab__fuzz_2 WHERE multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0))': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(materialize(toLowCardinality('aaaxxxaa\0xxx')), 12), 12), pattern) FROM tab__fuzz_2 WHERE multiIf(s IN ('a', 'b'), materialize(toUInt256(cluster('test_cluster_two_shards', currentDatabase(), t), 1)), toUInt128(0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 239 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 240 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 241 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 242 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12))), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 243 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12)), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12)), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toNullable(12)), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 244 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 245 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 246 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 247 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 248 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 249 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 250 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 251 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 252 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 253 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 254 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 255 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 256 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 257 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 258 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 GROUP BY toUInt8((number / 256) % 2) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 GROUP BY toUInt8((number / 256) % 2)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 GROUP BY toUInt8((number / 256) % 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 259 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 260 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 261 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 262 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 263 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 264 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 265 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 266 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE toFixedString(toFixedString(toFixedString('aaaaa\0x', 7, 7), 7), 7) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE toFixedString(toFixedString(toFixedString('aaaaa\0x', 7, 7), 7), 7)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 WHERE toFixedString(toFixedString(toFixedString('aaaaa\0x', 7, 7), 7), 7). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 267 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 268 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 269 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(toUInt256(12))), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 270 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 271 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 272 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12))), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12))), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12))), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 273 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 274 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 275 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), (number / 128) % 2, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), (number / 128) % 2, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), (number / 128) % 2, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 276 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 277 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 278 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 279 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 280 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 281 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 282 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 283 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 284 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(sum(if((b != 100) AND equals(c, c = toUInt256(0), 0), materialize(toUInt128(1)), 0)), 'aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(sum(if((b != 100) AND equals(c, c = toUInt256(0), 0), materialize(toUInt128(1)), 0)), 'aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(sum(if((b != 100) AND equals(c, c = toUInt256(0), 0), materialize(toUInt128(1)), 0)), 'aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 285 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 GROUP BY number / 8, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(100)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 GROUP BY number / 8, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(100))': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 GROUP BY number / 8, round((sum(multiIf(s IN ('a', 'b'), 1, 0)) IGNORE NULLS / count() IGNORE NULLS) * toLowCardinality(100)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 286 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 287 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 288 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 289 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 290 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 291 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 292 out of 1000 EXPLAIN AST graph = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN AST graph = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "graph" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495f93b 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 293 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), materialize(toUInt128(12))), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), materialize(toUInt128(12))), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), materialize(toUInt128(12))), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 294 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 295 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 296 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 297 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 298 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_1 PREWHERE toFixedString(toFixedString('aaaaa\0x', 7, toLowCardinality(7)), 7) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_1 PREWHERE toFixedString(toFixedString('aaaaa\0x', 7, toLowCardinality(7)), 7)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_1 PREWHERE toFixedString(toFixedString('aaaaa\0x', 7, toLowCardinality(7)), 7). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 299 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, toLowCardinality(12)), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, toLowCardinality(12)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, toLowCardinality(12)), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 300 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 301 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 302 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 303 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 304 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 305 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 306 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), toLowCardinality(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), toLowCardinality(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), toLowCardinality(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 307 out of 1000 EXPLAIN PIPELINE header = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN PIPELINE header = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 308 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 309 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), t__fuzz_28, toLowCardinality(12)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), t__fuzz_28, toLowCardinality(12)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_28' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), t__fuzz_28, toLowCardinality(12)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 310 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 311 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 312 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 313 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 314 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 315 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 316 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 317 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 318 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 319 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 320 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 321 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 322 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, toLowCardinality(12)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, toLowCardinality(12)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, toLowCardinality(12)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 323 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 324 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 325 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), toLowCardinality(12)), pattern) FROM tab__fuzz_2 PREWHERE positionCaseInsensitive(pattern) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), toLowCardinality(12)), pattern) FROM tab__fuzz_2 PREWHERE positionCaseInsensitive(pattern)': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitive doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), toLowCardinality(12)), pattern) FROM tab__fuzz_2 PREWHERE positionCaseInsensitive(pattern). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b977fee 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 326 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 327 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 328 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 329 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, toLowCardinality(12)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, toLowCardinality(12)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, toLowCardinality(12)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 330 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 331 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 332 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 333 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 334 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 335 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 336 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 337 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 338 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 339 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 340 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 341 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 342 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 343 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 344 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 345 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 346 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 347 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 348 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 349 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 350 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 351 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 352 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 353 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 GROUP BY sum(if((b != 100) AND equals(c, c = toUInt256(0), 0), materialize(toUInt128(1)), 0)), t__fuzz_19, toLowCardinality(toLowCardinality('aaaaa\0x')), toUInt8(sum(if((a >= 0) AND notEquals(toFixedString('2022-01-01', 10), 100) AND 1 AND (c > 220), toUInt128(1), 0)), (number / 8) % toUInt128(materialize(2))), number % 2 Error on processing query 'EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 GROUP BY sum(if((b != 100) AND equals(c, c = toUInt256(0), 0), materialize(toUInt128(1)), 0)), t__fuzz_19, toLowCardinality(toLowCardinality('aaaaa\0x')), toUInt8(sum(if((a >= 0) AND notEquals(toFixedString('2022-01-01', 10), 100) AND 1 AND (c > 220), toUInt128(1), 0)), (number / 8) % toUInt128(materialize(2))), number % 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 GROUP BY sum(if((b != 100) AND equals(c, c = toUInt256(0), 0), materialize(toUInt128(1)), 0)), t__fuzz_19, toLowCardinality(toLowCardinality('aaaaa\0x')), toUInt8(sum(if((a >= 0) AND (toFixedString('2022-01-01', 10) != 100) AND 1 AND (c > 220), toUInt128(1), 0)), (number / 8) % toUInt128(materialize(2))), number % 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 25. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 26. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 354 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 356 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT 'test_cluster_two_shards', toLowCardinality(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', toLowCardinality(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 357 out of 1000 SELECT if(1, toLowCardinality(0)), 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT if(1, toLowCardinality(0)), 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope SELECT if(1, toLowCardinality(0)), 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 358 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, toLowCardinality(12)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, toLowCardinality(12)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, toLowCardinality(12)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 359 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 360 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 361 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 362 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 363 out of 1000 EXPLAIN `header, description` = true, json = true SELECT 'test_cluster_two_shards', toLowCardinality(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN `header, description` = true, json = true SELECT 'test_cluster_two_shards', toLowCardinality(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown setting "header, description" for EXPLAIN PLAN query. Supported settings: sorting, optimize, indexes, json, actions, description, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000034980e77 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496d3ee 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 364 out of 1000 SELECT toNullable('test_cluster_two_shards'), toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(toNullable(12))), 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT toNullable('test_cluster_two_shards'), toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(toNullable(12))), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT toNullable('test_cluster_two_shards'), toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(toNullable(12))), 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 365 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 366 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toFixedString('aaaaa\0x', toUInt256(7))), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toFixedString('aaaaa\0x', toUInt256(7))), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toFixedString('aaaaa\0x', toUInt256(7))), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 367 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 368 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), version_pair[materialize(1)], pattern) FROM tab__fuzz_1 Error on processing query 'SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), version_pair[materialize(1)], pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), version_pair[materialize(1)], pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 369 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 370 out of 1000 SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(id = toUInt128(2), toFixedString('aaaxxxaa\0xxx', materialize(12)), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(id = toUInt128(2), toFixedString('aaaxxxaa\0xxx', materialize(12)), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT 'test_cluster_two_shards', toLowCardinality(toNullable(23)), countSubstringsCaseInsensitiveUTF8(toFixedString(id = toUInt128(2), toFixedString('aaaxxxaa\0xxx', materialize(12)), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 371 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 372 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 373 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 374 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 375 out of 1000 SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0)), 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0)), 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', sum(if(greaterOrEquals(a) AND (b != 100) AND (c = 0), toNullable(1), 0)), 12), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 21. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 24. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 27. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 Fuzzing step 376 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 377 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 378 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 379 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 380 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 381 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), materialize(toUInt256(12))), number / 8, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), materialize(toUInt256(12))), number / 8, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), materialize(toUInt256(12))), number / 8, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 382 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 383 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 384 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 385 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 386 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 387 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 (''test_cluster_two_shards''): 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 388 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 389 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 390 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 391 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 392 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 393 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 394 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 395 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 396 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 397 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 398 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 399 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 400 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 401 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 (''test_cluster_two_shards''): 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 402 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 403 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 404 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 405 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 406 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 407 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 408 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 409 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 410 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 411 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 412 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 413 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 414 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 415 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 416 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 417 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 418 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 419 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''test_cluster_two_shards''): 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 420 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 421 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 422 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 423 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12, pattern) FROM tab__fuzz_3 PREWHERE toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, toLowCardinality(toUInt256(0)))))), number, 16) % 2) GROUP BY toLowCardinality(toNullable('aaaaa\0x'), toLowCardinality(7)) Error on processing query 'SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12, pattern) FROM tab__fuzz_3 PREWHERE toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, toLowCardinality(toUInt256(0)))))), number, 16) % 2) GROUP BY toLowCardinality(toNullable('aaaaa\0x'), toLowCardinality(7))': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12, pattern) FROM tab__fuzz_3 PREWHERE toUInt8(divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, toLowCardinality(toUInt256(0)))))), number, 16) % 2) GROUP BY toLowCardinality(toNullable('aaaaa\0x'), toLowCardinality(7)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 424 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''test_cluster_two_shards''): 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 425 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 426 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 (''test_cluster_two_shards''): 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 427 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 428 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 429 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 430 out of 1000 EXPLAIN QUERY TREE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 431 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 432 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 433 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 434 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 435 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 436 out of 1000 EXPLAIN AST SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 437 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 438 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 439 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 440 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 441 out of 1000 EXPLAIN SYNTAX SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 442 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 443 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 444 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 445 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''test_cluster_two_shards''): 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 446 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 447 out of 1000 EXPLAIN SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 448 out of 1000 EXPLAIN ESTIMATE SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 449 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 450 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 451 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(materialize(toLowCardinality(12)))), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(materialize(toLowCardinality(12)))), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(materialize(toLowCardinality(12)))), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 452 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString((number / 8) % toUInt128(materialize(2)), toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString((number / 8) % toUInt128(materialize(2)), toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString((number / 8) % toUInt128(materialize(2)), toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 453 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 454 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 455 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 456 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT toLowCardinality('test_cluster_two_shards'), 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT toLowCardinality('test_cluster_two_shards'), 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 457 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE toUInt8((number / toUInt256(materialize(x1 OR x3, toNullable(8)))) % toUInt128(materialize(2))) Error on processing query 'SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE toUInt8((number / toUInt256(materialize(x1 OR x3, toNullable(8)))) % toUInt128(materialize(2)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE toUInt8((number / toUInt256(materialize(x1 OR x3, toNullable(8)))) % toUInt128(materialize(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 458 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 459 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 460 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 461 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 462 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 463 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 464 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), if((a >= 0) AND (b != toUInt128(100)) AND (c > toUInt256(220)), 1, 0), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), if((a >= 0) AND (b != toUInt128(100)) AND (c > toUInt256(220)), 1, 0), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), if((a >= 0) AND (b != toUInt128(100)) AND (c > toUInt256(220)), 1, 0), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 465 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), toLowCardinality(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), toLowCardinality(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), toLowCardinality(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 466 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toUInt256(12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 467 out of 1000 SELECT toLowCardinality('test_cluster_two_shards'), toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt256(12)), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 468 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 469 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 470 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 471 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 472 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx'), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 473 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 474 out of 1000 SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 475 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 476 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 477 out of 1000 SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(t__fuzz_25, toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(t__fuzz_25, toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_25' in scope SELECT 'test_cluster_two_shards', toNullable(23), countSubstringsCaseInsensitiveUTF8(t__fuzz_25, toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 478 out of 1000 SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 479 out of 1000 SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2 GROUP BY divide(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), number, toLowCardinality(8)) % toLowCardinality(toUInt128(2)), (number / 8) % toLowCardinality(toUInt128(2)), materialize(8), sum(if((a >= toNullable(0)) AND (b != materialize(100)) AND (c > 220), 1, 0)) Error on processing query 'SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2 GROUP BY divide(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), number, toLowCardinality(8)) % toLowCardinality(toUInt128(2)), (number / 8) % toLowCardinality(toUInt128(2)), materialize(8), sum(if((a >= toNullable(0)) AND (b != materialize(100)) AND (c > 220), 1, 0))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2 GROUP BY divide(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), number, toLowCardinality(8)) % toLowCardinality(toUInt128(2)), (number / 8) % toLowCardinality(toUInt128(2)), materialize(8), sum(if((a >= toNullable(0)) AND (b != materialize(100)) AND (c > 220), 1, 0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 480 out of 1000 SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 481 out of 1000 SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 PREWHERE t__fuzz_19 Error on processing query 'SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 PREWHERE t__fuzz_19': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 PREWHERE t__fuzz_19. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 482 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12)), pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 483 out of 1000 SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 484 out of 1000 SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), toNullable(toUInt256(1)), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), toNullable(toUInt256(1)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), toNullable(toUInt256(1)), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 486 out of 1000 SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 487 out of 1000 SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toUInt256(7), toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toUInt256(7), toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toUInt256(7), toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f0c7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 488 out of 1000 EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12) FROM tab__fuzz_2 Error on processing query 'EXPLAIN PIPELINE SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 489 out of 1000 SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 490 out of 1000 SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 491 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 (''test_cluster_two_shards''): 'test_cluster_two_shards', 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 492 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 493 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), intDiv(toUInt32(test_alias__fuzz_37, rtime), 20) * materialize(1000), 12)) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), intDiv(toUInt32(test_alias__fuzz_37, rtime), 20) * materialize(1000), 12)) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_37' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), intDiv(toUInt32(test_alias__fuzz_37, rtime), 20) * materialize(1000), 12)) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 494 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 495 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 496 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12)) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12)) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12)) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 497 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt128(12)), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 498 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt128(12)), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 499 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toUInt128(12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toUInt128(12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), toUInt128(12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 500 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt128(12)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 501 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 503 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(materialize('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(materialize('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Function 'countSubstringsCaseInsensitiveUTF8' doesn't support FixedString haystack argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dd6cd50 4. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000837d9c2 5. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d58bb 6. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 7. DB::IExecutableFunction::defaultImplementationForNulls(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b6008d9 8. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffbf4 9. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 10. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x000000003324d830 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x0000000033248983 13. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000003b82b8f7 14. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:0: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000003bdff695 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d2837e 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d111cc 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 504 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 505 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 506 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 507 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 508 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 509 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 510 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 511 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 512 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 513 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 515 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 516 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 517 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), materialize(toLowCardinality(12))), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), materialize(toLowCardinality(12))), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), materialize(toLowCardinality(12))), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 518 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 519 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 520 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 521 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 5, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 522 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 523 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(12)), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(12)), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(12)), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 525 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 526 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 527 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 528 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 529 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 530 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 531 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 532 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 533 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 534 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 535 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 536 out of 1000 EXPLAIN PIPELINE header = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN PIPELINE header = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 537 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 538 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 539 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 540 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 541 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 542 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 543 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 544 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12)) FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11, cluster('test_cluster_two_shards', 23, currentDatabase(), t), sum(if((b != 100) AND equals(c, c = toUInt256(0), 0), materialize(toUInt128(1)), 0)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12)) FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11, cluster('test_cluster_two_shards', 23, currentDatabase(), t), sum(if((b != 100) AND equals(c, c = toUInt256(0), 0), materialize(toUInt128(1)), 0))': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12)) FROM tab__fuzz_2 GROUP BY toFixedString('test_cluster_two_shards', 23), x1 OR x2 OR x3 OR x4 OR x5 OR x6 OR x7 OR x8 OR x9 OR x10 OR x11, cluster('test_cluster_two_shards', 23, currentDatabase(), t), sum(if((b != 100) AND equals(c, c = toUInt256(0), 0), materialize(toUInt128(1)), 0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 545 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 546 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 547 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 548 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 549 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 550 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 551 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 552 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 553 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 554 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 555 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 556 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 557 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 558 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 559 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 560 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 561 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 562 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 563 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 564 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 565 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 566 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 567 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 568 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 569 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 570 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 571 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 572 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 573 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 574 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 575 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 576 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 577 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 578 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 579 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 580 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 581 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 582 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 583 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 584 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 585 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 586 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 587 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 588 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 589 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 590 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 591 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 592 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 593 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 594 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 595 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 596 out of 1000 EXPLAIN AST SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 597 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 598 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 599 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 600 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 601 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 602 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 603 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 604 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 605 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 606 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 607 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 608 out of 1000 EXPLAIN ESTIMATE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 609 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 610 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 611 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 PREWHERE toNullable(MergeTree, 'OK') Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 PREWHERE toNullable(MergeTree, 'OK')': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'MergeTree' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 PREWHERE toNullable(MergeTree, 'OK'). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 612 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 613 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 614 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 615 out of 1000 EXPLAIN PIPELINE compact = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 616 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 617 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 618 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 619 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 620 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 621 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 622 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 623 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 624 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 625 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 PREWHERE materialize(toNullable(1)) AND x1 AND x2 AND x3 AND x4 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 PREWHERE materialize(toNullable(1)) AND x1 AND x2 AND x3 AND x4': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 PREWHERE materialize(toNullable(1)) AND x1 AND x2 AND x3 AND x4. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 626 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 627 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), toUInt8((number / toNullable(8)) % toUInt256(2)), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), toUInt8((number / toNullable(8)) % toUInt256(2)), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), toUInt8((number / toNullable(8)) % toUInt256(2)), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 628 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 629 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 630 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 631 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 632 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 633 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 634 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 635 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 GROUP BY position(toFixedString(toNullable('aaaaa\0x'), 7), pattern) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 GROUP BY position(toFixedString(toNullable('aaaaa\0x'), 7), pattern)': Received from localhost:9000. DB::Exception: Column default.tab__fuzz_1.pattern is not under aggregate function and not in GROUP BY keys. In query SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 GROUP BY position(toFixedString(toNullable('aaaaa\0x'), 7), pattern). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033593a48 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 636 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 637 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 638 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 639 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(toLowCardinality(toUInt128(12)))), 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(toLowCardinality(toUInt128(12)))), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(toLowCardinality(toUInt128(12)))), 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 640 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 641 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 642 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 643 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 644 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 PREWHERE (a >= 0) AND (c = 0) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 PREWHERE (a >= 0) AND (c = 0)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 PREWHERE (a >= 0) AND (c = 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 645 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 646 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 PREWHERE toFixedString(toFixedString(toFixedString('test_cluster_two_shards', nums__fuzz_25, 23), 23), 23, 23) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 PREWHERE toFixedString(toFixedString(toFixedString('test_cluster_two_shards', nums__fuzz_25, 23), 23), 23, 23)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 PREWHERE toFixedString(toFixedString(toFixedString('test_cluster_two_shards', nums__fuzz_25, 23), 23), 23, 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 647 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 648 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 649 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 650 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 651 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(nums__fuzz_35, toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(nums__fuzz_35, toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_35' in scope SELECT countSubstringsCaseInsensitiveUTF8(nums__fuzz_35, toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 652 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 653 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 654 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 655 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 656 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 657 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 658 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 659 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(toLowCardinality(2))), toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(toLowCardinality(2))), toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT countSubstringsCaseInsensitiveUTF8((number / toLowCardinality(8)) % toLowCardinality(toUInt128(toLowCardinality(2))), toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 660 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 661 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 662 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 663 out of 1000 EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 664 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 665 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 666 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 667 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 668 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 669 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 670 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 671 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 672 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 673 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 674 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 675 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 676 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 678 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 679 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 680 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 681 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 682 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 683 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 684 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 685 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 686 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 688 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 689 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 690 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 691 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 692 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 693 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 694 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 695 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 696 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 697 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 698 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 699 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 700 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 701 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 702 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 703 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 704 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 705 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 706 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 707 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 708 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 709 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 710 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 711 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 712 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 713 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 714 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 715 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 716 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 717 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 718 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 719 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt128(12)), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt128(12)), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt128(12)), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 720 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 721 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 722 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 PREWHERE toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(materialize(23))) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 PREWHERE toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(materialize(23)))': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 PREWHERE toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(materialize(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 723 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 724 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 725 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 726 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(test_alias__fuzz_26, toFixedString('aaaxxxaa\0xxx', materialize(12)), 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(test_alias__fuzz_26, toFixedString('aaaxxxaa\0xxx', materialize(12)), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_26' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(test_alias__fuzz_26, toFixedString('aaaxxxaa\0xxx', materialize(12)), 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 727 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 728 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', test_alias__fuzz_33, 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', test_alias__fuzz_33, 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_33' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', test_alias__fuzz_33, 12), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 729 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 730 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 731 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 732 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 WHERE toFixedString(toLowCardinality('test_cluster_two_shards'), 23) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 WHERE toFixedString(toLowCardinality('test_cluster_two_shards'), 23)': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: LowCardinality(FixedString(23)). In query SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), pattern) FROM tab__fuzz_2 WHERE toFixedString(toLowCardinality('test_cluster_two_shards'), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 733 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 734 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 PREWHERE sum(if((b != 100) AND (c > 220), 1, toNullable(0))) IGNORE NULLS Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 PREWHERE sum(if((b != 100) AND (c > 220), 1, toNullable(0))) IGNORE NULLS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 PREWHERE sum(if((b != 100) AND (c > 220), 1, toNullable(0))) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 735 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 736 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 737 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 738 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 739 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12, 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 740 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 742 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0)), toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0)), toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT countSubstringsCaseInsensitiveUTF8(if((a >= 0) AND (b != 100) AND (c = 0), toUInt128(1), toNullable(0)), toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), 12), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 743 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), toLowCardinality(12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), toLowCardinality(12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), toLowCardinality(12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 744 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), toLowCardinality(12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), toLowCardinality(12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), toLowCardinality(12), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 745 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), toLowCardinality(12)), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), toLowCardinality(12)), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), toLowCardinality(12)), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 746 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality(12)), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality(12)), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality(12)), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 747 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), toLowCardinality(12)), 12)) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), toLowCardinality(12)), 12)) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), toLowCardinality(12)), 12)) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 748 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toLowCardinality('aaaxxxaa\0xxx'), toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 749 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 750 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 751 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 752 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE toFixedString(toFixedString(toFixedString(7), 7), 7) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE toFixedString(toFixedString(toFixedString(7), 7), 7)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 WHERE toFixedString(toFixedString(toFixedString(7), 7), 7). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 753 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 754 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 755 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 0 AND 1000 AND x4, pattern) FROM tab__fuzz_3 GROUP BY toFixedString(toLowCardinality(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7)))), positionCaseInsensitive(toFixedString('aaaaa\0x', toLowCardinality(7), toNullable(tab__fuzz_18, 7)), pattern), 7), cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23, currentDatabase(), t) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 0 AND 1000 AND x4, pattern) FROM tab__fuzz_3 GROUP BY toFixedString(toLowCardinality(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7)))), positionCaseInsensitive(toFixedString('aaaaa\0x', toLowCardinality(7), toNullable(tab__fuzz_18, 7)), pattern), 7), cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x4' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 0 AND 1000 AND x4, pattern) FROM tab__fuzz_3 GROUP BY toFixedString(toLowCardinality(toFixedString('aaaaa\0x', toLowCardinality(toUInt256(7)))), positionCaseInsensitive(toFixedString('aaaaa\0x', toLowCardinality(7), toNullable(tab__fuzz_18, 7)), pattern), 7), cluster(toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), 23), 23, currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 756 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_1 PREWHERE toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))) GROUP BY toFixedString('test_cluster_two_shards', 23), 23, id, r1 * 100 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_1 PREWHERE toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))) GROUP BY toFixedString('test_cluster_two_shards', 23), 23, id, r1 * 100': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), pattern) FROM tab__fuzz_1 PREWHERE toFixedString('test_cluster_two_shards', toLowCardinality(toNullable(23))) GROUP BY toFixedString('test_cluster_two_shards', 23), 23, id, r1 * 100. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 757 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 758 out of 1000 SELECT toFixedString('test_cluster_two_shards'), 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toFixedString('test_cluster_two_shards'), 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toFixedString('test_cluster_two_shards'), 23, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 759 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 760 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 761 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 762 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 763 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 764 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 765 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(toUInt128(12))), 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 766 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(toUInt128(12))), 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(toUInt128(12))), 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(toUInt128(12))), 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 767 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt128(12)), 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt128(12)), 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toUInt128(12)), 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 768 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(toUInt128(12))), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 769 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(toUInt128(12)), 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(toUInt128(12)), 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(toUInt128(12)), 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 770 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(toUInt128(12))), 12, 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(toUInt128(12))), 12, 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(toUInt128(12))), 12, 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 771 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), 0 AND 1000 AND x4, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), 0 AND 1000 AND x4, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(12), 0 AND 1000 AND x4, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 772 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(toUInt128(12))), 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(toUInt128(12))), 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(toUInt128(12))), 12), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 773 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 774 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12)) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12)) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12)) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 775 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 776 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 777 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 778 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function countSubstringsCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT countSubstringsCaseInsensitiveUTF8(pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6ec2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 779 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 780 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 781 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 782 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 783 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 784 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(toUInt256(12))), 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(toUInt256(12))), 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(toUInt256(12))), 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 785 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 786 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 787 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 788 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 789 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 790 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 791 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_3 WHERE countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), toLowCardinality(12)), pattern) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_3 WHERE countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), toLowCardinality(12)), pattern)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_3 WHERE countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), toLowCardinality(12)), pattern). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 792 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1 PREWHERE toLowCardinality(toUInt256(100)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1 PREWHERE toLowCardinality(toUInt256(100))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x0000000037f9adfa 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x0000000038d06faa 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::MergeTreeDataSelectExecutor::filterPartsByVirtualColumns(std::shared_ptr const&, DB::MergeTreeData const&, std::vector, std::allocator>> const&, DB::ActionsDAG const*, std::shared_ptr) @ 0x0000000039a5472c 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::buildIndexes(std::optional&, DB::ActionsDAG const*, DB::MergeTreeData const&, std::vector, std::allocator>> const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003bf2f170 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1639: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000003bf2e127 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000003c1827e4 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000003c1822fe 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000003c129752 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000003beb957a 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000003beb64cc 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000034cf5e6d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000034cf5881 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 793 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 794 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 795 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 796 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 797 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt128(12)), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 798 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt128(toUInt256(12))), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 799 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt128(toUInt256(12))), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 800 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt128(toUInt256(12))), 12, pattern) FROM tab__fuzz_0 WHERE 38 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt128(toUInt256(12))), 12, pattern) FROM tab__fuzz_0 WHERE 38': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt128(toUInt256(12))), 12, pattern) FROM tab__fuzz_0 WHERE 38. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 801 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 802 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 803 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 804 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx'), toUInt256(12)), 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx'), toUInt256(12)), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx'), toUInt256(12)), 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 805 out of 1000 SELECT number % 2, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT number % 2, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT number % 2, countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 806 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 807 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(toLowCardinality(toNullable(12)))), toLowCardinality(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(toLowCardinality(toNullable(12)))), toLowCardinality(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(toLowCardinality(toNullable(12)))), toLowCardinality(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 808 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), nums__fuzz_47, 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), nums__fuzz_47, 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'nums__fuzz_47' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), nums__fuzz_47, 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 809 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 810 out of 1000 EXPLAIN `header, description` = true, actions = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN `header, description` = true, actions = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown setting "header, description" for EXPLAIN PLAN query. Supported settings: sorting, optimize, indexes, json, actions, description, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000034980e77 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496d3ee 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 811 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 812 out of 1000 SELECT toUInt8((number / materialize(2)) % materialize(2)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT toUInt8((number / materialize(2)) % materialize(2)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT toUInt8((number / materialize(2)) % materialize(2)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 813 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 814 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 815 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 816 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 817 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 818 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 819 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(toLowCardinality(12))), toUInt256(12)), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(toLowCardinality(12))), toUInt256(12)), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(toLowCardinality(12))), toUInt256(12)), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 820 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 821 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 822 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 823 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 824 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 825 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 826 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 827 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toUInt256(12)), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toUInt256(12)), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 828 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 829 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 830 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 831 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 832 out of 1000 EXPLAIN `header, description` = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN `header, description` = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown setting "header, description" for EXPLAIN PLAN query. Supported settings: sorting, optimize, indexes, json, actions, description, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000034980e77 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496d3ee 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 833 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12), 12), pattern) FROM tab__fuzz_2 PREWHERE if((a >= toLowCardinality(0)) AND 1, 1, 0) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12), 12), pattern) FROM tab__fuzz_2 PREWHERE if((a >= toLowCardinality(0)) AND 1, 1, 0)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12), 12), pattern) FROM tab__fuzz_2 PREWHERE if((a >= toLowCardinality(0)) AND 1, 1, 0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 834 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), materialize(12)), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), materialize(12)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), materialize(12)), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 835 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 836 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 837 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toUInt256(12)), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toUInt256(12)), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 838 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_0 GROUP BY (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000), toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_0 GROUP BY (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000), toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)), 12), pattern) FROM tab__fuzz_0 GROUP BY (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000), toFixedString(toFixedString('aaaxxxaa\0xxx', toLowCardinality(12)), 12), countSubstringsCaseInsensitive(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), pattern). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 839 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toUInt256(12)), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toUInt256(12)), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toUInt256(12)), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 840 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toUInt256(toLowCardinality(12))), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toUInt256(toLowCardinality(12))), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toUInt256(toLowCardinality(12))), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 841 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(12)), toUInt256(12)), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(toLowCardinality(23)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(12)), toUInt256(12)), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(toLowCardinality(23))': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', materialize(12)), toUInt256(12)), 12), pattern) FROM tab__fuzz_1 WHERE toLowCardinality(toLowCardinality(23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 842 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 843 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 844 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 845 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 846 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, materialize(toUInt128(12))), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, materialize(toUInt128(12))), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, materialize(toUInt128(12))), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 847 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 848 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 849 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 850 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 851 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), materialize(12)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), materialize(12)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), materialize(12)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 852 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 853 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 854 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 855 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 856 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 857 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12), 12), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 858 out of 1000 EXPLAIN QUERY TREE dump_passes = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN QUERY TREE dump_passes = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "dump_passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 859 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 860 out of 1000 EXPLAIN PIPELINE header = true SELECT position('aaaaa\0x', pattern), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN PIPELINE header = true SELECT position('aaaaa\0x', pattern), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 861 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 862 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 863 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_2 GROUP BY toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), 12), 38, (a >= 0) AND (b != 100) AND 1 AND (c > 220) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_2 GROUP BY toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), 12), 38, (a >= 0) AND (b != 100) AND 1 AND (c > 220)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_2 GROUP BY toFixedString('aaaxxxaa\0xxx', toLowCardinality(12), 12), 38, (a >= 0) AND (b != 100) AND 1 AND (c > 220). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 864 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 865 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 866 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 867 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 868 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 869 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 870 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 871 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 872 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 873 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 874 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 875 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 876 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 877 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 878 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_0 WHERE c = toLowCardinality(toNullable(divide(sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) RESPECT NULLS) * materialize(100), 0)) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_0 WHERE c = toLowCardinality(toNullable(divide(sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) RESPECT NULLS) * materialize(100), 0))': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_0 WHERE c = toLowCardinality(toNullable(divide(sum(multiIf(s IN ('a', 'b'), toUInt256(1), 0)) RESPECT NULLS) * materialize(100), 0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 879 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 880 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 881 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toUInt128(12))), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toUInt128(12))), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toUInt128(12))), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 882 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 883 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString(toLowCardinality(toFixedString('aaaxxxaa\0xxx', 12)), 12), 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString(toLowCardinality(toFixedString('aaaxxxaa\0xxx', 12)), 12), 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString(toLowCardinality(toFixedString('aaaxxxaa\0xxx', 12)), 12), 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 884 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 885 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 886 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 887 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 888 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 889 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 890 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 891 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 892 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 893 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 894 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 895 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(intDiv(toUInt32(test_alias__fuzz_37, rtime), 20) * materialize(1000), toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(intDiv(toUInt32(test_alias__fuzz_37, rtime), 20) * materialize(1000), toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias__fuzz_37' in scope SELECT countSubstringsCaseInsensitiveUTF8(intDiv(toUInt32(test_alias__fuzz_37, rtime), 20) * materialize(1000), toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 896 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString(materialize(toNullable('aaaxxxaa\0xxx')), 12), 12), 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString(materialize(toNullable('aaaxxxaa\0xxx')), 12), 12), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Function 'countSubstringsCaseInsensitiveUTF8' doesn't support FixedString haystack argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dd6cd50 4. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000837d9c2 5. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000083d58bb 6. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffcb1 7. DB::IExecutableFunction::defaultImplementationForNulls(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b6008d9 8. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b5ffbf4 9. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b601c7f 10. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b607a5e 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x000000003324d830 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x0000000033248983 13. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000003b82b8f7 14. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:0: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000003bdff695 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000034d2837e 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d111cc 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 897 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 898 out of 1000 SELECT toFixedString(' ', 1, 1), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toFixedString(' ', 1, 1), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString(' ', 1, 1), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 899 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 900 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 901 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 902 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 903 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 904 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 905 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 906 out of 1000 EXPLAIN actions = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12)), 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN actions = true SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12)), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "actions" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496cdff 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 907 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable(12)), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable(12)), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toNullable(12)), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 908 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 909 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 910 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), pattern), 12)), toUInt128(12)), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), pattern), 12)), toUInt128(12)), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitive: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(countSubstringsCaseInsensitive(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), pattern), 12)), toUInt128(12)), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6527e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 20. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 23. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 26. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce Fuzzing step 911 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 912 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 913 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 914 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 915 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), toUInt128(12)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), toUInt128(12)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), toUInt128(12)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 916 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 917 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 918 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 919 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 920 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 921 out of 1000 EXPLAIN QUERY TREE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 922 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12))), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12))), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, toNullable(12))), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 923 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 924 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 925 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 926 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('countSubstringsCaseInsensitiveUTF8'): countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 927 out of 1000 EXPLAIN PIPELINE SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 928 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 929 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 930 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 931 out of 1000 EXPLAIN SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 932 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 933 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(materialize(12))), toUInt128(12)), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(materialize(12))), toUInt128(12)), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(materialize(12))), toUInt128(12)), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 934 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 935 out of 1000 EXPLAIN SYNTAX SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), toUInt128(12)), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 936 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 937 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 938 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 939 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 940 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 941 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 942 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), 12, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), 12, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), 12, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 943 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 944 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), 12), pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 945 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toNullable(12)), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 946 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 947 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 948 out of 1000 SELECT version_pair[toLowCardinality(1)], countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT version_pair[toLowCardinality(1)], countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT version_pair[toLowCardinality(1)], countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 949 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_2 WHERE toFixedString(toFixedString(materialize('test_cluster_two_shards', 23), 23), 23, 23) Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_2 WHERE toFixedString(toFixedString(materialize('test_cluster_two_shards', 23), 23), 23, 23)': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_2 WHERE toFixedString(toFixedString(materialize('test_cluster_two_shards', 23), 23), 23, 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 950 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 951 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 952 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_0 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 953 out of 1000 SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 954 out of 1000 SELECT toFixedString(toNullable('aaaaa\0x'), toNullable(7)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 955 out of 1000 SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), toNullable(7)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 956 out of 1000 SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), toNullable(7)), countSubstringsCaseInsensitiveUTF8((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), toNullable(7)), countSubstringsCaseInsensitiveUTF8((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), toNullable(7)), countSubstringsCaseInsensitiveUTF8((a >= 0) AND (b != toLowCardinality(100)) AND (c > toUInt256(220)), toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 957 out of 1000 SELECT toFixedString(toNullable(materialize(toNullable(toUInt128(2), 'aaaaa\0x'))), toNullable(7)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1 Error on processing query 'SELECT toFixedString(toNullable(materialize(toNullable(toUInt128(2), 'aaaaa\0x'))), toNullable(7)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toFixedString(toNullable(materialize(toNullable(toUInt128(2), 'aaaaa\0x'))), toNullable(7)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 21. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 29. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d Fuzzing step 958 out of 1000 SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), toNullable(7)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), toNullable(7)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), toNullable(7)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 959 out of 1000 SELECT toNullable(' '), toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), toNullable(7)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT toNullable(' '), toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), toNullable(7)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function countSubstringsCaseInsensitiveUTF8: In scope SELECT toNullable(' '), toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), toNullable(7)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000dd6f21e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 960 out of 1000 SELECT toFixedString(toNullable(7)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT toFixedString(toNullable(7)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toFixedString(toNullable(7)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12, 12), 12), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 961 out of 1000 SELECT toNullable(materialize(toNullable('aaaaa\0x'))), toNullable(7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toNullable(materialize(toNullable('aaaaa\0x'))), toNullable(7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toNullable(materialize(toNullable('aaaaa\0x'))), toNullable(7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12, 12), pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 962 out of 1000 SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), toNullable(7)), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 963 out of 1000 SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 964 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 965 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 966 out of 1000 EXPLAIN AST SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 967 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 968 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 969 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 970 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 971 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 972 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 973 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 974 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 975 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 976 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 977 out of 1000 EXPLAIN SYNTAX SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 978 out of 1000 EXPLAIN SYNTAX SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 979 out of 1000 EXPLAIN SYNTAX SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 980 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 981 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 982 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 983 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 984 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 985 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 986 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 987 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 988 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 989 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 990 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toFixedString'): toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx',. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 991 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 992 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toFixedString'): toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx',. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 993 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 994 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 995 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 996 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 997 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 998 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 999 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), countSubstringsCaseInsensitiveUTF8(toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12), pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 2 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 3 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 4 out of 1000 SELECT toUInt256(4), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 5 out of 1000 SELECT toUInt256(4), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 6 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 7 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 8 out of 1000 EXPLAIN PIPELINE SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 Error on processing query 'EXPLAIN PIPELINE SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034959cc1 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 9 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 10 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 11 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 12 out of 1000 EXPLAIN QUERY TREE run_passes = true, dump_passes = true SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE run_passes = true, dump_passes = true SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "run_passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 13 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 14 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 15 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 16 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 GROUP BY cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23, currentDatabase(), t), (b != 100) AND (c = toNullable(0)) Error on processing query 'SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 GROUP BY cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23, currentDatabase(), t), (b != 100) AND (c = toNullable(0))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't' in scope SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 GROUP BY cluster(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(23))), 23, currentDatabase(), t), (b != 100) AND (c = toNullable(0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 17 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 18 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 19 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 20 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(id) WHERE id = 2 Error on processing query 'SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(id) WHERE id = 2': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(id) WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 21 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = materialize(toLowCardinality(2)) Error on processing query 'SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = materialize(toLowCardinality(2))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = materialize(toLowCardinality(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 22 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 23 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 24 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 25 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 26 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 27 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(id) WHERE id = 2 Error on processing query 'SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(id) WHERE id = 2': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(id) WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 28 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 29 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 30 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 31 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 32 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = materialize(2) Got boring AST Fuzzing step 33 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toUInt128(2) WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 34 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toUInt128(2) WHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 35 out of 1000 SELECT 4, toLowCardinality(toNullable(materialize(1))), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 36 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT 4, toLowCardinality(toNullable(materialize(1))), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = toLowCardinality(2) Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT 4, toLowCardinality(toNullable(materialize(1))), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = toLowCardinality(2)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 37 out of 1000 SELECT 4, toLowCardinality(toNullable(materialize(1))), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = toLowCardinality(2) Got boring AST Fuzzing step 38 out of 1000 SELECT toLowCardinality(4), toLowCardinality(toNullable(materialize(1))), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 39 out of 1000 SELECT toLowCardinality(4), toLowCardinality(materialize(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 40 out of 1000 SELECT toLowCardinality(toFixedString(toFixedString((intDiv(74, toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000, 'test_cluster_two_shards', materialize(23)), toNullable(23)), toUInt128(4)), toLowCardinality(materialize(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT toLowCardinality(toFixedString(toFixedString((intDiv(74, toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000, 'test_cluster_two_shards', materialize(23)), toNullable(23)), toUInt128(4)), toLowCardinality(materialize(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT toLowCardinality(toFixedString(toFixedString((intDiv(74, toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000, 'test_cluster_two_shards', materialize(23)), toNullable(23)), toUInt128(4)), toLowCardinality(materialize(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 22. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 25. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 28. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 Fuzzing step 41 out of 1000 SELECT toLowCardinality(4), toLowCardinality(materialize(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 42 out of 1000 SELECT toLowCardinality(materialize(4)), toLowCardinality(materialize(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 43 out of 1000 SELECT toLowCardinality(materialize(4)), toLowCardinality(materialize(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 44 out of 1000 SELECT toLowCardinality(materialize(4)), toLowCardinality(materialize(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT toLowCardinality(materialize(4)), toLowCardinality(materialize(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT toLowCardinality(materialize(4)), toLowCardinality(materialize(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 45 out of 1000 SELECT toLowCardinality(materialize(4)), toLowCardinality(materialize(toLowCardinality(1))), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 46 out of 1000 SELECT materialize(4), toLowCardinality(materialize(toLowCardinality(1))), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 47 out of 1000 SELECT materialize(4), toLowCardinality(materialize(toLowCardinality(1))), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 48 out of 1000 SELECT materialize(4), toLowCardinality(materialize(toLowCardinality(1))), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE equals(id) WHERE id = 2 Error on processing query 'SELECT materialize(4), toLowCardinality(materialize(toLowCardinality(1))), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE equals(id) WHERE id = 2': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT materialize(4), toLowCardinality(materialize(toLowCardinality(1))), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE equals(id) WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 49 out of 1000 SELECT materialize(4), toLowCardinality(materialize(toLowCardinality(1))), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 50 out of 1000 SELECT materialize(4), materialize(toLowCardinality(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE equals(cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23)), 23), currentDatabase(), t), id, 2) WHERE id = 2 Error on processing query 'SELECT materialize(4), materialize(toLowCardinality(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE equals(cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23)), 23), currentDatabase(), t), id, 2) WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT materialize(4), materialize(toLowCardinality(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE equals(cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), toNullable(toLowCardinality(23)), 23), currentDatabase(), t), id, 2) WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 51 out of 1000 SELECT materialize(4), toLowCardinality(toLowCardinality(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 SELECT materialize(4), toLowCardinality(toLowCardinality(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Got boring AST Fuzzing step 53 out of 1000 SELECT materialize(4), toLowCardinality(toLowCardinality(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 Error on processing query 'SELECT materialize(4), toLowCardinality(toLowCardinality(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT materialize(4), toLowCardinality(toLowCardinality(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 54 out of 1000 SELECT materialize(toNullable(4)), toLowCardinality(toLowCardinality(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 55 out of 1000 SELECT materialize(toNullable(4)), toLowCardinality(toLowCardinality(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 SELECT materialize(toNullable(4)), toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 57 out of 1000 SELECT materialize(toNullable(4)), toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 58 out of 1000 SELECT toNullable(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 59 out of 1000 SELECT toNullable(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 60 out of 1000 SELECT toNullable(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 61 out of 1000 SELECT toNullable(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 62 out of 1000 SELECT toNullable(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT toNullable(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT toNullable(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 63 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 64 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 65 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 67 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE toLowCardinality(toLowCardinality(1)) GROUP BY tab__fuzz_7, 0 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE toLowCardinality(toLowCardinality(1)) GROUP BY tab__fuzz_7, 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 WHERE toLowCardinality(toLowCardinality(1)) GROUP BY tab__fuzz_7, 0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000032cdb2d7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:772: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x0000000033476845 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b19 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 68 out of 1000 SELECT toUInt128(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toNullable(2) Error on processing query 'SELECT toUInt128(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toNullable(2)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT toUInt128(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toNullable(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 69 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 70 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 71 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 72 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 73 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 74 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 75 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 76 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 77 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 78 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 79 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 80 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE test_alias__fuzz_20 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE test_alias__fuzz_20': Received from localhost:9000. DB::Exception: Unknown expression identifier 'test_alias__fuzz_20' in scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 WHERE test_alias__fuzz_20. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 81 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 SELECT 4, toNullable(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 4, toNullable(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, toNullable(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 83 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 86 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 87 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 88 out of 1000 SELECT 4, 1 FROM tab__fuzz_0 PREWHERE id = 2 GROUP BY toFixedString('aaaaa\0x', 7, toLowCardinality(toNullable(7))) Error on processing query 'SELECT 4, 1 FROM tab__fuzz_0 PREWHERE id = 2 GROUP BY toFixedString('aaaaa\0x', 7, toLowCardinality(toNullable(7)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 4, 1 FROM tab__fuzz_0 PREWHERE id = 2 GROUP BY toFixedString('aaaaa\0x', 7, toLowCardinality(toNullable(7))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 89 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 90 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 91 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 92 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 93 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 94 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 95 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT 4, 1, positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_2 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98234e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 96 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 SELECT 4, toUInt128(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 98 out of 1000 SELECT 4, toUInt128(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE toLowCardinality(toLowCardinality(toUInt128(23))) Error on processing query 'SELECT 4, toUInt128(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE toLowCardinality(toLowCardinality(toUInt128(23)))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, toUInt128(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE toLowCardinality(toLowCardinality(toUInt128(23))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 99 out of 1000 SELECT 4, toUInt128(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 100 out of 1000 SELECT 4, toUInt128(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 101 out of 1000 SELECT 4, toUInt128(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = toNullable(2) Query succeeded, using this AST as a start Fuzzing step 102 out of 1000 SELECT 4, toUInt128(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 103 out of 1000 SELECT toLowCardinality(4), toUInt128(toLowCardinality(materialize(4)), 1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'SELECT toLowCardinality(4), toUInt128(toLowCardinality(materialize(4)), 1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt128'. Expected 1 argument, got 2 arguments: In scope SELECT toLowCardinality(4), toUInt128(toLowCardinality(materialize(4)), 1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000890dd2e 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000088e5f75 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 104 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 105 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 106 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 107 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 GROUP BY toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)) Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 GROUP BY toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 GROUP BY toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 108 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 109 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 110 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 111 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 112 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 113 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 114 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 115 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(toUInt8(number % toUInt256(2)), haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(toUInt8(number % toUInt256(2)), haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT 4, 1, positionCaseInsensitiveUTF8(toUInt8(number % toUInt256(2)), haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 116 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 117 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 118 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 119 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 120 out of 1000 EXPLAIN indexes = true SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'EXPLAIN indexes = true SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "indexes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496cdff 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 121 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 122 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 123 out of 1000 EXPLAIN PIPELINE SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 124 out of 1000 EXPLAIN PIPELINE SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Got boring AST Fuzzing step 125 out of 1000 EXPLAIN ESTIMATE SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 126 out of 1000 EXPLAIN AST SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 127 out of 1000 EXPLAIN AST SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Got boring AST Fuzzing step 128 out of 1000 EXPLAIN AST SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Got boring AST Fuzzing step 129 out of 1000 EXPLAIN AST SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Got boring AST Fuzzing step 130 out of 1000 EXPLAIN ESTIMATE SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 131 out of 1000 EXPLAIN SYNTAX SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 132 out of 1000 EXPLAIN QUERY TREE SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 EXPLAIN QUERY TREE SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Got boring AST Fuzzing step 134 out of 1000 EXPLAIN QUERY TREE SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Got boring AST Fuzzing step 135 out of 1000 EXPLAIN QUERY TREE SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Got boring AST Fuzzing step 136 out of 1000 EXPLAIN SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 137 out of 1000 EXPLAIN SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Got boring AST Fuzzing step 138 out of 1000 EXPLAIN SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Got boring AST Fuzzing step 139 out of 1000 EXPLAIN AST SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 EXPLAIN SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 141 out of 1000 EXPLAIN PIPELINE SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 142 out of 1000 EXPLAIN ESTIMATE SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 143 out of 1000 EXPLAIN ESTIMATE SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Got boring AST Fuzzing step 144 out of 1000 EXPLAIN PIPELINE SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 145 out of 1000 EXPLAIN ESTIMATE SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 146 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('4'): 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 147 out of 1000 EXPLAIN ESTIMATE SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Got boring AST Fuzzing step 148 out of 1000 EXPLAIN QUERY TREE SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 149 out of 1000 EXPLAIN ESTIMATE SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 150 out of 1000 EXPLAIN ESTIMATE SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Got boring AST Fuzzing step 151 out of 1000 EXPLAIN AST SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('4'): 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 153 out of 1000 EXPLAIN AST SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Got boring AST Fuzzing step 154 out of 1000 EXPLAIN SYNTAX SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 155 out of 1000 EXPLAIN AST SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 156 out of 1000 EXPLAIN AST SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Got boring AST Fuzzing step 157 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('4'): 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 158 out of 1000 EXPLAIN ESTIMATE SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 159 out of 1000 EXPLAIN ESTIMATE SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Got boring AST Fuzzing step 160 out of 1000 EXPLAIN SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 161 out of 1000 EXPLAIN SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Got boring AST Fuzzing step 162 out of 1000 EXPLAIN SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Got boring AST Fuzzing step 163 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(2) Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(2)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 165 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 166 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 167 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 168 out of 1000 SELECT 4, materialize(toNullable(toUInt256(1))), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 169 out of 1000 SELECT 4, materialize(toNullable(toUInt256(1))), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 170 out of 1000 SELECT 4, materialize(toNullable(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 171 out of 1000 SELECT 4, materialize(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 172 out of 1000 SELECT 4, materialize(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 173 out of 1000 SELECT 4, materialize(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE equals(2) Error on processing query 'SELECT 4, materialize(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE equals(2)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT 4, materialize(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE equals(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 174 out of 1000 SELECT 4, materialize(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 4, materialize(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, materialize(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 175 out of 1000 SELECT 4, materialize(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 4, materialize(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, materialize(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 176 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 177 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 178 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 179 out of 1000 SELECT 4, materialize(toLowCardinality(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 180 out of 1000 SELECT 4, materialize(toLowCardinality(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 181 out of 1000 SELECT 4, materialize(toLowCardinality(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 182 out of 1000 SELECT toFixedString(23), 4, toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT toFixedString(23), 4, toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toFixedString(23), 4, toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 183 out of 1000 SELECT 4, materialize(toLowCardinality(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 4, materialize(toLowCardinality(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, materialize(toLowCardinality(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 184 out of 1000 SELECT 4, materialize(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 185 out of 1000 SELECT 4, materialize(materialize(toNullable(1))), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE (intDiv(74, toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000 Error on processing query 'SELECT 4, materialize(materialize(toNullable(1))), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE (intDiv(74, toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT 4, materialize(materialize(toNullable(1))), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE (intDiv(74, toUInt32(rtime), 20) * materialize(toNullable(20))) * 1000. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 186 out of 1000 SELECT 4, materialize(number / toUInt256(8), 1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT 4, materialize(number / toUInt256(8), 1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT 4, materialize(number / toUInt256(8), 1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 187 out of 1000 SELECT 4, materialize(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 188 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack) FROM tab__fuzz_0 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98234e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 189 out of 1000 SELECT 4, materialize(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 190 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 191 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 192 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 193 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 194 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 195 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 196 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 197 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 198 out of 1000 EXPLAIN PIPELINE SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 199 out of 1000 EXPLAIN SYNTAX SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 200 out of 1000 SELECT 4, toLowCardinality(toUInt256(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 201 out of 1000 SELECT toUInt128(4), toLowCardinality(toUInt256(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 202 out of 1000 SELECT toUInt128(4), toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 203 out of 1000 SELECT toUInt128(4), toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 204 out of 1000 SELECT toUInt128(4), toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 205 out of 1000 SELECT toUInt128(4), toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 206 out of 1000 SELECT toUInt128(4), toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 207 out of 1000 SELECT toUInt128(4), toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 208 out of 1000 SELECT toUInt128(4), toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 209 out of 1000 EXPLAIN PIPELINE SELECT 4, toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 210 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 4, toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 4, toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('4'): 4, toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 211 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 4, toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 4, toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('4'): 4, toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 212 out of 1000 EXPLAIN ESTIMATE SELECT 4, toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 EXPLAIN ESTIMATE SELECT 4, toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 214 out of 1000 SELECT materialize(toNullable(4)), toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 215 out of 1000 SELECT materialize(4), toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 216 out of 1000 EXPLAIN AST SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 217 out of 1000 EXPLAIN AST SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 218 out of 1000 EXPLAIN QUERY TREE SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 219 out of 1000 EXPLAIN SYNTAX SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 220 out of 1000 EXPLAIN SYNTAX SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 221 out of 1000 EXPLAIN SYNTAX SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 222 out of 1000 EXPLAIN SYNTAX SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 223 out of 1000 EXPLAIN ESTIMATE SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 224 out of 1000 EXPLAIN PIPELINE SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 225 out of 1000 EXPLAIN PIPELINE SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 226 out of 1000 EXPLAIN PIPELINE SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 227 out of 1000 EXPLAIN ESTIMATE SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 228 out of 1000 EXPLAIN ESTIMATE SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 229 out of 1000 EXPLAIN SYNTAX SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 230 out of 1000 EXPLAIN PIPELINE SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 231 out of 1000 EXPLAIN PIPELINE SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 232 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('materialize'): materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 233 out of 1000 EXPLAIN PIPELINE SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 234 out of 1000 EXPLAIN AST SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 235 out of 1000 EXPLAIN SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 236 out of 1000 EXPLAIN SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 237 out of 1000 EXPLAIN SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 238 out of 1000 EXPLAIN PIPELINE SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 239 out of 1000 EXPLAIN PIPELINE SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 240 out of 1000 EXPLAIN PIPELINE SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 241 out of 1000 EXPLAIN QUERY TREE SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 242 out of 1000 SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 243 out of 1000 SELECT materialize('test_cluster_two_shards', 4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT materialize('test_cluster_two_shards', 4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT materialize('test_cluster_two_shards', 4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 244 out of 1000 SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 245 out of 1000 SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 246 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 247 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 248 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 249 out of 1000 SELECT 4, toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 4, toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, toLowCardinality(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 250 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 251 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 252 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, toFixedString(toFixedString('test_cluster_two_shards', 23), 23), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, toFixedString(toFixedString('test_cluster_two_shards', 23), 23), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type FixedString(23) of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, toFixedString(toFixedString('test_cluster_two_shards', 23), 23), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 253 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 254 out of 1000 SELECT toUInt256(4), 1, positionCaseInsensitiveUTF8(position('aaaaa\0x', toUInt128(7), pattern), haystack, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT toUInt256(4), 1, positionCaseInsensitiveUTF8(position('aaaaa\0x', toUInt128(7), pattern), haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function position: In scope SELECT toUInt256(4), 1, positionCaseInsensitiveUTF8(position('aaaaa\0x', toUInt128(7), pattern), haystack, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b96cb1e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 14. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 255 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 256 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 257 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 258 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 259 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 260 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 261 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 262 out of 1000 SELECT xor(x6, x7), 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT xor(x6, x7), 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x6' in scope SELECT xor(x6, x7), 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 263 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 264 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 265 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 266 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 267 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 268 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 269 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 270 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 271 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 272 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 273 out of 1000 SELECT materialize(4), toUInt256(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = toLowCardinality(0)), 1, materialize(0)), 1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE version_pair[materialize(1)] Error on processing query 'SELECT materialize(4), toUInt256(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = toLowCardinality(0)), 1, materialize(0)), 1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE version_pair[materialize(1)]': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT materialize(4), toUInt256(if((a >= 0) AND (b != toLowCardinality(100)) AND (c = toLowCardinality(0)), 1, materialize(0)), 1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE version_pair[materialize(1)]. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 274 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 275 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 276 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 277 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 278 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE sum(if((b != 100) AND (c = 0), 1, toUInt128(0))) Error on processing query 'SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE sum(if((b != 100) AND (c = 0), 1, toUInt128(0)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE sum(if((b != 100) AND (c = 0), 1, toUInt128(0))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 279 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 280 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 281 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 282 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 283 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 284 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 285 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 286 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 287 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 288 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 289 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 290 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 291 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 292 out of 1000 EXPLAIN AST graph = true, optimize = true SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'EXPLAIN AST graph = true, optimize = true SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "graph" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495f93b 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 293 out of 1000 SELECT materialize(4), toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 294 out of 1000 SELECT materialize(4), toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 295 out of 1000 SELECT materialize(4), toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 296 out of 1000 SELECT materialize(4), toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 297 out of 1000 SELECT materialize(4), toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 298 out of 1000 SELECT materialize(4), toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE t__fuzz_21 Error on processing query 'SELECT materialize(4), toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE t__fuzz_21': Received from localhost:9000. DB::Exception: Unknown expression identifier 't__fuzz_21' in scope SELECT materialize(4), toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE t__fuzz_21. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 299 out of 1000 SELECT materialize(4), materialize(materialize(toUInt128(1000))), toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT materialize(4), materialize(materialize(toUInt128(1000))), toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT materialize(4), materialize(materialize(toUInt128(1000))), toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 300 out of 1000 SELECT materialize(4), toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 301 out of 1000 EXPLAIN PIPELINE header = true SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN PIPELINE header = true SELECT materialize(4), 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 302 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 303 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 WHERE cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), 23, currentDatabase(), t) Error on processing query 'SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 WHERE cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), 23, currentDatabase(), t)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 WHERE cluster(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toNullable(23), 23, currentDatabase(), t). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 304 out of 1000 SELECT 4, toUInt256(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 305 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 306 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 308 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 309 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_0 Error on processing query 'SELECT 4, positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT 4, positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98234e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 310 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 311 out of 1000 SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, materialize(toLowCardinality(23)), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, materialize(toLowCardinality(23)), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, 1, positionCaseInsensitiveUTF8(haystack, materialize(toLowCardinality(23)), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 312 out of 1000 SELECT 4, materialize(toNullable(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 313 out of 1000 SELECT materialize(4), materialize(toNullable(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 314 out of 1000 SELECT materialize(4), materialize((number / materialize(toLowCardinality(2))) % 2, toNullable(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT materialize(4), materialize((number / materialize(toLowCardinality(2))) % 2, toNullable(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT materialize(4), materialize((number / materialize(toLowCardinality(2))) % 2, toNullable(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 315 out of 1000 SELECT materialize(4), materialize(toNullable(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT materialize(4), materialize(toNullable(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT materialize(4), materialize(toNullable(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 316 out of 1000 SELECT materialize(4), materialize(toNullable(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 317 out of 1000 SELECT materialize(4), materialize(toNullable(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 318 out of 1000 SELECT 4, materialize(toNullable(1)), positionCaseInsensitiveUTF8(haystack, (r1 * materialize(materialize(toNullable(toUInt128(100))))) / plus(r1), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT 4, materialize(toNullable(1)), positionCaseInsensitiveUTF8(haystack, (r1 * materialize(materialize(toNullable(toUInt128(100))))) / plus(r1), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'r1' in scope SELECT 4, materialize(toNullable(1)), positionCaseInsensitiveUTF8(haystack, (r1 * materialize(materialize(toNullable(toUInt128(100))))) / plus(r1), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 319 out of 1000 SELECT materialize(4), materialize(toNullable(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT materialize(4), materialize(toNullable(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT materialize(4), materialize(toNullable(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 320 out of 1000 SELECT materialize(4), materialize(toNullable(1)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 321 out of 1000 SELECT materialize(4), materialize(1), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 322 out of 1000 SELECT materialize(toUInt128(4)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 323 out of 1000 SELECT materialize(toUInt128(4)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 324 out of 1000 SELECT toUInt128(4), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 325 out of 1000 SELECT toUInt128(4), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 326 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 327 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 328 out of 1000 EXPLAIN PIPELINE SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 329 out of 1000 EXPLAIN SYNTAX SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 330 out of 1000 EXPLAIN AST SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 331 out of 1000 EXPLAIN SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 332 out of 1000 EXPLAIN AST SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 333 out of 1000 EXPLAIN AST SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 334 out of 1000 EXPLAIN AST SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 335 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 47 ('4'): 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 336 out of 1000 EXPLAIN SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 337 out of 1000 EXPLAIN SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 338 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('4'): 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 339 out of 1000 EXPLAIN ESTIMATE SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 340 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 47 ('4'): 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 341 out of 1000 EXPLAIN PIPELINE SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 342 out of 1000 EXPLAIN AST SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 343 out of 1000 EXPLAIN SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 344 out of 1000 EXPLAIN SYNTAX SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 345 out of 1000 EXPLAIN AST SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 346 out of 1000 EXPLAIN AST SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 347 out of 1000 EXPLAIN AST SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 348 out of 1000 EXPLAIN AST SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 349 out of 1000 EXPLAIN AST SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 350 out of 1000 EXPLAIN AST SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 351 out of 1000 EXPLAIN SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 352 out of 1000 EXPLAIN SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 353 out of 1000 EXPLAIN SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 354 out of 1000 EXPLAIN AST SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 EXPLAIN QUERY TREE SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 356 out of 1000 EXPLAIN QUERY TREE SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 357 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 47 ('4'): 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 358 out of 1000 EXPLAIN QUERY TREE SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 359 out of 1000 EXPLAIN PIPELINE SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 360 out of 1000 EXPLAIN ESTIMATE SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 361 out of 1000 EXPLAIN ESTIMATE SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 362 out of 1000 EXPLAIN SYNTAX SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 363 out of 1000 EXPLAIN QUERY TREE SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 364 out of 1000 EXPLAIN PIPELINE SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 365 out of 1000 EXPLAIN PIPELINE SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 366 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 367 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 368 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 369 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23) Error on processing query 'SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23)': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: Nullable(FixedString(23)). In query SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE toFixedString(toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), 23), 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 370 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 371 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 372 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 373 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 374 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 375 out of 1000 SELECT toUInt128(4), positionCaseInsensitiveUTF8(id = 2, haystack, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT toUInt128(4), positionCaseInsensitiveUTF8(id = 2, haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt8 of argument of function positionCaseInsensitiveUTF8: In scope SELECT toUInt128(4), positionCaseInsensitiveUTF8(id = 2, haystack, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9827e7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 376 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 377 out of 1000 SELECT 4, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 378 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 379 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 380 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 381 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 382 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 383 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', toUInt256(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 12), 12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'SELECT toFixedString('aaaxxxaa\0xxx', toUInt256(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 12), 12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt256'. Expected 1 argument, got 2 arguments: In scope SELECT toFixedString('aaaxxxaa\0xxx', toUInt256(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 12), 12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000089618ce 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000893c835 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 384 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 385 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 386 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 387 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 388 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 389 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()), pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()), pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression or table expression identifier 's' in scope SELECT positionCaseInsensitiveUTF8(haystack, divide(sum(multiIf(s IN ('a', 'b'), 1, toLowCardinality(0))) IGNORE NULLS, toNullable(toNullable(1)), count()), pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 30. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 Fuzzing step 390 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 391 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 392 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 393 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 394 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 395 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 396 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 397 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 398 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack) FROM tab__fuzz_0 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT positionCaseInsensitiveUTF8(haystack) FROM tab__fuzz_0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98234e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 399 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 400 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 401 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 402 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 403 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 404 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE materialize(2) Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE materialize(2)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE materialize(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 405 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 406 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 407 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 408 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('positionCaseInsensitiveUTF8'): positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 409 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 410 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 411 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 412 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 413 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('positionCaseInsensitiveUTF8'): positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 414 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 415 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 416 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 417 out of 1000 EXPLAIN SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 418 out of 1000 EXPLAIN SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 419 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 420 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 421 out of 1000 EXPLAIN SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 422 out of 1000 EXPLAIN SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 423 out of 1000 EXPLAIN SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 424 out of 1000 EXPLAIN SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 425 out of 1000 EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('positionCaseInsensitiveUTF8'): positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 426 out of 1000 EXPLAIN SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 427 out of 1000 EXPLAIN SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 428 out of 1000 EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('positionCaseInsensitiveUTF8'): positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 429 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 430 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('positionCaseInsensitiveUTF8'): positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 431 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 432 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 433 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 434 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 435 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 436 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 437 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 438 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 439 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 440 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 441 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 442 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 443 out of 1000 EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('positionCaseInsensitiveUTF8'): positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 444 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 445 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 446 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 447 out of 1000 EXPLAIN SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 448 out of 1000 EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('positionCaseInsensitiveUTF8'): positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 449 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 450 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE materialize(2) Got boring AST Fuzzing step 451 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE materialize(2) Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE materialize(2)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 452 out of 1000 EXPLAIN `header, description` = true SELECT positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_0 PREWHERE materialize(2) Error on processing query 'EXPLAIN `header, description` = true SELECT positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_0 PREWHERE materialize(2)': Received from localhost:9000. DB::Exception: Unknown setting "header, description" for EXPLAIN PLAN query. Supported settings: sorting, optimize, indexes, json, actions, description, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000034980e77 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496d3ee 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 453 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE materialize(2) Query succeeded, using this AST as a start Fuzzing step 454 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE materialize(2) Got boring AST Fuzzing step 455 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 456 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 457 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 458 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 459 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 460 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 461 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 GROUP BY materialize(toLowCardinality('aaaaa\0x')), toNullable(materialize(toFixedString('OK', 2))), 'test_cluster_two_shards' Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 GROUP BY materialize(toLowCardinality('aaaaa\0x')), toNullable(materialize(toFixedString('OK', 2))), 'test_cluster_two_shards'': Received from localhost:9000. DB::Exception: Column default.tab__fuzz_2.haystack is not under aggregate function and not in GROUP BY keys. In query SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 GROUP BY materialize(toLowCardinality('aaaaa\0x')), toNullable(materialize(toFixedString('OK', 2))), 'test_cluster_two_shards'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:140: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000033596407 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000335956a2 8. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000033593a48 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad52 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 463 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 464 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 465 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 466 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 467 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 468 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 469 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 470 out of 1000 SELECT positionCaseInsensitiveUTF8(toNullable(toUInt128(12)), haystack, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT positionCaseInsensitiveUTF8(toNullable(toUInt128(12)), haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(toNullable(toUInt128(12)), haystack, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b9827e7 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 471 out of 1000 SELECT positionCaseInsensitive(toLowCardinality(toFixedString('aaaaa\0x')), 7, pattern), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitive(toLowCardinality(toFixedString('aaaaa\0x')), 7, pattern), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT positionCaseInsensitive(toLowCardinality(toFixedString('aaaaa\0x')), 7, pattern), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 472 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 473 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 474 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 475 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 476 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 477 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 478 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 479 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 480 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 481 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 482 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 483 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 484 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 486 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 487 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 488 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 489 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 490 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 491 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 492 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 493 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 494 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 495 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 496 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 497 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 498 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 499 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('positionCaseInsensitiveUTF8'): positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 500 out of 1000 EXPLAIN SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 501 out of 1000 EXPLAIN SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 502 out of 1000 EXPLAIN SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 503 out of 1000 EXPLAIN SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 504 out of 1000 EXPLAIN SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 505 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 506 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 507 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 508 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 509 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 510 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 511 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 512 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 513 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 SELECT positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_2 Error on processing query 'SELECT positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98234e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 515 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 516 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 517 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 518 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 519 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 520 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 521 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 522 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 523 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 524 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 525 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 526 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 527 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 528 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 529 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 530 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 531 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 532 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 533 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 534 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 535 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE position('aaaaa\0x', toLowCardinality(toUInt128(7)), pattern) Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE position('aaaaa\0x', toLowCardinality(toUInt128(7)), pattern)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE position('aaaaa\0x', toLowCardinality(toUInt128(7)), pattern). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 536 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 537 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 538 out of 1000 SELECT toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23, 23), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23, 23), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString(toFixedString('test_cluster_two_shards', toNullable(23)), toFixedString(toFixedString('test_cluster_two_shards', toLowCardinality(23)), 23, 23), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 539 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 540 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 541 out of 1000 SELECT (a >= 0) AND 1 AND (c > 220), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT (a >= 0) AND 1 AND (c > 220), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT (a >= 0) AND 1 AND (c > 220), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 542 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 543 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 544 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 545 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 546 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 547 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 548 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 549 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 550 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 551 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 552 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 553 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 GROUP BY intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000, xor1 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 GROUP BY intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000, xor1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 GROUP BY intDiv(toUInt32(rtime), toLowCardinality(20)) * 1000, xor1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 24. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 28. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 Fuzzing step 555 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE c = toUInt256(0) Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE c = toUInt256(0)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'c' in scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE c = toUInt256(0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 556 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 557 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 558 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 559 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 560 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 561 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 562 out of 1000 SELECT nums__fuzz_2, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT nums__fuzz_2, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_2' in scope SELECT nums__fuzz_2, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 563 out of 1000 SELECT positionCaseInsensitiveUTF8(tab__fuzz_23, haystack, pattern) FROM tab__fuzz_1 Error on processing query 'SELECT positionCaseInsensitiveUTF8(tab__fuzz_23, haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'tab__fuzz_23' in scope SELECT positionCaseInsensitiveUTF8(tab__fuzz_23, haystack, pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 564 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 565 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 566 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 567 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 568 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 569 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 570 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 571 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 572 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 573 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 574 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 575 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 576 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 577 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 578 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 579 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 WHERE toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)) Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 WHERE toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12))': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: FixedString(12). In query SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 WHERE toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt256(12)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 580 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 581 out of 1000 SELECT b != toUInt256(toFixedString('2022-01-01', 10), 100), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 GROUP BY toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7) Error on processing query 'SELECT b != toUInt256(toFixedString('2022-01-01', 10), 100), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 GROUP BY toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT b != toUInt256(toFixedString('2022-01-01', 10), 100), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 GROUP BY toFixedString(toFixedString(toFixedString('aaaaa\0x', 7), 7), 7). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 582 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 583 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 584 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 585 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 586 out of 1000 EXPLAIN sorting = true SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN sorting = true SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "sorting" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496cdff 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 587 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 588 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 589 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 590 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 591 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 GROUP BY toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7)), tab__fuzz_9 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 GROUP BY toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7)), tab__fuzz_9': Received from localhost:9000. DB::Exception: Unknown expression identifier 'tab__fuzz_9' in scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 GROUP BY toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12)), toFixedString(toNullable('aaaaa\0x'), toLowCardinality(7)), tab__fuzz_9. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 592 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 593 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 GROUP BY (number / 128) % 2, id = toLowCardinality(2) Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 GROUP BY (number / 128) % 2, id = toLowCardinality(2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 GROUP BY (number / 128) % 2, id = toLowCardinality(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 594 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 595 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 596 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 597 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 598 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 599 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 600 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 WHERE toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23, 23) Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 WHERE toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23, 23)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 WHERE toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), 23), 23, 23). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 601 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 602 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 603 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 604 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 605 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 606 out of 1000 EXPLAIN SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 607 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 608 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 609 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 610 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 611 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 612 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 613 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 614 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 615 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 616 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 617 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 618 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 619 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 620 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 621 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 622 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 623 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 624 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 625 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 626 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 627 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 628 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 629 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 630 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 631 out of 1000 EXPLAIN SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 632 out of 1000 EXPLAIN SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 633 out of 1000 EXPLAIN SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 634 out of 1000 EXPLAIN SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 635 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 636 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 637 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 638 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 639 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 640 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 641 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 642 out of 1000 EXPLAIN SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 643 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 644 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 645 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 646 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 647 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 648 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 649 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 650 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 651 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 652 out of 1000 EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('positionCaseInsensitiveUTF8'): positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 653 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 654 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 655 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 656 out of 1000 EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('positionCaseInsensitiveUTF8'): positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 657 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 658 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 659 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('positionCaseInsensitiveUTF8'): positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 660 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 661 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 662 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 663 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 664 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 665 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 666 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 667 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 668 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 669 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 670 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 671 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 672 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 673 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 674 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 675 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('positionCaseInsensitiveUTF8'): positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 676 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 678 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 679 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 680 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 681 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 682 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 683 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 684 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 685 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 686 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 688 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 689 out of 1000 SELECT positionCaseInsensitiveUTF8(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', toUInt256(7))), 7), haystack, pattern) FROM tab__fuzz_2 PREWHERE tab__fuzz_40 Error on processing query 'SELECT positionCaseInsensitiveUTF8(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', toUInt256(7))), 7), haystack, pattern) FROM tab__fuzz_2 PREWHERE tab__fuzz_40': Received from localhost:9000. DB::Exception: Illegal type String of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(toFixedString(toLowCardinality(toFixedString('aaaaa\0x', toUInt256(7))), 7), haystack, pattern) FROM tab__fuzz_2 PREWHERE tab__fuzz_40. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b982c2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 690 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 691 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 692 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 693 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 694 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 695 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 696 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 697 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 698 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 699 out of 1000 SELECT positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_1 Error on processing query 'SELECT positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98234e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 700 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 701 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 702 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 703 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 704 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 705 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 706 out of 1000 EXPLAIN QUERY TREE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 707 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 708 out of 1000 EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('positionCaseInsensitiveUTF8'): positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 709 out of 1000 EXPLAIN AST SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 710 out of 1000 EXPLAIN PIPELINE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 711 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 712 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 713 out of 1000 EXPLAIN SYNTAX SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 714 out of 1000 EXPLAIN ESTIMATE SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 715 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 716 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 717 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 718 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 719 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 720 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 721 out of 1000 SELECT positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 722 out of 1000 SELECT toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt128(12)), 12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 723 out of 1000 SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toUInt128(12)), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 724 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), toUInt128(12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toFixedString('aaaxxxaa\0xxx', 12), toUInt128(12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT toFixedString('aaaxxxaa\0xxx', 12), toUInt128(12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 725 out of 1000 SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 726 out of 1000 SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 727 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 728 out of 1000 EXPLAIN AST SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 729 out of 1000 EXPLAIN AST SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 730 out of 1000 EXPLAIN AST SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 731 out of 1000 EXPLAIN AST SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 732 out of 1000 EXPLAIN AST SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 733 out of 1000 EXPLAIN AST SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 734 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 735 out of 1000 EXPLAIN SYNTAX SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 736 out of 1000 EXPLAIN SYNTAX SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 737 out of 1000 EXPLAIN AST SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 738 out of 1000 EXPLAIN AST SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 739 out of 1000 EXPLAIN SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 740 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 ('toFixedString'): toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 742 out of 1000 EXPLAIN AST SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 743 out of 1000 EXPLAIN AST SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 744 out of 1000 EXPLAIN AST SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 745 out of 1000 EXPLAIN SYNTAX SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 746 out of 1000 EXPLAIN SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 747 out of 1000 EXPLAIN AST SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 748 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 749 out of 1000 EXPLAIN SYNTAX SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 750 out of 1000 SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 751 out of 1000 SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 752 out of 1000 EXPLAIN SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 753 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 ('toFixedString'): toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 754 out of 1000 EXPLAIN SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 755 out of 1000 EXPLAIN SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 756 out of 1000 EXPLAIN SYNTAX SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 757 out of 1000 EXPLAIN SYNTAX SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 758 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 759 out of 1000 EXPLAIN SYNTAX SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 760 out of 1000 EXPLAIN SYNTAX SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 761 out of 1000 EXPLAIN SYNTAX SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 762 out of 1000 EXPLAIN SYNTAX SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 763 out of 1000 EXPLAIN SYNTAX SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 764 out of 1000 EXPLAIN AST SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 765 out of 1000 EXPLAIN AST SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 766 out of 1000 EXPLAIN AST SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 767 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 768 out of 1000 EXPLAIN AST SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 769 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 ('toFixedString'): toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 770 out of 1000 EXPLAIN AST SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 771 out of 1000 EXPLAIN AST SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 772 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 773 out of 1000 EXPLAIN ESTIMATE SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 774 out of 1000 EXPLAIN ESTIMATE SELECT toFixedString(toFixedString('aaaxxxaa\0xxx', 12), 12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 775 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 776 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 777 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, 12, positionCaseInsensitiveUTF8(toFixedString('aaaaa\0x', toUInt256(toLowCardinality(7))), haystack, pattern) FROM tab__fuzz_2 PREWHERE toUInt8((number / toLowCardinality(8)) % 2) Error on processing query 'SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, 12, positionCaseInsensitiveUTF8(toFixedString('aaaaa\0x', toUInt256(toLowCardinality(7))), haystack, pattern) FROM tab__fuzz_2 PREWHERE toUInt8((number / toLowCardinality(8)) % 2)': Received from localhost:9000. DB::Exception: Illegal type String of argument of function positionCaseInsensitiveUTF8: In scope SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, 12, positionCaseInsensitiveUTF8(toFixedString('aaaaa\0x', toUInt256(toLowCardinality(7))), haystack, pattern) FROM tab__fuzz_2 PREWHERE toUInt8((number / toLowCardinality(8)) % 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b982c2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 778 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 779 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 780 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 781 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 782 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE r2 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE r2': Received from localhost:9000. DB::Exception: Unknown expression identifier 'r2' in scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE r2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 783 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt256(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 784 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt256(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 785 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt256(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'aaaxxxaa\0xxx', toUInt256(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', toUInt256(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 786 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 787 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 788 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 789 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 790 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 791 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 792 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, toLowCardinality(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, toLowCardinality(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, toLowCardinality(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 793 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 794 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 GROUP BY nums__fuzz_47, sum(if((b != 100) AND (c = 0), toLowCardinality(1), materialize(toLowCardinality(0)))), (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4) Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 GROUP BY nums__fuzz_47, sum(if((b != 100) AND (c = 0), toLowCardinality(1), materialize(toLowCardinality(0)))), (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4)': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_47' in scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 GROUP BY nums__fuzz_47, sum(if((b != 100) AND (c = 0), toLowCardinality(1), materialize(toLowCardinality(0)))), (x1 AND x2) AND (toNullable(0) AND toLowCardinality(1000) AND x3 AND x4). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 795 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 796 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 797 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 798 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 799 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 800 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 801 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 802 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 803 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 804 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 805 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 806 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 807 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 808 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 809 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 WHERE toFixedString(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7) Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 WHERE toFixedString(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7)': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: LowCardinality(FixedString(7)). In query SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 WHERE toFixedString(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 810 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 811 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 GROUP BY countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern), toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23)), toLowCardinality(23)) Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 GROUP BY countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern), toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23)), toLowCardinality(23))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 GROUP BY countSubstringsCaseInsensitiveUTF8(toNullable('aaaxxxaa\0xxx'), pattern), toFixedString(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23)), toLowCardinality(23)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 812 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, materialize(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 813 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, materialize(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 814 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, materialize(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 815 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, materialize(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 816 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, materialize(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 817 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 818 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 819 out of 1000 SELECT 'aaaxxxaa\0xxx', toNullable(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 GROUP BY (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000), if((a >= 0) AND notEquals(100) AND (c = 0), 1, 0), x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (toNullable(toUInt128(toNullable(2))) OR (x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))) Error on processing query 'SELECT 'aaaxxxaa\0xxx', toNullable(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 GROUP BY (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000), if((a >= 0) AND notEquals(100) AND (c = 0), 1, 0), x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (toNullable(toUInt128(toNullable(2))) OR (x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11)))))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT 'aaaxxxaa\0xxx', toNullable(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 GROUP BY (intDiv(toUInt32(rtime), 20) * 20) * materialize(1000), if((a >= 0) AND notEquals(100) AND (c = 0), 1, 0), x1 OR (((x2 OR x3) OR (x4 OR x5)) OR (toNullable(toUInt128(toNullable(2))) OR (x6 OR x7) OR (x8 OR (x9 OR (x10 OR x11))))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 820 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 821 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Query succeeded, using this AST as a start Fuzzing step 822 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 823 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Got boring AST Fuzzing step 824 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 825 out of 1000 SELECT materialize('aaaxxxaa\0xxx'), 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT materialize('aaaxxxaa\0xxx'), 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT materialize('aaaxxxaa\0xxx'), 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 826 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 827 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Got boring AST Fuzzing step 828 out of 1000 SELECT 'aaaxxxaa\0xxx', materialize(toUInt128(12)), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 829 out of 1000 SELECT 'aaaxxxaa\0xxx', materialize(toUInt128(12)), 12, materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 830 out of 1000 SELECT 'aaaxxxaa\0xxx', materialize(toUInt128(12)), 12, materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Got boring AST Fuzzing step 831 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 Query succeeded, using this AST as a start Fuzzing step 832 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, materialize(materialize(toLowCardinality(toNullable(materialize(1)))), toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 Error on processing query 'SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, materialize(materialize(toLowCardinality(toNullable(materialize(1)))), toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, materialize(materialize(toLowCardinality(toNullable(materialize(1)))), toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609bb4 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 833 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 Error on processing query 'SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 834 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 Query succeeded, using this AST as a start Fuzzing step 835 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt128(12), materialize(12), materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = toUInt256(materialize(toLowCardinality(2))) Query succeeded, using this AST as a start Fuzzing step 836 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaxxxaa\0xxx', toUInt128(12), materialize(12), materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 837 out of 1000 EXPLAIN AST SELECT 'aaaxxxaa\0xxx', toUInt128(12), materialize(12), materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 838 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'aaaxxxaa\0xxx', toUInt128(12), materialize(12), materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(toLowCardinality(2)) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'aaaxxxaa\0xxx', toUInt128(12), materialize(12), materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(toLowCardinality(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 (''aaaxxxaa\0xxx''): 'aaaxxxaa\0xxx', toUInt128(12), materialize(12), materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuz. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 839 out of 1000 EXPLAIN AST SELECT 'aaaxxxaa\0xxx', toUInt128(12), materialize(12), materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(toLowCardinality(2)) Got boring AST Fuzzing step 840 out of 1000 EXPLAIN AST SELECT 'aaaxxxaa\0xxx', toUInt128(12), materialize(12), materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(toLowCardinality(2)) Got boring AST Fuzzing step 841 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaxxxaa\0xxx', toUInt128(12), materialize(12), materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 842 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt128(12), materialize(12), materialize(toUInt128(toUInt128(12))), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 843 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = materialize(toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 844 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = materialize(toLowCardinality(2)) Got boring AST Fuzzing step 845 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 846 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(toLowCardinality(2)) Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(toLowCardinality(2))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(toLowCardinality(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 847 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 848 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = materialize(toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 849 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = materialize(toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 850 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE equals(id) Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE equals(id)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE equals(id). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 851 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(toLowCardinality(2)) Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(toLowCardinality(2))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(toLowCardinality(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 852 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE equals(materialize(toLowCardinality(2))) Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE equals(materialize(toLowCardinality(2)))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE equals(materialize(toLowCardinality(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 853 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = materialize(toLowCardinality(2)) WHERE toUInt128(23) Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = materialize(toLowCardinality(2)) WHERE toUInt128(23)': Received from localhost:9000. DB::Exception: Illegal type UInt128 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. ./build_docker/./src/Columns/FilterDescription.cpp:38: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x0000000037f98d9a 5. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x0000000034e16cd8 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000034e00ca0 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d0eea9 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 13. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 18. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 19. ? @ 0x00007fa035818ac3 20. ? @ 0x00007fa0358aa850 Fuzzing step 854 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, toLowCardinality(12), toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 855 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, toLowCardinality(12), toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(2) Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, toLowCardinality(12), toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(2)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, toLowCardinality(12), toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 856 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, toLowCardinality(12), toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(toLowCardinality(toLowCardinality('aaaaa\0x')), id, materialize(toLowCardinality(2))) Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, toLowCardinality(12), toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(toLowCardinality(toLowCardinality('aaaaa\0x')), id, materialize(toLowCardinality(2)))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope SELECT 'aaaxxxaa\0xxx', 12, toLowCardinality(12), toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(toLowCardinality(toLowCardinality('aaaaa\0x')), id, materialize(toLowCardinality(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 857 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaxxxaa\0xxx', 12, toLowCardinality(12), toUInt128(version_pair[materialize(1)], 12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Error on processing query 'EXPLAIN ESTIMATE SELECT 'aaaxxxaa\0xxx', 12, toLowCardinality(12), toUInt128(version_pair[materialize(1)], 12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT 'aaaxxxaa\0xxx', 12, toLowCardinality(12), toUInt128(version_pair[materialize(1)], 12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x00000000349562f6 20. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 21. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 858 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, toLowCardinality(12), toUInt128(id = 1, 12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(toLowCardinality(2)) Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, toLowCardinality(12), toUInt128(id = 1, 12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(toLowCardinality(2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt128'. Expected 1 argument, got 2 arguments: In scope SELECT 'aaaxxxaa\0xxx', 12, toLowCardinality(12), toUInt128(id = 1, 12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(toLowCardinality(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000890dd2e 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000088e5f75 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 859 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE equals(id) Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE equals(id)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE equals(id). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 860 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, toLowCardinality(12), toUInt128(12), positionCaseInsensitiveUTF8(haystack) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, toLowCardinality(12), toUInt128(12), positionCaseInsensitiveUTF8(haystack) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2)': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT 'aaaxxxaa\0xxx', 12, toLowCardinality(12), toUInt128(12), positionCaseInsensitiveUTF8(haystack) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98234e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 861 out of 1000 SELECT toNullable('aaaxxxaa\0xxx'), 12, toLowCardinality(12), toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 862 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, toLowCardinality(12), toUInt128(materialize(toFixedString('OK', 2)), 12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, toLowCardinality(12), toUInt128(materialize(toFixedString('OK', 2)), 12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt128'. Expected 1 argument, got 2 arguments: In scope SELECT 'aaaxxxaa\0xxx', 12, toLowCardinality(12), toUInt128(materialize(toFixedString('OK', 2)), 12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000890dd2e 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000088e5f75 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 863 out of 1000 SELECT toNullable('aaaxxxaa\0xxx'), 12, toLowCardinality(12), toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = materialize(2) Got boring AST Fuzzing step 864 out of 1000 SELECT toNullable('aaaxxxaa\0xxx'), 12, toLowCardinality(12), toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 865 out of 1000 SELECT toNullable(toLowCardinality('aaaxxxaa\0xxx')), 12, toLowCardinality(12), toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 866 out of 1000 SELECT toNullable('aaaxxxaa\0xxx'), 12, toLowCardinality(12), toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE equals(materialize(2)) Error on processing query 'SELECT toNullable('aaaxxxaa\0xxx'), 12, toLowCardinality(12), toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE equals(materialize(2))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT toNullable('aaaxxxaa\0xxx'), 12, toLowCardinality(12), toUInt128(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE equals(materialize(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 867 out of 1000 SELECT toNullable(toLowCardinality('aaaxxxaa\0xxx')), toUInt128(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 868 out of 1000 SELECT toNullable(toLowCardinality('aaaxxxaa\0xxx')), toUInt128(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 869 out of 1000 SELECT toLowCardinality('aaaxxxaa\0xxx'), toUInt128(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 870 out of 1000 SELECT toLowCardinality('aaaxxxaa\0xxx'), toUInt128(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(materialize(2)) Error on processing query 'SELECT toLowCardinality('aaaxxxaa\0xxx'), toUInt128(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(materialize(2))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT toLowCardinality('aaaxxxaa\0xxx'), toUInt128(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(materialize(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 871 out of 1000 SELECT toLowCardinality('aaaxxxaa\0xxx'), toUInt128(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = materialize(2) Query succeeded, using this AST as a start Fuzzing step 872 out of 1000 SELECT toLowCardinality('aaaxxxaa\0xxx'), toUInt128(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(2) Error on processing query 'SELECT toLowCardinality('aaaxxxaa\0xxx'), toUInt128(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(2)': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT toLowCardinality('aaaxxxaa\0xxx'), toUInt128(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = materialize(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 873 out of 1000 SELECT toLowCardinality('aaaxxxaa\0xxx'), toUInt128(12), 12, materialize(toUInt256(12)), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 874 out of 1000 EXPLAIN QUERY TREE dump_passes = true, dump_ast = true SELECT toLowCardinality('aaaxxxaa\0xxx'), 12, 12, materialize(toUInt256(12)), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Error on processing query 'EXPLAIN QUERY TREE dump_passes = true, dump_ast = true SELECT toLowCardinality('aaaxxxaa\0xxx'), 12, 12, materialize(toUInt256(12)), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "dump_passes" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495fb68 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 875 out of 1000 SELECT toLowCardinality('aaaxxxaa\0xxx'), toUInt128(12), 12, materialize(toUInt256(12)), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 876 out of 1000 SELECT toLowCardinality('aaaxxxaa\0xxx'), toUInt128(12), 12, materialize(toUInt256(12)), toFixedString('test_cluster_two_shards', toUInt256(23)), 23, positionCaseInsensitiveUTF8(toNullable(toLowCardinality('test_cluster_two_shards')), haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'SELECT toLowCardinality('aaaxxxaa\0xxx'), toUInt128(12), 12, materialize(toUInt256(12)), toFixedString('test_cluster_two_shards', toUInt256(23)), 23, positionCaseInsensitiveUTF8(toNullable(toLowCardinality('test_cluster_two_shards')), haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type String of argument of function positionCaseInsensitiveUTF8: In scope SELECT toLowCardinality('aaaxxxaa\0xxx'), toUInt128(12), 12, materialize(toUInt256(12)), toFixedString('test_cluster_two_shards', toUInt256(23)), 23, positionCaseInsensitiveUTF8(toNullable(toLowCardinality('test_cluster_two_shards')), haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b982c2e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 877 out of 1000 SELECT toLowCardinality('aaaxxxaa\0xxx'), toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 878 out of 1000 SELECT toLowCardinality('aaaxxxaa\0xxx'), toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', 23), 23), positionCaseInsensitiveUTF8(haystack) FROM tab__fuzz_2 PREWHERE equals(materialize(2)) Error on processing query 'SELECT toLowCardinality('aaaxxxaa\0xxx'), toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', 23), 23), positionCaseInsensitiveUTF8(haystack) FROM tab__fuzz_2 PREWHERE equals(materialize(2))': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT toLowCardinality('aaaxxxaa\0xxx'), toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', 23), 23), positionCaseInsensitiveUTF8(haystack) FROM tab__fuzz_2 PREWHERE equals(materialize(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98234e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 879 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(2) Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(2)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 880 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 881 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 882 out of 1000 EXPLAIN PIPELINE SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 883 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 (''aaaxxxaa\0xxx''): 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), pos. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 884 out of 1000 EXPLAIN SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 885 out of 1000 EXPLAIN SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 886 out of 1000 EXPLAIN SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 887 out of 1000 EXPLAIN SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 888 out of 1000 EXPLAIN SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 889 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 (''aaaxxxaa\0xxx''): 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), pos. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 890 out of 1000 EXPLAIN SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 891 out of 1000 EXPLAIN SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 892 out of 1000 EXPLAIN SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 893 out of 1000 EXPLAIN AST SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 894 out of 1000 EXPLAIN AST SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 895 out of 1000 EXPLAIN PIPELINE SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 896 out of 1000 EXPLAIN PIPELINE SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 897 out of 1000 EXPLAIN PIPELINE SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 898 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 (''aaaxxxaa\0xxx''): 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), pos. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 899 out of 1000 EXPLAIN PIPELINE SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 900 out of 1000 EXPLAIN PIPELINE SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 901 out of 1000 EXPLAIN PIPELINE SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 902 out of 1000 EXPLAIN SYNTAX SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 903 out of 1000 EXPLAIN SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 904 out of 1000 EXPLAIN SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 905 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 906 out of 1000 EXPLAIN SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 907 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 (''aaaxxxaa\0xxx''): 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), pos. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 908 out of 1000 EXPLAIN SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', toUInt256(23)), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 909 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', 23), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 910 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', 23), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', 23), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', 23), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 911 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString(toFixedString('test_cluster_two_shards', 23), 23), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 912 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt128(12), toUInt256(12), toUInt256(12), toFixedString('test_cluster_two_shards', 23), 23, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 913 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString('test_cluster_two_shards', 23), 23, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 914 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), b != toUInt256(toFixedString('2022-01-01', 10), 100), toFixedString(toNullable(toFixedString('test_cluster_two_shards', 23)), 23), 23, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), b != toUInt256(toFixedString('2022-01-01', 10), 100), toFixedString(toNullable(toFixedString('test_cluster_two_shards', 23)), 23), 23, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), b != toUInt256(toFixedString('2022-01-01', 10), 100), toFixedString(toNullable(toFixedString('test_cluster_two_shards', 23)), 23), 23, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 915 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString('test_cluster_two_shards', 23), 23, positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_1 Error on processing query 'SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString('test_cluster_two_shards', 23), 23, positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_1': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT 'aaaxxxaa\0xxx', toUInt128(12), 12, toUInt256(12), toFixedString('test_cluster_two_shards', 23), 23, positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_1. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98234e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 916 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, 'test_cluster_two_shards', 23, 23, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 917 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 918 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 919 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 920 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 921 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 922 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 923 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 924 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 925 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 926 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 927 out of 1000 EXPLAIN SYNTAX SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 928 out of 1000 EXPLAIN SYNTAX SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 929 out of 1000 EXPLAIN SYNTAX SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 930 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 931 out of 1000 EXPLAIN QUERY TREE SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 932 out of 1000 EXPLAIN AST SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 933 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 934 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 935 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 936 out of 1000 EXPLAIN SYNTAX SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 937 out of 1000 EXPLAIN SYNTAX SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 938 out of 1000 EXPLAIN SYNTAX SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 939 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 940 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 941 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack) FROM tab__fuzz_0 PREWHERE id = 2 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack) FROM tab__fuzz_0 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack) FROM tab__fuzz_0 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98234e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 942 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 943 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 944 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 945 out of 1000 EXPLAIN ESTIMATE SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 946 out of 1000 EXPLAIN AST SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 947 out of 1000 EXPLAIN AST SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 948 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, toLowCardinality(toNullable(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 949 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, toLowCardinality(toNullable(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 950 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, toLowCardinality(toNullable(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 951 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt256(12), 12, toLowCardinality(toNullable(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 952 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt256(12), 12, toNullable(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 'aaaxxxaa\0xxx', toUInt256(12), 12, toNullable(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', toUInt256(12), 12, toNullable(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 953 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt256(toUInt256(materialize(2)), 12), 12, toNullable(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE sum(if((a >= 0) AND greater(c, materialize(materialize(1)), 220), 1, toFixedString('test_cluster_two_shards', 23), 0)) IGNORE NULLS Error on processing query 'SELECT 'aaaxxxaa\0xxx', toUInt256(toUInt256(materialize(2)), 12), 12, toNullable(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE sum(if((a >= 0) AND greater(c, materialize(materialize(1)), 220), 1, toFixedString('test_cluster_two_shards', 23), 0)) IGNORE NULLS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt256'. Expected 1 argument, got 2 arguments: In scope SELECT 'aaaxxxaa\0xxx', toUInt256(toUInt256(materialize(2)), 12), 12, toNullable(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = toLowCardinality(2) WHERE sum(if((a >= 0) AND greater(c, materialize(materialize(1)), 220), 1, toFixedString('test_cluster_two_shards', 23), 0)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x0000000008405a57 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x00000000083ffcc9 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000089618ce 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000893c835 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60aa37 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 954 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt256(12), 12, toLowCardinality(toNullable(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 955 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt256(12), 12, toNullable(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 956 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt256(12), 12, toNullable(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 SELECT 'aaaxxxaa\0xxx', toUInt256(12), 12, toNullable(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 'aaaxxxaa\0xxx', toUInt256(12), 12, toNullable(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', toUInt256(12), 12, toNullable(12), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 958 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 959 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 960 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 961 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 962 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, 12, 12, toLowCardinality(8), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 GROUP BY x10 OR x11, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), 12, pattern), toUInt8((number / 2) % materialize(toLowCardinality(2))) Error on processing query 'SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, 12, 12, toLowCardinality(8), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 GROUP BY x10 OR x11, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), 12, pattern), toUInt8((number / 2) % materialize(toLowCardinality(2)))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, 12, 12, toLowCardinality(8), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE id = 2 GROUP BY x10 OR x11, countSubstringsCaseInsensitiveUTF8(toFixedString('aaaxxxaa\0xxx', 12, 12), 12, pattern), toUInt8((number / 2) % materialize(toLowCardinality(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 963 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, 12, 12, toFixedString(toNullable('aaaaa\0x'), toNullable(7)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), id, 2) Error on processing query 'SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, 12, 12, toFixedString(toNullable('aaaaa\0x'), toNullable(7)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), id, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, 12, 12, toFixedString(toNullable('aaaaa\0x'), toNullable(7)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), toLowCardinality(toLowCardinality(toNullable(toUInt128(23))))), id, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 964 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, toNullable(12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 965 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, toNullable(12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, toNullable(12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, toNullable(12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 966 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, toNullable(12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 967 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, toNullable(12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE toFixedString('aaaaa\0x', toNullable(toUInt256(7)), toNullable(toLowCardinality(toNullable(7)))) Error on processing query 'SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, toNullable(12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE toFixedString('aaaaa\0x', toNullable(toUInt256(7)), toNullable(toLowCardinality(toNullable(7))))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, toNullable(12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE toFixedString('aaaaa\0x', toNullable(toUInt256(7)), toNullable(toLowCardinality(toNullable(7)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 968 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, toNullable(12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 969 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12), toNullable(12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 970 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toNullable(12)), toNullable(12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 971 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toNullable(12)), toNullable(12), 12, toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'SELECT toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toNullable(12)), toNullable(12), 12, toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toNullable(12)), toNullable(12), 12, toFixedString(toNullable(materialize(toNullable('aaaaa\0x'))), 7), positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_2 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98234e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 972 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toNullable(12)), toNullable(12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 WHERE id = toLowCardinality(2) Query succeeded, using this AST as a start Fuzzing step 973 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toNullable(12)), toNullable(12), 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 974 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(toNullable(12)), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 975 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 976 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Got boring AST Fuzzing step 977 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), toNullable(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 978 out of 1000 SELECT toFixedString(toNullable(toFixedString('aaaxxxaa\0xxx', 12)), 12), toNullable(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 979 out of 1000 SELECT toFixedString(toNullable('aaaxxxaa\0xxx', 12), 12), toNullable(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'SELECT toFixedString(toNullable('aaaxxxaa\0xxx', 12), 12), toNullable(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toFixedString(toNullable('aaaxxxaa\0xxx', 12), 12), toNullable(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 980 out of 1000 SELECT toFixedString(toNullable(toFixedString('aaaxxxaa\0xxx', 12)), 12), toNullable(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 981 out of 1000 SELECT toFixedString(toNullable(toFixedString('aaaxxxaa\0xxx', 12)), 12), toNullable(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 982 out of 1000 SELECT toFixedString(12), toNullable(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Error on processing query 'SELECT toFixedString(12), toNullable(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toFixedString(12), toNullable(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 983 out of 1000 SELECT toFixedString(toNullable(toFixedString('aaaxxxaa\0xxx', 12)), 12), toNullable(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Got boring AST Fuzzing step 984 out of 1000 SELECT toFixedString(toNullable(toFixedString('aaaxxxaa\0xxx', 12)), 12), toNullable(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 985 out of 1000 SELECT toFixedString(toNullable(toFixedString('aaaxxxaa\0xxx', 12)), 12), toNullable(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 986 out of 1000 SELECT toFixedString(toNullable(toFixedString('aaaxxxaa\0xxx', 12)), 12), toNullable(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 987 out of 1000 SELECT toFixedString(toNullable(toFixedString('aaaxxxaa\0xxx', 12)), 12), toNullable(12), 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 988 out of 1000 EXPLAIN PIPELINE compact = true SELECT toFixedString(12), toNullable(12), 12, 12, positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_2 PREWHERE id = 2 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT toFixedString(12), toNullable(12), 12, 12, positionCaseInsensitiveUTF8(pattern) FROM tab__fuzz_2 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 989 out of 1000 SELECT toFixedString(toNullable(toFixedString('aaaxxxaa\0xxx', 12)), 12), 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_2 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 990 out of 1000 SELECT toNullable(toFixedString('aaaxxxaa\0xxx', 12)), 12, 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_0 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 991 out of 1000 SELECT toFixedString('aaaxxxaa\0xxx', 12), 12, 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 992 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Query succeeded, using this AST as a start Fuzzing step 993 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 994 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 GROUP BY toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toLowCardinality(toUInt256(23)), 23), toUInt128(1), toFixedString('aaaaa\0x', 7) Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 GROUP BY toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toLowCardinality(toUInt256(23)), 23), toUInt128(1), toFixedString('aaaaa\0x', 7)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 GROUP BY toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toLowCardinality(toUInt256(23)), 23), toUInt128(1), toFixedString('aaaaa\0x', 7). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 995 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE sum(multiIf(s IN ('a', 'b'), toUInt256(1), toLowCardinality(toNullable(0)))) IGNORE NULLS / count() Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE sum(multiIf(s IN ('a', 'b'), toUInt256(1), toLowCardinality(toNullable(0)))) IGNORE NULLS / count()': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 WHERE sum(multiIf(s IN ('a', 'b'), toUInt256(1), toLowCardinality(toNullable(0)))) IGNORE NULLS / count(). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 996 out of 1000 SELECT 'aaaxxxaa\0xxx', toLowCardinality(12), 12, 12, 12, materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2 Error on processing query 'SELECT 'aaaxxxaa\0xxx', toLowCardinality(12), 12, 12, 12, materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of argument of function positionCaseInsensitiveUTF8: In scope SELECT 'aaaxxxaa\0xxx', toLowCardinality(12), 12, 12, 12, materialize(toUInt128(12)), positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_3 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98293e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 997 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE id = 2 Got boring AST Fuzzing step 998 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, 12, 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(id, (a >= 0) AND (c > 220), 2) WHERE id = 2 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, 12, 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(id, (a >= 0) AND (c > 220), 2) WHERE id = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 'aaaxxxaa\0xxx', 12, 12, 12, 12, 12, positionCaseInsensitiveUTF8(haystack, pattern) FROM tab__fuzz_1 PREWHERE equals(id, (a >= 0) AND (c > 220), 2) WHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 999 out of 1000 SELECT 'aaaxxxaa\0xxx', 12, materialize(toNullable(12)), 12, 12, 12, positionCaseInsensitiveUTF8(haystack) FROM tab__fuzz_0 PREWHERE id = 2 Error on processing query 'SELECT 'aaaxxxaa\0xxx', 12, materialize(toNullable(12)), 12, 12, 12, positionCaseInsensitiveUTF8(haystack) FROM tab__fuzz_0 PREWHERE id = 2': Received from localhost:9000. DB::Exception: Number of arguments for function positionCaseInsensitiveUTF8 doesn't match: passed 1, should be 2 or 3: In scope SELECT 'aaaxxxaa\0xxx', 12, materialize(toNullable(12)), 12, 12, 12, positionCaseInsensitiveUTF8(haystack) FROM tab__fuzz_0 PREWHERE id = 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x00000000083ac8cd 4. DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1, (DB::HaystackNeedleOrderIsConfigurable)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001b98234e 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000837e6e6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 11. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 0 out of 1 Query succeeded, using this AST as a start DROP TABLE IF EXISTS tab__fuzz_0 DROP TABLE IF EXISTS tab__fuzz_1 DROP TABLE IF EXISTS tab__fuzz_2 DROP TABLE IF EXISTS tab__fuzz_3 DROP TABLE IF EXISTS tab__fuzz_4 DROP TABLE IF EXISTS tab__fuzz_5 DROP TABLE IF EXISTS tab__fuzz_6 DROP TABLE IF EXISTS tab__fuzz_7 DROP TABLE IF EXISTS tab__fuzz_8 DROP TABLE IF EXISTS tab__fuzz_9 DROP TABLE IF EXISTS tab__fuzz_10 DROP TABLE IF EXISTS tab__fuzz_11 DROP TABLE IF EXISTS tab__fuzz_12 DROP TABLE IF EXISTS tab__fuzz_13 DROP TABLE IF EXISTS tab__fuzz_14 DROP TABLE IF EXISTS tab__fuzz_15 DROP TABLE IF EXISTS tab__fuzz_16 DROP TABLE IF EXISTS tab__fuzz_17 DROP TABLE IF EXISTS tab__fuzz_18 DROP TABLE IF EXISTS tab__fuzz_19 DROP TABLE IF EXISTS tab__fuzz_20 DROP TABLE IF EXISTS tab__fuzz_21 DROP TABLE IF EXISTS tab__fuzz_22 DROP TABLE IF EXISTS tab__fuzz_23 DROP TABLE IF EXISTS tab__fuzz_24 DROP TABLE IF EXISTS tab__fuzz_25 DROP TABLE IF EXISTS tab__fuzz_26 DROP TABLE IF EXISTS tab__fuzz_27 DROP TABLE IF EXISTS tab__fuzz_28 DROP TABLE IF EXISTS tab__fuzz_29 DROP TABLE IF EXISTS tab__fuzz_30 DROP TABLE IF EXISTS tab__fuzz_31 DROP TABLE IF EXISTS tab__fuzz_32 DROP TABLE IF EXISTS tab__fuzz_33 DROP TABLE IF EXISTS tab__fuzz_34 DROP TABLE IF EXISTS tab__fuzz_35 DROP TABLE IF EXISTS tab__fuzz_36 DROP TABLE IF EXISTS tab__fuzz_37 DROP TABLE IF EXISTS tab__fuzz_38 DROP TABLE IF EXISTS tab__fuzz_39 DROP TABLE IF EXISTS tab__fuzz_40 DROP TABLE IF EXISTS tab__fuzz_41 DROP TABLE IF EXISTS tab__fuzz_42 DROP TABLE IF EXISTS tab__fuzz_43 DROP TABLE IF EXISTS tab__fuzz_44 DROP TABLE IF EXISTS tab__fuzz_45 DROP TABLE IF EXISTS tab__fuzz_46 DROP TABLE IF EXISTS tab__fuzz_47 DROP TABLE IF EXISTS tab__fuzz_48 Fuzzing step 0 out of 1 Query succeeded, using this AST as a start Fuzzing step 0 out of 1 Query succeeded, using this AST as a start Fuzzing step 0 out of 50 Query succeeded, using this AST as a start Fuzzing step 1 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_0 ( `k` UInt64, `v` LowCardinality(UInt64) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 2 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_1 ( `k` LowCardinality(UInt64), `v` LowCardinality(UInt64) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 3 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_2 ( `k` Tuple(Date32, UInt8, Decimal(38, 2), Array(Float32), UInt64, UUID), `v` LowCardinality(UInt64) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 4 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_3 ( `k` Tuple(Date32, UInt8, Decimal(38, 2), Array(LowCardinality(Float32)), UInt64, UUID), `v` Nullable(UInt64) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 5 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_4 ( `k` Tuple(Date32, UInt8, Decimal(38, 2), Array(LowCardinality(Float32)), UInt64, UUID), `v` Array(Nullable(UInt64)) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 6 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_5 ( `k` Tuple(Date32, Nullable(UInt8), Decimal(18, 9), Array(LowCardinality(Float32)), Decimal(38, 17), UUID), `v` Array(UUID) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 7 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_6 ( `k` UUID, `v` Array(FixedString(16)) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 8 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_7 ( `k` UUID, `v` Array(LowCardinality(FixedString(16))) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 9 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_8 ( `k` UUID, `v` Array(Array(LowCardinality(FixedString(16)))) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 10 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_9 ( `k` UUID, `v` Array(Array(LowCardinality(FixedString(16)))) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 11 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_10 ( `k` Nullable(UUID), `v` Array(Array(LowCardinality(FixedString(16)))) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 12 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_11 ( `k` UInt32, `v` Array(Array(LowCardinality(FixedString(16)))) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 13 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_12 ( `k` UInt32, `v` Array(Array(LowCardinality(FixedString(16)))) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 14 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_13 ( `k` Decimal(18, 14), `v` Array(Tuple(UInt64)) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 15 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_14 ( `k` Decimal(18, 14), `v` Array(Int16) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 16 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_15 ( `k` Decimal(18, 10), `v` Array(Nullable(Int16)) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 17 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_16 ( `k` Decimal(18, 10), `v` Array(Nullable(Int16)) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 18 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_17 ( `k` Decimal(18, 10), `v` Array(Nullable(Int16)) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 19 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_18 ( `k` Tuple(UInt64, Tuple(Tuple(Int64, DateTime64(3), UInt8, DateTime, UInt16), Decimal(18, 6)), FixedString(7), String), `v` Array(LowCardinality(Nullable(Int16))) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 20 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_19 ( `k` Tuple(UUID, Tuple(Int16, Nullable(Decimal(18, 6))), Array(FixedString(7)), String), `v` Array(LowCardinality(Nullable(Int16))) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 21 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_20 ( `k` Tuple(LowCardinality(UUID), Tuple(Int16, Decimal(18, 6)), Array(LowCardinality(FixedString(7))), Nullable(String)), `v` Array(Decimal(76, 73)) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 22 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_21 ( `k` Tuple(UUID, Decimal(18, 8), Array(FixedString(18)), Int8), `v` Array(UInt64) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 23 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_22 ( `k` Tuple(UUID, Nullable(Decimal(18, 8)), Array(FixedString(18)), Nullable(Int8)), `v` Array(UInt64) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 24 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_23 ( `k` Tuple(UUID, Nullable(Decimal(18, 8)), Array(FixedString(18)), Nullable(Int8)), `v` Array(LowCardinality(UInt64)) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 25 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_24 ( `k` Tuple(UUID, Int32, UInt32, Nullable(Int8)), `v` Array(DateTime64(3)) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 26 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_25 ( `k` Tuple(UUID, UInt16, UInt32, Nullable(Int8)), `v` Array(DateTime64(3)) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 27 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_26 ( `k` Tuple(LowCardinality(UUID), Nullable(UInt16), Array(UInt32), Nullable(Int8)), `v` Array(DateTime64(3)) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 28 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_27 ( `k` Tuple(Decimal(9, 1), UInt16, Array(Nullable(UInt32)), Array(Int8)), `v` Int64 ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 29 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_28 ( `k` Tuple(Decimal(9, 1), UInt8, Array(Nullable(UInt32)), Array(Int8)), `v` Int64 ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 30 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_29 ( `k` Tuple(Decimal(9, 1), Nullable(UInt8), Array(Nullable(UInt32)), Array(Int8)), `v` Int64 ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 31 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_30 ( `k` Decimal(38, 19), `v` Int8 ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 32 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_31 ( `k` Array(Decimal(38, 19)), `v` Int8 ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 33 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_32 ( `k` Array(Decimal(38, 19)), `v` Int8 ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 34 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_33 ( `k` Array(Decimal(38, 19)), `v` Nullable(Int8) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 35 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_34 ( `k` Array(Decimal(38, 19)), `v` LowCardinality(Nullable(Int8)) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 36 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_35 ( `k` Array(Nullable(Decimal(38, 19))), `v` LowCardinality(Nullable(Int8)) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 37 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_36 ( `k` Array(Nullable(Decimal(38, 19))), `v` LowCardinality(Nullable(Int8)) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 38 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_37 ( `k` Decimal(38, 23), `v` UInt16 ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 39 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_38 ( `k` Decimal(38, 23), `v` UInt16 ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 40 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_39 ( `k` Nullable(Decimal(38, 23)), `v` LowCardinality(UInt16) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 41 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_40 ( `k` Nullable(Decimal(38, 23)), `v` LowCardinality(UInt16) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 42 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_41 ( `k` Decimal(38, 23), `v` LowCardinality(UInt16) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 43 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_42 ( `k` Nullable(Decimal(38, 23)), `v` LowCardinality(UInt16) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 44 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_43 ( `k` Nullable(Decimal(38, 23)), `v` DateTime64(3) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 45 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_44 ( `k` Nullable(Decimal(38, 23)), `v` DateTime64(3) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 46 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_45 ( `k` Array(Nullable(Decimal(38, 23))), `v` Float64 ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 47 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_46 ( `k` Array(Array(Nullable(Decimal(38, 23)))), `v` Array(Float64) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 48 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_47 ( `k` UInt256, `v` Array(Float64) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 49 out of 50 CREATE TABLE t_sparse_mutations_4__fuzz_48 ( `k` LowCardinality(UInt256), `v` Array(Float64) ) ENGINE = MergeTree ORDER BY k SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 Query succeeded, using this AST as a start Fuzzing step 0 out of 1 Query succeeded, using this AST as a start INSERT INTO t_sparse_mutations_4__fuzz_44 SELECT number, 0 FROM numbers(10000) INSERT INTO t_sparse_mutations_4__fuzz_38 SELECT number, 0 FROM numbers(10000) INSERT INTO t_sparse_mutations_4__fuzz_36 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_36 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_35 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_35 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_32 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_32 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_30 SELECT number, 0 FROM numbers(10000) INSERT INTO t_sparse_mutations_4__fuzz_40 SELECT number, 0 FROM numbers(10000) INSERT INTO t_sparse_mutations_4__fuzz_28 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_28 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Tuple can only be performed between tuple types or from String. Left type: UInt64, right type: Tuple(Decimal(9, 1), UInt8, Array(Nullable(UInt32)), Array(Int8)): while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::(anonymous namespace)::FunctionCast::createTupleWrapper(std::shared_ptr const&, DB::DataTypeTuple const*) const @ 0x000000000871abc1 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cfa00 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_27 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_27 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Tuple can only be performed between tuple types or from String. Left type: UInt64, right type: Tuple(Decimal(9, 1), UInt16, Array(Nullable(UInt32)), Array(Int8)): while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::(anonymous namespace)::FunctionCast::createTupleWrapper(std::shared_ptr const&, DB::DataTypeTuple const*) const @ 0x000000000871abc1 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cfa00 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_26 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_26 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Tuple can only be performed between tuple types or from String. Left type: UInt64, right type: Tuple(LowCardinality(UUID), Nullable(UInt16), Array(UInt32), Nullable(Int8)): while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::(anonymous namespace)::FunctionCast::createTupleWrapper(std::shared_ptr const&, DB::DataTypeTuple const*) const @ 0x000000000871abc1 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cfa00 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_16 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_16 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column v. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_22 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_22 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Tuple can only be performed between tuple types or from String. Left type: UInt64, right type: Tuple(UUID, Nullable(Decimal(18, 8)), Array(FixedString(18)), Nullable(Int8)): while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::(anonymous namespace)::FunctionCast::createTupleWrapper(std::shared_ptr const&, DB::DataTypeTuple const*) const @ 0x000000000871abc1 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cfa00 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_19 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_19 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Tuple can only be performed between tuple types or from String. Left type: UInt64, right type: Tuple(UUID, Tuple(Int16, Nullable(Decimal(18, 6))), Array(FixedString(7)), String): while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::(anonymous namespace)::FunctionCast::createTupleWrapper(std::shared_ptr const&, DB::DataTypeTuple const*) const @ 0x000000000871abc1 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cfa00 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_47 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_47 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column v. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_20 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_20 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Tuple can only be performed between tuple types or from String. Left type: UInt64, right type: Tuple(LowCardinality(UUID), Tuple(Int16, Decimal(18, 6)), Array(LowCardinality(FixedString(7))), Nullable(String)): while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::(anonymous namespace)::FunctionCast::createTupleWrapper(std::shared_ptr const&, DB::DataTypeTuple const*) const @ 0x000000000871abc1 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cfa00 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_48 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_48 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column v. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_15 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_15 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column v. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_34 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_34 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_23 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_23 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Tuple can only be performed between tuple types or from String. Left type: UInt64, right type: Tuple(UUID, Nullable(Decimal(18, 8)), Array(FixedString(18)), Nullable(Int8)): while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::(anonymous namespace)::FunctionCast::createTupleWrapper(std::shared_ptr const&, DB::DataTypeTuple const*) const @ 0x000000000871abc1 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cfa00 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_12 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_12 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column v. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_3 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_3 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Tuple can only be performed between tuple types or from String. Left type: UInt64, right type: Tuple(Date32, UInt8, Decimal(38, 2), Array(LowCardinality(Float32)), UInt64, UUID): while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::(anonymous namespace)::FunctionCast::createTupleWrapper(std::shared_ptr const&, DB::DataTypeTuple const*) const @ 0x000000000871abc1 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cfa00 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_9 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_9 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column v. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_42 SELECT number, 0 FROM numbers(10000) INSERT INTO t_sparse_mutations_4__fuzz_21 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_21 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Tuple can only be performed between tuple types or from String. Left type: UInt64, right type: Tuple(UUID, Decimal(18, 8), Array(FixedString(18)), Int8): while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::(anonymous namespace)::FunctionCast::createTupleWrapper(std::shared_ptr const&, DB::DataTypeTuple const*) const @ 0x000000000871abc1 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cfa00 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_14 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_14 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column v. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_8 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_8 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column v. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_7 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_7 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column v. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_6 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_6 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column v. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_2 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_2 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Tuple can only be performed between tuple types or from String. Left type: UInt64, right type: Tuple(Date32, UInt8, Decimal(38, 2), Array(Float32), UInt64, UUID): while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::(anonymous namespace)::FunctionCast::createTupleWrapper(std::shared_ptr const&, DB::DataTypeTuple const*) const @ 0x000000000871abc1 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cfa00 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_25 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_25 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Tuple can only be performed between tuple types or from String. Left type: UInt64, right type: Tuple(UUID, UInt16, UInt32, Nullable(Int8)): while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::(anonymous namespace)::FunctionCast::createTupleWrapper(std::shared_ptr const&, DB::DataTypeTuple const*) const @ 0x000000000871abc1 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cfa00 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_24 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_24 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Tuple can only be performed between tuple types or from String. Left type: UInt64, right type: Tuple(UUID, Int32, UInt32, Nullable(Int8)): while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::(anonymous namespace)::FunctionCast::createTupleWrapper(std::shared_ptr const&, DB::DataTypeTuple const*) const @ 0x000000000871abc1 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cfa00 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_31 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_31 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_5 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_5 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Tuple can only be performed between tuple types or from String. Left type: UInt64, right type: Tuple(Date32, Nullable(UInt8), Decimal(18, 9), Array(LowCardinality(Float32)), Decimal(38, 17), UUID): while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::(anonymous namespace)::FunctionCast::createTupleWrapper(std::shared_ptr const&, DB::DataTypeTuple const*) const @ 0x000000000871abc1 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cfa00 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_29 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_29 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Tuple can only be performed between tuple types or from String. Left type: UInt64, right type: Tuple(Decimal(9, 1), Nullable(UInt8), Array(Nullable(UInt32)), Array(Int8)): while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::(anonymous namespace)::FunctionCast::createTupleWrapper(std::shared_ptr const&, DB::DataTypeTuple const*) const @ 0x000000000871abc1 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cfa00 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_1 SELECT number, 0 FROM numbers(10000) INSERT INTO t_sparse_mutations_4__fuzz_4 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_4 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Tuple can only be performed between tuple types or from String. Left type: UInt64, right type: Tuple(Date32, UInt8, Decimal(38, 2), Array(LowCardinality(Float32)), UInt64, UUID): while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. DB::(anonymous namespace)::FunctionCast::createTupleWrapper(std::shared_ptr const&, DB::DataTypeTuple const*) const @ 0x000000000871abc1 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cfa00 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_11 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_11 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column v. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_46 SELECT number, 0 FROM numbers(10000) Error on processing query 'INSERT INTO t_sparse_mutations_4__fuzz_46 SELECT number, 0 FROM numbers(10000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column number to destination column k. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000083d4a64 4. DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x0000000008718153 5. DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000086cf14a 6. DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000086c8c11 7. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000033226b27 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000033229f1d 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x00000000332710ae 10. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x0000000034bb0883 11. ./build_docker/./src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x0000000034bbac4c 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 15. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 20. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 21. ? @ 0x00007fa035818ac3 22. ? @ 0x00007fa0358aa850 INSERT INTO t_sparse_mutations_4__fuzz_0 SELECT number, 0 FROM numbers(10000) Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 EXPLAIN ESTIMATE SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 2 out of 1000 EXPLAIN AST SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('type'): type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORD. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 4 out of 1000 EXPLAIN AST SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 5 out of 1000 EXPLAIN AST SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 6 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 7 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 8 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORDER BY name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 9 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 10 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORDER BY name ASC Query succeeded, using this AST as a start Fuzzing step 11 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORDER BY name ASC Got boring AST Fuzzing step 12 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORDER BY name ASC Got boring AST Fuzzing step 13 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORDER BY name ASC Got boring AST Fuzzing step 14 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND equals('v') AND active ORDER BY name ASC Error on processing query 'SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND equals('v') AND active ORDER BY name ASC': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND equals('v') AND active ORDER BY name ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 15 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORDER BY name DESC Query succeeded, using this AST as a start Fuzzing step 16 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORDER BY name DESC Got boring AST Fuzzing step 17 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORDER BY name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 18 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND equals('v') AND active ORDER BY name DESC NULLS FIRST Error on processing query 'SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND equals('v') AND active ORDER BY name DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND equals('v') AND active ORDER BY name DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 19 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORDER BY name DESC NULLS FIRST Got boring AST Fuzzing step 20 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORDER BY name DESC NULLS FIRST Got boring AST Fuzzing step 21 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = 'v') AND active ORDER BY name DESC NULLS FIRST Got boring AST Fuzzing step 22 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND (column = toLowCardinality('v')) AND active ORDER BY name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 23 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND equals(column) AND active ORDER BY name DESC NULLS FIRST Error on processing query 'SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND equals(column) AND active ORDER BY name DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND equals(column) AND active ORDER BY name DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 24 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND materialize(toNullable(toNullable(1))) AND (column = toLowCardinality('v')) AND active ORDER BY name DESC Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND materialize(toNullable(toNullable(1))) AND (column = toLowCardinality('v')) AND active ORDER BY name DESC Got boring AST Fuzzing step 26 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE equals(database) AND (`table` = 't_sparse_mutations_4') AND materialize(toNullable(toNullable(1))) AND (column = toLowCardinality('v')) AND active ORDER BY name DESC Error on processing query 'SELECT type, serialization_kind FROM system.parts_columns WHERE equals(database) AND (`table` = 't_sparse_mutations_4') AND materialize(toNullable(toNullable(1))) AND (column = toLowCardinality('v')) AND active ORDER BY name DESC': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT type, serialization_kind FROM system.parts_columns WHERE equals(database) AND (`table` = 't_sparse_mutations_4') AND materialize(toNullable(toNullable(1))) AND (column = toLowCardinality('v')) AND active ORDER BY name DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 27 out of 1000 EXPLAIN QUERY TREE SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND materialize(toNullable(1)) AND (column = toLowCardinality('v')) AND active ORDER BY name DESC Query succeeded, using this AST as a start Fuzzing step 28 out of 1000 EXPLAIN QUERY TREE SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND materialize(toNullable(1)) AND (column = toLowCardinality('v')) AND active ORDER BY name DESC Got boring AST Fuzzing step 29 out of 1000 EXPLAIN SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND materialize(toNullable(1)) AND (column = toLowCardinality('v')) AND active ORDER BY name DESC Query succeeded, using this AST as a start Fuzzing step 30 out of 1000 EXPLAIN PIPELINE SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND materialize(toNullable(1)) AND (column = toLowCardinality('v')) AND active ORDER BY name DESC Query succeeded, using this AST as a start Fuzzing step 31 out of 1000 EXPLAIN PIPELINE SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND materialize(toNullable(1)) AND (column = toLowCardinality('v')) AND active ORDER BY name DESC Got boring AST Fuzzing step 32 out of 1000 EXPLAIN PIPELINE SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND materialize(toNullable(1)) AND (column = toLowCardinality('v')) AND active ORDER BY name DESC Got boring AST Fuzzing step 33 out of 1000 EXPLAIN AST SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND materialize(toNullable(1)) AND (column = toLowCardinality('v')) AND active ORDER BY name DESC Query succeeded, using this AST as a start Fuzzing step 34 out of 1000 EXPLAIN QUERY TREE SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND materialize(toNullable(1)) AND (column = toLowCardinality('v')) AND active ORDER BY name DESC Query succeeded, using this AST as a start Fuzzing step 35 out of 1000 EXPLAIN QUERY TREE SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND materialize(toNullable(1)) AND (column = toLowCardinality('v')) AND active ORDER BY name DESC Got boring AST Fuzzing step 36 out of 1000 EXPLAIN SYNTAX SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND materialize(toNullable(1)) AND (column = toLowCardinality('v')) AND active ORDER BY name DESC Query succeeded, using this AST as a start Fuzzing step 37 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND materialize(toNullable(1)) AND (column = toLowCardinality('v')) AND active ORDER BY name DESC Query succeeded, using this AST as a start Fuzzing step 38 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND toNullable(1) AND (column = toLowCardinality('v')) AND active ORDER BY name DESC Query succeeded, using this AST as a start Fuzzing step 39 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND toNullable(1) AND (column = toLowCardinality('v')) AND active ORDER BY name DESC Got boring AST Fuzzing step 40 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND toNullable(1) AND (column = toLowCardinality('v')) AND active ORDER BY name DESC Got boring AST Fuzzing step 41 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND toNullable(1) AND (column = toLowCardinality('v')) AND active ORDER BY name DESC Got boring AST Fuzzing step 42 out of 1000 EXPLAIN PIPELINE compact = true SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND toNullable(1) AND (column = toLowCardinality('v')) AND active GROUP BY 1024, 'aaaxxxaa\0xxx', toLowCardinality(12), (number / toUInt256(countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern), materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(2) ORDER BY name DESC Error on processing query 'EXPLAIN PIPELINE compact = true SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND toNullable(1) AND (column = toLowCardinality('v')) AND active GROUP BY 1024, 'aaaxxxaa\0xxx', toLowCardinality(12), (number / toUInt256(countSubstringsCaseInsensitiveUTF8('aaaxxxaa\0xxx', 12, pattern), materialize(x1 OR x2 OR x3, toNullable(8)))) % toUInt128(2) ORDER BY name DESC': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 43 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND toNullable(1) AND (column = toLowCardinality('v')) AND active ORDER BY tab__fuzz_6 ASC NULLS FIRST, name DESC Error on processing query 'SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND toNullable(1) AND (column = toLowCardinality('v')) AND active ORDER BY tab__fuzz_6 ASC NULLS FIRST, name DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'tab__fuzz_6' in scope SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND toNullable(1) AND (column = toLowCardinality('v')) AND active ORDER BY tab__fuzz_6 ASC NULLS FIRST, name DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 44 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND toNullable(1) AND (column = toLowCardinality('v')) AND active ORDER BY name ASC Query succeeded, using this AST as a start Fuzzing step 45 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND toNullable(1) AND (column = 'v') AND active ORDER BY name ASC Query succeeded, using this AST as a start Fuzzing step 46 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND toNullable(1) AND (column = 'v') AND active ORDER BY name ASC Got boring AST Fuzzing step 47 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND toNullable(1) AND (column = 'v') AND active ORDER BY name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 48 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND toNullable(1) AND (column = 'v') AND active ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 49 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND toNullable(1) AND (column = 'v') AND active ORDER BY name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 50 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND toNullable(1) AND (column = 'v') AND active ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 51 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND toNullable(1) AND (column = 'v') AND active ORDER BY name ASC Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND toNullable(1) AND (column = 'v') ORDER BY name ASC Query succeeded, using this AST as a start Fuzzing step 53 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND toNullable(1) AND (column = 'v') ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 54 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND toNullable(1) AND (column = 'v') ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 55 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 SELECT type, serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 57 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 58 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 59 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 60 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 61 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 62 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name DESC NULLS LAST Got boring AST Fuzzing step 63 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name DESC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 64 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name DESC NULLS LAST Got boring AST Fuzzing step 65 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name DESC NULLS LAST Got boring AST Fuzzing step 66 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name DESC NULLS LAST Got boring AST Fuzzing step 67 out of 1000 SELECT serialization_kind FROM system.parts_columns PREWHERE (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name ASC NULLS FIRST Error on processing query 'SELECT serialization_kind FROM system.parts_columns PREWHERE (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Storage SystemPartsColumns (table system.parts_columns (17067d00-cad4-413f-9241-2d4ddda8e5b7)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:220: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000003360a15d 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000336096aa 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000336096aa 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000336096aa 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x00000000336096aa 9. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x0000000033602c20 10. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 11. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 12. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 16. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 21. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 22. ? @ 0x00007fa035818ac3 23. ? @ 0x00007fa0358aa850 Fuzzing step 68 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name DESC NULLS LAST Got boring AST Fuzzing step 69 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 70 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 71 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 72 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 73 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 74 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND equals(toUInt8((number / 8) % toUInt128(2)), `table`, 't_sparse_mutations_4') AND 1 AND equals(column, toNullable(100), 'v') ORDER BY name ASC NULLS FIRST Error on processing query 'SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND equals(toUInt8((number / 8) % toUInt128(2)), `table`, 't_sparse_mutations_4') AND 1 AND equals(column, toNullable(100), 'v') ORDER BY name ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND equals(toUInt8((number / 8) % toUInt128(2)), `table`, 't_sparse_mutations_4') AND 1 AND equals(column, toNullable(100), 'v') ORDER BY name ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 16. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 19. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 28. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 Fuzzing step 75 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 76 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 77 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE (database = currentDatabase()) AND (`table` = 't_sparse_mutations_4') AND 1 AND (column = 'v') ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 78 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 79 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 80 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Got boring AST Fuzzing step 81 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Got boring AST Fuzzing step 83 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Got boring AST Fuzzing step 84 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Got boring AST Fuzzing step 85 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Got boring AST Fuzzing step 86 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Got boring AST Fuzzing step 87 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 88 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Got boring AST Fuzzing step 89 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 90 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 91 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 92 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 93 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 94 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Query succeeded, using this AST as a start Fuzzing step 96 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 97 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 98 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 99 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 100 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 101 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 102 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 103 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 105 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 106 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 107 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 108 out of 1000 SELECT serialization_kind FROM system.parts_columns PREWHERE number / toLowCardinality(8) ORDER BY name DESC NULLS LAST Error on processing query 'SELECT serialization_kind FROM system.parts_columns PREWHERE number / toLowCardinality(8) ORDER BY name DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT serialization_kind FROM system.parts_columns PREWHERE number / toLowCardinality(8) ORDER BY name DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 16. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 20. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 25. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 26. ? @ 0x00007fa035818ac3 27. ? @ 0x00007fa0358aa850 Fuzzing step 109 out of 1000 SELECT serialization_kind FROM system.parts_columns PREWHERE tab__fuzz_18 ORDER BY name ASC NULLS FIRST Error on processing query 'SELECT serialization_kind FROM system.parts_columns PREWHERE tab__fuzz_18 ORDER BY name ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'tab__fuzz_18' in scope SELECT serialization_kind FROM system.parts_columns PREWHERE tab__fuzz_18 ORDER BY name ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 110 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 111 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 112 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 113 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 114 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Query succeeded, using this AST as a start Fuzzing step 115 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 117 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 118 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 119 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 120 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 121 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 122 out of 1000 SELECT serialization_kind FROM system.parts_columns PREWHERE toUInt128(toUInt256(2)) ORDER BY name ASC NULLS LAST Error on processing query 'SELECT serialization_kind FROM system.parts_columns PREWHERE toUInt128(toUInt256(2)) ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Storage SystemPartsColumns (table system.parts_columns (17067d00-cad4-413f-9241-2d4ddda8e5b7)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000838466d 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:257: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000003360556e 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000034d07869 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000034cfd8b2 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000034cf6172 8. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5bf1 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 11. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 16. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 17. ? @ 0x00007fa035818ac3 18. ? @ 0x00007fa0358aa850 Fuzzing step 123 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY number / toNullable(8) ASC, name ASC NULLS FIRST Error on processing query 'SELECT serialization_kind FROM system.parts_columns ORDER BY number / toNullable(8) ASC, name ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT serialization_kind FROM system.parts_columns ORDER BY number / toNullable(8) ASC, name ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 124 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 125 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Got boring AST Fuzzing step 126 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Got boring AST Fuzzing step 127 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 128 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Got boring AST Fuzzing step 129 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Got boring AST Fuzzing step 130 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 131 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 132 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 133 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 134 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 135 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 136 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 137 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 138 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 139 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 141 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Query succeeded, using this AST as a start Fuzzing step 142 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 143 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 144 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 145 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Query succeeded, using this AST as a start Fuzzing step 146 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 147 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY (x1 AND x2) AND (toLowCardinality(0) AND toLowCardinality(1000) AND x3 AND x4) DESC, name ASC NULLS FIRST Error on processing query 'SELECT serialization_kind FROM system.parts_columns ORDER BY (x1 AND x2) AND (toLowCardinality(0) AND toLowCardinality(1000) AND x3 AND x4) DESC, name ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'x1' in scope SELECT serialization_kind FROM system.parts_columns ORDER BY (x1 AND x2) AND (toLowCardinality(0) AND toLowCardinality(1000) AND x3 AND x4) DESC, name ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 148 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Query succeeded, using this AST as a start Fuzzing step 149 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 150 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 151 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 153 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 154 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Got boring AST Fuzzing step 155 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Query succeeded, using this AST as a start Fuzzing step 156 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 157 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 158 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 159 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Got boring AST Fuzzing step 160 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 161 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Got boring AST Fuzzing step 162 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Got boring AST Fuzzing step 163 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 165 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 166 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 167 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 168 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 169 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 170 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 171 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Got boring AST Fuzzing step 172 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Got boring AST Fuzzing step 173 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 174 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY sum(if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), 1, 0)) ASC, name DESC NULLS FIRST Error on processing query 'SELECT serialization_kind FROM system.parts_columns ORDER BY sum(if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), 1, 0)) ASC, name DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT serialization_kind FROM system.parts_columns ORDER BY sum(if((b != 100) AND 100 AND equals(c, t__fuzz_38, 0), 1, 0)) ASC, name DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 29. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 Fuzzing step 175 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Got boring AST Fuzzing step 176 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Got boring AST Fuzzing step 177 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY toUInt8((number / toNullable(8)) % toUInt256(2)) ASC, name DESC NULLS FIRST Error on processing query 'SELECT serialization_kind FROM system.parts_columns ORDER BY toUInt8((number / toNullable(8)) % toUInt256(2)) ASC, name DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT serialization_kind FROM system.parts_columns ORDER BY toUInt8((number / toNullable(8)) % toUInt256(2)) ASC, name DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 178 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Got boring AST Fuzzing step 179 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Got boring AST Fuzzing step 180 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Query succeeded, using this AST as a start Fuzzing step 181 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Query succeeded, using this AST as a start Fuzzing step 182 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 183 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 184 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 185 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 186 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12), 12) DESC, name ASC NULLS FIRST Error on processing query 'SELECT serialization_kind FROM system.parts_columns ORDER BY toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12), 12) DESC, name ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT serialization_kind FROM system.parts_columns ORDER BY toFixedString(toFixedString('aaaxxxaa\0xxx', 12), toLowCardinality(12), 12) DESC, name ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 19. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 23. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 28. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 29. ? @ 0x00007fa035818ac3 30. ? @ 0x00007fa0358aa850 Fuzzing step 187 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 188 out of 1000 SELECT serialization_kind FROM system.parts_columns PREWHERE toUInt8((number / toUInt256(8)) % materialize(2)) ORDER BY name ASC NULLS FIRST Error on processing query 'SELECT serialization_kind FROM system.parts_columns PREWHERE toUInt8((number / toUInt256(8)) % materialize(2)) ORDER BY name ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'number' in scope SELECT serialization_kind FROM system.parts_columns PREWHERE toUInt8((number / toUInt256(8)) % materialize(2)) ORDER BY name ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 189 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 190 out of 1000 EXPLAIN AST optimize = true SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Error on processing query 'EXPLAIN AST optimize = true SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "optimize" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495f93b 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 191 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 192 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Query succeeded, using this AST as a start Fuzzing step 193 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 194 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 195 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Query succeeded, using this AST as a start Fuzzing step 196 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 197 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 198 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 199 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 200 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 201 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 202 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true, compact = true SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true, compact = true SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 203 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 204 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE tab__fuzz_40 ORDER BY name DESC Error on processing query 'SELECT serialization_kind FROM system.parts_columns WHERE tab__fuzz_40 ORDER BY name DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'tab__fuzz_40' in scope SELECT serialization_kind FROM system.parts_columns WHERE tab__fuzz_40 ORDER BY name DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 205 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 206 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 207 out of 1000 EXPLAIN AST optimize = true SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Error on processing query 'EXPLAIN AST optimize = true SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "optimize" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003495f93b 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 208 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 209 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 210 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 211 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 212 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 213 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 214 out of 1000 SELECT serialization_kind FROM system.parts_columns PREWHERE ' ' ORDER BY name DESC Error on processing query 'SELECT serialization_kind FROM system.parts_columns PREWHERE ' ' ORDER BY name DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: String. In query SELECT serialization_kind FROM system.parts_columns PREWHERE ' ' ORDER BY name DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 215 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Query succeeded, using this AST as a start Fuzzing step 216 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 217 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 218 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 219 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 220 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 221 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 222 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 223 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 224 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 225 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 226 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 227 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 228 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 229 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 230 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 231 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 232 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 233 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 234 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 235 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 236 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 237 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 238 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 239 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 240 out of 1000 SELECT serialization_kind FROM system.parts_columns PREWHERE intDiv(toUInt32(rtime), toUInt256(20)) * 1000 ORDER BY name ASC NULLS FIRST Error on processing query 'SELECT serialization_kind FROM system.parts_columns PREWHERE intDiv(toUInt32(rtime), toUInt256(20)) * 1000 ORDER BY name ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'rtime' in scope SELECT serialization_kind FROM system.parts_columns PREWHERE intDiv(toUInt32(rtime), toUInt256(20)) * 1000 ORDER BY name ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 241 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 242 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 243 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 244 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Got boring AST Fuzzing step 245 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Got boring AST Fuzzing step 246 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Got boring AST Fuzzing step 247 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Query succeeded, using this AST as a start Fuzzing step 248 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 249 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 250 out of 1000 SELECT toFixedString(toLowCardinality(23), materialize(toNullable(toUInt256(23)))), serialization_kind FROM system.parts_columns ORDER BY name DESC Error on processing query 'SELECT toFixedString(toLowCardinality(23), materialize(toNullable(toUInt256(23)))), serialization_kind FROM system.parts_columns ORDER BY name DESC': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT toFixedString(toLowCardinality(23), materialize(toNullable(toUInt256(23)))), serialization_kind FROM system.parts_columns ORDER BY name DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x00000000083e762a 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000001c62afa5 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000083d29bf 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60b15e 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 21. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 25. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 30. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 31. ? @ 0x00007fa035818ac3 Fuzzing step 251 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 252 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 253 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 254 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 255 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 256 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 257 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 258 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 259 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 260 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 261 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 262 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 263 out of 1000 SELECT serialization_kind FROM system.parts_columns GROUP BY toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12), position(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7), pattern) ORDER BY name DESC NULLS FIRST Error on processing query 'SELECT serialization_kind FROM system.parts_columns GROUP BY toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12), position(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7), pattern) ORDER BY name DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'pattern' in scope SELECT serialization_kind FROM system.parts_columns GROUP BY toFixedString(toFixedString(toFixedString('aaaxxxaa\0xxx', toNullable(12)), 12), 12), position(toFixedString(toFixedString(toFixedString(toLowCardinality('aaaaa\0x'), 7), 7), 7), pattern) ORDER BY name DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 264 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Got boring AST Fuzzing step 265 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Got boring AST Fuzzing step 266 out of 1000 SELECT column = 'v', serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 267 out of 1000 SELECT column = 'v', serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Got boring AST Fuzzing step 268 out of 1000 SELECT column = 'v', serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Got boring AST Fuzzing step 269 out of 1000 SELECT column = toNullable(toFixedString('v', 1)), serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 270 out of 1000 SELECT column = toNullable(toFixedString('v')), serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Error on processing query 'SELECT column = toNullable(toFixedString('v')), serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT column = toNullable(toFixedString('v')), serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 18. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 271 out of 1000 SELECT column = toNullable('v', 1) FROM system.parts_columns ORDER BY name DESC NULLS FIRST Error on processing query 'SELECT column = toNullable('v', 1) FROM system.parts_columns ORDER BY name DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT column = toNullable('v', 1) FROM system.parts_columns ORDER BY name DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 272 out of 1000 SELECT column = toNullable('v', 1), serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Error on processing query 'SELECT column = toNullable('v', 1), serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT column = toNullable('v', 1), serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 15. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 273 out of 1000 SELECT column = toNullable(toFixedString('v', 1)), serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Got boring AST Fuzzing step 274 out of 1000 SELECT column = toNullable(toFixedString('v', 1)), serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Got boring AST Fuzzing step 275 out of 1000 SELECT column = toFixedString('v', 1), serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 276 out of 1000 SELECT column = toFixedString('v', 1), serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 277 out of 1000 SELECT column = toFixedString('v', 1), serialization_kind FROM system.parts_columns ORDER BY name DESC NULLS LAST Got boring AST Fuzzing step 278 out of 1000 SELECT column = toFixedString('v', 1), serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 279 out of 1000 SELECT column = toFixedString('v', 1), serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 280 out of 1000 SELECT column = toFixedString('v', 1), serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 281 out of 1000 SELECT column = toFixedString('v', 1), serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 282 out of 1000 SELECT equals(toFixedString('v', 1)), serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'SELECT equals(toFixedString('v', 1)), serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT equals(toFixedString('v', 1)), serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 12. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 20. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 24. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 29. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 30. ? @ 0x00007fa035818ac3 31. ? @ 0x00007fa0358aa850 Fuzzing step 283 out of 1000 SELECT column = toFixedString('v', 1), serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 284 out of 1000 SELECT column = toFixedString('v', 1), serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 285 out of 1000 SELECT equals(column, tab__fuzz_19, 'v', 1), serialization_kind FROM system.parts_columns PREWHERE multiIf(s IN ('a', 'b'), materialize(toNullable(toNullable(1))), toUInt256(1), 0) ORDER BY name ASC NULLS FIRST Error on processing query 'SELECT equals(column, tab__fuzz_19, 'v', 1), serialization_kind FROM system.parts_columns PREWHERE multiIf(s IN ('a', 'b'), materialize(toNullable(toNullable(1))), toUInt256(1), 0) ORDER BY name ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'tab__fuzz_19' in scope SELECT equals(column, tab__fuzz_19, 'v', 1), serialization_kind FROM system.parts_columns PREWHERE multiIf(s IN ('a', 'b'), materialize(toNullable(toNullable(1))), toUInt256(1), 0) ORDER BY name ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 286 out of 1000 SELECT column = toFixedString('v', 1), serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 287 out of 1000 SELECT column = toFixedString('v', toNullable(1)), serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 288 out of 1000 SELECT column = toFixedString('v', toNullable(1)), serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 289 out of 1000 SELECT column = toFixedString('v', toNullable(1)), serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 290 out of 1000 SELECT column = toFixedString('v', toNullable(1)), serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 291 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 292 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 293 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 294 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 295 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 296 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 297 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 298 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 299 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 300 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 301 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 302 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 303 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 304 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 305 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 306 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 307 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 308 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 309 out of 1000 SELECT serialization_kind FROM system.parts_columns PREWHERE toFixedString('v', 1) ORDER BY name ASC NULLS LAST Error on processing query 'SELECT serialization_kind FROM system.parts_columns PREWHERE toFixedString('v', 1) ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: FixedString(1). In query SELECT serialization_kind FROM system.parts_columns PREWHERE toFixedString('v', 1) ORDER BY name ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 310 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 311 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 312 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 313 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 314 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Query succeeded, using this AST as a start Fuzzing step 315 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 316 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 317 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 318 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Query succeeded, using this AST as a start Fuzzing step 319 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 320 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 321 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 322 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Query succeeded, using this AST as a start Fuzzing step 323 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Query succeeded, using this AST as a start Fuzzing step 324 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 325 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Query succeeded, using this AST as a start Fuzzing step 326 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 327 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 328 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 329 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 330 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 331 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 332 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 333 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 334 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 335 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 336 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 337 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 338 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 339 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 340 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Query succeeded, using this AST as a start Fuzzing step 341 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 342 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 343 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 344 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 345 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 346 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 347 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 348 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Got boring AST Fuzzing step 349 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 350 out of 1000 SELECT serialization_kind FROM system.parts_columns PREWHERE (sum(t__fuzz_41, if((b != toNullable(100)) AND toNullable(toUInt256(100)) AND (c = 0), 1, 0)) IGNORE NULLS AND x1 AND x2) AND (b != materialize(materialize(100))) AND (0 AND toLowCardinality(1000) AND x4) ORDER BY name ASC NULLS FIRST Error on processing query 'SELECT serialization_kind FROM system.parts_columns PREWHERE (sum(t__fuzz_41, if((b != toNullable(100)) AND toNullable(toUInt256(100)) AND (c = 0), 1, 0)) IGNORE NULLS AND x1 AND x2) AND (b != materialize(materialize(100))) AND (0 AND toLowCardinality(1000) AND x4) ORDER BY name ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 't__fuzz_41' in scope SELECT serialization_kind FROM system.parts_columns PREWHERE (sum(t__fuzz_41, if((b != toNullable(100)) AND toNullable(toUInt256(100)) AND (c = 0), 1, 0)) IGNORE NULLS AND x1 AND x2) AND (b != materialize(materialize(100))) AND (0 AND toLowCardinality(1000) AND x4) ORDER BY name ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 13. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 22. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 26. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 31. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 Fuzzing step 351 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 352 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 353 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 354 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 355 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 356 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 357 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 358 out of 1000 EXPLAIN TABLE OVERRIDE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 359 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 360 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 361 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 362 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 363 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 364 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 365 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 366 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 367 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 368 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 369 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 370 out of 1000 EXPLAIN TABLE OVERRIDE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 371 out of 1000 EXPLAIN TABLE OVERRIDE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 372 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 373 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 374 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 375 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 376 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 377 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 378 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 379 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 380 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 381 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 382 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 383 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 384 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 385 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 386 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 387 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 388 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 389 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 390 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 391 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 392 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 393 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 394 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 395 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 396 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 397 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 398 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 399 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 400 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 401 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 402 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 403 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 404 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 405 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 406 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 407 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 408 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 409 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 410 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 411 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 412 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 413 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 414 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 415 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 416 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 417 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 418 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 419 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 420 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 421 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 422 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 423 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 424 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 425 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 426 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 427 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 428 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 429 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 430 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 431 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 432 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 433 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 434 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 435 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 436 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 437 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 438 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 439 out of 1000 EXPLAIN TABLE OVERRIDE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 440 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 441 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 442 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 443 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 444 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 445 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 446 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 447 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 448 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 449 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 450 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 451 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 452 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 453 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 454 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 455 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 456 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 457 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 458 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 459 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 460 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 461 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 463 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 464 out of 1000 EXPLAIN TABLE OVERRIDE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 465 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 466 out of 1000 EXPLAIN TABLE OVERRIDE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 467 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 468 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 469 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 470 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 471 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 472 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 473 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 474 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 475 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 476 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 477 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 478 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 479 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 480 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 481 out of 1000 EXPLAIN TABLE OVERRIDE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 482 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 483 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 484 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 486 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 487 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 488 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 489 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 490 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 491 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 492 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 493 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 494 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 495 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 496 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 497 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 498 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 499 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 500 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 501 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 503 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 504 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 505 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS LAST Got boring AST Fuzzing step 506 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 507 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC NULLS FIRST Got boring AST Fuzzing step 508 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name ASC Query succeeded, using this AST as a start Fuzzing step 509 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Query succeeded, using this AST as a start Fuzzing step 510 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 511 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 512 out of 1000 EXPLAIN PIPELINE header = true SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Error on processing query 'EXPLAIN PIPELINE header = true SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x000000003496041d 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 513 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 514 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 515 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 516 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 517 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY name DESC Got boring AST Fuzzing step 518 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 519 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS FIRST Got boring AST Fuzzing step 520 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC NULLS FIRST Got boring AST Fuzzing step 522 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 523 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC Query succeeded, using this AST as a start Fuzzing step 525 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name ASC Query succeeded, using this AST as a start Fuzzing step 526 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC Query succeeded, using this AST as a start Fuzzing step 527 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC Got boring AST Fuzzing step 528 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC Got boring AST Fuzzing step 529 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC Got boring AST Fuzzing step 530 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 531 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 532 out of 1000 SELECT serialization_kind FROM system.parts_columns GROUP BY version_pair[materialize(1)] ORDER BY materialize(' ') DESC, materialize(toUInt256(1)) ASC NULLS FIRST, name DESC Error on processing query 'SELECT serialization_kind FROM system.parts_columns GROUP BY version_pair[materialize(1)] ORDER BY materialize(' ') DESC, materialize(toUInt256(1)) ASC NULLS FIRST, name DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'version_pair' in scope SELECT serialization_kind FROM system.parts_columns GROUP BY version_pair[materialize(1)] ORDER BY materialize(' ') DESC, materialize(toUInt256(1)) ASC NULLS FIRST, name DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 18. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 22. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 27. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 28. ? @ 0x00007fa035818ac3 29. ? @ 0x00007fa0358aa850 Fuzzing step 533 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 534 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS FIRST Got boring AST Fuzzing step 535 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS FIRST Got boring AST Fuzzing step 536 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 537 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS LAST Got boring AST Fuzzing step 538 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS LAST Got boring AST Fuzzing step 539 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS LAST Got boring AST Fuzzing step 540 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE t__fuzz_38 ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS LAST Error on processing query 'SELECT serialization_kind FROM system.parts_columns WHERE t__fuzz_38 ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 't__fuzz_38' in scope SELECT serialization_kind FROM system.parts_columns WHERE t__fuzz_38 ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 541 out of 1000 SELECT serialization_kind FROM system.parts_columns GROUP BY sum(if(1, toLowCardinality(0))) IGNORE NULLS, toUInt8((number / 1024) % 2), positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), materialize(toNullable(7))), pattern), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23) ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS LAST Error on processing query 'SELECT serialization_kind FROM system.parts_columns GROUP BY sum(if(1, toLowCardinality(0))) IGNORE NULLS, toUInt8((number / 1024) % 2), positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), materialize(toNullable(7))), pattern), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23) ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope SELECT serialization_kind FROM system.parts_columns GROUP BY sum(if(1, toLowCardinality(0))) IGNORE NULLS, toUInt8((number / 1024) % 2), positionCaseInsensitive(toFixedString(toFixedString('aaaaa\0x', 7), materialize(toNullable(7))), pattern), toFixedString(toFixedString(toFixedString('test_cluster_two_shards', 23), 23), 23) ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000b60d377 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000000b609265 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000000b60a3eb 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000000b609cba 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000b60b9ac 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334af94d 9. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 23. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 27. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece Fuzzing step 542 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 543 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Got boring AST Fuzzing step 544 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Got boring AST Fuzzing step 545 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 546 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name DESC NULLS FIRST Got boring AST Fuzzing step 547 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name DESC Query succeeded, using this AST as a start Fuzzing step 548 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 549 out of 1000 SELECT serialization_kind FROM system.parts_columns PREWHERE toFixedString('aaaxxxaa\0xxx', 12) ORDER BY materialize(toUInt256(1)) DESC, name DESC NULLS FIRST Error on processing query 'SELECT serialization_kind FROM system.parts_columns PREWHERE toFixedString('aaaxxxaa\0xxx', 12) ORDER BY materialize(toUInt256(1)) DESC, name DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: FixedString(12). In query SELECT serialization_kind FROM system.parts_columns PREWHERE toFixedString('aaaxxxaa\0xxx', 12) ORDER BY materialize(toUInt256(1)) DESC, name DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 550 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 551 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 552 out of 1000 EXPLAIN AST SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 553 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 555 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Got boring AST Fuzzing step 556 out of 1000 EXPLAIN TABLE OVERRIDE SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 557 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 558 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 559 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 560 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 561 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 562 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Got boring AST Fuzzing step 563 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Got boring AST Fuzzing step 564 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 565 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name DESC NULLS FIRST Got boring AST Fuzzing step 566 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 567 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Got boring AST Fuzzing step 568 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 569 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC Query succeeded, using this AST as a start Fuzzing step 570 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC Query succeeded, using this AST as a start Fuzzing step 571 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC Got boring AST Fuzzing step 572 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 573 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC NULLS FIRST Got boring AST Fuzzing step 574 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC Query succeeded, using this AST as a start Fuzzing step 575 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 576 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 577 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 578 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC NULLS FIRST Got boring AST Fuzzing step 579 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC NULLS FIRST Got boring AST Fuzzing step 580 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000034982397 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:323: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034961570 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 9. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 14. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 15. ? @ 0x00007fa035818ac3 16. ? @ 0x00007fa0358aa850 Fuzzing step 581 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 582 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS FIRST Got boring AST Fuzzing step 583 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name DESC Query succeeded, using this AST as a start Fuzzing step 584 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name DESC Got boring AST Fuzzing step 585 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC Query succeeded, using this AST as a start Fuzzing step 586 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC Query succeeded, using this AST as a start Fuzzing step 587 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC Query succeeded, using this AST as a start Fuzzing step 588 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 589 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE version_pair ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS LAST Error on processing query 'SELECT serialization_kind FROM system.parts_columns WHERE version_pair ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'version_pair' in scope SELECT serialization_kind FROM system.parts_columns WHERE version_pair ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 17. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 22. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 23. ? @ 0x00007fa035818ac3 24. ? @ 0x00007fa0358aa850 Fuzzing step 590 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS LAST Got boring AST Fuzzing step 591 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS LAST Got boring AST Fuzzing step 592 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name DESC Query succeeded, using this AST as a start Fuzzing step 593 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name ASC Query succeeded, using this AST as a start Fuzzing step 594 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name ASC Got boring AST Fuzzing step 595 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name ASC Query succeeded, using this AST as a start Fuzzing step 596 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 597 out of 1000 SELECT serialization_kind FROM system.parts_columns PREWHERE if(if((b != toUInt256(100)) AND (c > 220), 1, 0) AND (b != 100) AND (c = 0), toNullable(1), 0) ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name DESC NULLS FIRST Error on processing query 'SELECT serialization_kind FROM system.parts_columns PREWHERE if(if((b != toUInt256(100)) AND (c > 220), 1, 0) AND (b != 100) AND (c = 0), toNullable(1), 0) ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'b' in scope SELECT serialization_kind FROM system.parts_columns PREWHERE if(if((b != toUInt256(100)) AND (c > 220), 1, 0) AND (b != 100) AND (c = 0), toNullable(1), 0) ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 17. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 18. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436df8 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 26. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 30. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 Fuzzing step 598 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name ASC NULLS LAST Got boring AST Fuzzing step 599 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 600 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name ASC NULLS FIRST Got boring AST Fuzzing step 601 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 602 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name ASC NULLS LAST Got boring AST Fuzzing step 603 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name ASC NULLS LAST Got boring AST Fuzzing step 604 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 605 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(toNullable(toUInt256(23)))) ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name ASC NULLS LAST Error on processing query 'SELECT serialization_kind FROM system.parts_columns WHERE toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(toNullable(toUInt256(23)))) ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(23)). In query SELECT serialization_kind FROM system.parts_columns WHERE toFixedString(toFixedString(toNullable('test_cluster_two_shards'), 23), toUInt128(toNullable(toUInt256(23)))) ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 606 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name ASC Query succeeded, using this AST as a start Fuzzing step 607 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name ASC Got boring AST Fuzzing step 608 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name ASC Query succeeded, using this AST as a start Fuzzing step 609 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name ASC Got boring AST Fuzzing step 610 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name ASC Got boring AST Fuzzing step 611 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name ASC Got boring AST Fuzzing step 612 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name ASC Got boring AST Fuzzing step 613 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name DESC Query succeeded, using this AST as a start Fuzzing step 614 out of 1000 EXPLAIN sorting = true SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name ASC Error on processing query 'EXPLAIN sorting = true SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name ASC': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "sorting" only integer settings are supported. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x0000000030bc602d 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x000000003496cdff 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000034954c44 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x00000000349520a4 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b83d5 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 10. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 15. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 16. ? @ 0x00007fa035818ac3 17. ? @ 0x00007fa0358aa850 Fuzzing step 615 out of 1000 SELECT test_alias__fuzz_19, serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name DESC Error on processing query 'SELECT test_alias__fuzz_19, serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'test_alias__fuzz_19' in scope SELECT test_alias__fuzz_19, serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334e6100 7. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033436ae2 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 616 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name DESC Got boring AST Fuzzing step 617 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name DESC Got boring AST Fuzzing step 618 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name DESC Got boring AST Fuzzing step 619 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name DESC Query succeeded, using this AST as a start Fuzzing step 620 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name DESC Got boring AST Fuzzing step 621 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 622 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name DESC NULLS FIRST Got boring AST Fuzzing step 623 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 624 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 625 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC Query succeeded, using this AST as a start Fuzzing step 626 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC Got boring AST Fuzzing step 627 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 628 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name DESC NULLS LAST Got boring AST Fuzzing step 629 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name DESC NULLS LAST Got boring AST Fuzzing step 630 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 631 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 632 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 633 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 634 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 635 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC NULLS FIRST Got boring AST Fuzzing step 636 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name DESC NULLS FIRST Got boring AST Fuzzing step 637 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 638 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name ASC Query succeeded, using this AST as a start Fuzzing step 640 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name ASC Got boring AST Fuzzing step 641 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name ASC Got boring AST Fuzzing step 642 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name ASC Got boring AST Fuzzing step 643 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name ASC Got boring AST Fuzzing step 644 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name ASC Got boring AST Fuzzing step 645 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name ASC Got boring AST Fuzzing step 646 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Query succeeded, using this AST as a start Fuzzing step 647 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 648 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC NULLS FIRST Got boring AST Fuzzing step 649 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name ASC Query succeeded, using this AST as a start Fuzzing step 650 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name ASC Got boring AST Fuzzing step 651 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name ASC Got boring AST Fuzzing step 652 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name ASC Got boring AST Fuzzing step 653 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name ASC Query succeeded, using this AST as a start Fuzzing step 654 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name ASC Got boring AST Fuzzing step 655 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name ASC Query succeeded, using this AST as a start Fuzzing step 656 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name DESC Query succeeded, using this AST as a start Fuzzing step 657 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name DESC Query succeeded, using this AST as a start Fuzzing step 658 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name ASC Query succeeded, using this AST as a start Fuzzing step 659 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name ASC Got boring AST Fuzzing step 660 out of 1000 SELECT serialization_kind FROM system.parts_columns GROUP BY nums__fuzz_27 ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name ASC Error on processing query 'SELECT serialization_kind FROM system.parts_columns GROUP BY nums__fuzz_27 ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name ASC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'nums__fuzz_27' in scope SELECT serialization_kind FROM system.parts_columns GROUP BY nums__fuzz_27 ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000334e2b65 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033437608 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 19. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 24. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 25. ? @ 0x00007fa035818ac3 26. ? @ 0x00007fa0358aa850 Fuzzing step 661 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name ASC NULLS FIRST Got boring AST Fuzzing step 663 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 664 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name ASC NULLS FIRST Got boring AST Fuzzing step 665 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name ASC NULLS FIRST Got boring AST Fuzzing step 666 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 667 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name ASC NULLS FIRST Got boring AST Fuzzing step 668 out of 1000 EXPLAIN QUERY TREE SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 669 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 670 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name ASC NULLS FIRST Got boring AST Fuzzing step 671 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name ASC NULLS FIRST Got boring AST Fuzzing step 672 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name ASC NULLS FIRST Got boring AST Fuzzing step 673 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name ASC Query succeeded, using this AST as a start Fuzzing step 674 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 675 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name ASC NULLS LAST Got boring AST Fuzzing step 676 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name ASC NULLS LAST Got boring AST Fuzzing step 677 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name ASC NULLS LAST Got boring AST Fuzzing step 678 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toUInt256(23)), 23) ORDER BY materialize(toUInt256(1)) DESC, name ASC NULLS LAST Error on processing query 'SELECT serialization_kind FROM system.parts_columns WHERE toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toUInt256(23)), 23) ORDER BY materialize(toUInt256(1)) DESC, name ASC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: FixedString(23). In query SELECT serialization_kind FROM system.parts_columns WHERE toFixedString(toFixedString(materialize(toFixedString('test_cluster_two_shards', 23)), toUInt256(23)), 23) ORDER BY materialize(toUInt256(1)) DESC, name ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:801: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f743 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 679 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name ASC NULLS LAST Got boring AST Fuzzing step 680 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 681 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Query succeeded, using this AST as a start Fuzzing step 682 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name ASC Query succeeded, using this AST as a start Fuzzing step 683 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS LAST, name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 684 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 685 out of 1000 EXPLAIN PIPELINE SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Query succeeded, using this AST as a start Fuzzing step 686 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Got boring AST Fuzzing step 688 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Query succeeded, using this AST as a start Fuzzing step 689 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Got boring AST Fuzzing step 690 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('serialization_kind'): serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000840a53e 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bceea 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000003d1bd031 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358ad0d2 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 8. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 13. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 14. ? @ 0x00007fa035818ac3 15. ? @ 0x00007fa0358aa850 Fuzzing step 691 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Got boring AST Fuzzing step 692 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Got boring AST Fuzzing step 693 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Got boring AST Fuzzing step 694 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Got boring AST Fuzzing step 695 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Got boring AST Fuzzing step 696 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY cluster(toLowCardinality(toNullable(toFixedString('test_cluster_two_shards', 23))), currentDatabase(), test_alias) ASC, materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Error on processing query 'SELECT serialization_kind FROM system.parts_columns ORDER BY cluster(toLowCardinality(toNullable(toFixedString('test_cluster_two_shards', 23))), currentDatabase(), test_alias) ASC, materialize(toUInt256(1)) ASC NULLS FIRST, name ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'test_alias' in scope SELECT serialization_kind FROM system.parts_columns ORDER BY cluster(toLowCardinality(toNullable(toFixedString('test_cluster_two_shards', 23))), currentDatabase(), test_alias) ASC, materialize(toUInt256(1)) ASC NULLS FIRST, name ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000334dc079 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000033438704 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 17. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 21. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 26. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 27. ? @ 0x00007fa035818ac3 28. ? @ 0x00007fa0358aa850 Fuzzing step 697 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Query succeeded, using this AST as a start Fuzzing step 698 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Got boring AST Fuzzing step 699 out of 1000 EXPLAIN SYNTAX SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Query succeeded, using this AST as a start Fuzzing step 700 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Query succeeded, using this AST as a start Fuzzing step 701 out of 1000 EXPLAIN ESTIMATE SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Got boring AST Fuzzing step 702 out of 1000 EXPLAIN SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Query succeeded, using this AST as a start Fuzzing step 703 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Query succeeded, using this AST as a start Fuzzing step 704 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS FIRST, name ASC Got boring AST Fuzzing step 705 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name ASC Query succeeded, using this AST as a start Fuzzing step 706 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name ASC Query succeeded, using this AST as a start Fuzzing step 707 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name ASC Query succeeded, using this AST as a start Fuzzing step 708 out of 1000 SELECT serialization_kind FROM system.parts_columns PREWHERE toLowCardinality(toNullable('aaaaa\0x')) ORDER BY materialize(toUInt256(1)) DESC, name ASC Error on processing query 'SELECT serialization_kind FROM system.parts_columns PREWHERE toLowCardinality(toNullable('aaaaa\0x')) ORDER BY materialize(toUInt256(1)) DESC, name ASC': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: LowCardinality(Nullable(String)). In query SELECT serialization_kind FROM system.parts_columns PREWHERE toLowCardinality(toNullable('aaaaa\0x')) ORDER BY materialize(toUInt256(1)) DESC, name ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x00000000319e1f37 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:50: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000003359040a 5. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateFilters(std::shared_ptr const&) @ 0x000000003358f5a9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343ad08 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 14. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 18. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000004062d820 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: Poco::Net::TCPServerDispatcher::run() @ 0x000000004062e760 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x00000000405104f5 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000004050cece 23. ./base/poco/Foundation/include/Poco/AutoPtr.h:205: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000040509d91 24. ? @ 0x00007fa035818ac3 25. ? @ 0x00007fa0358aa850 Fuzzing step 709 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC, name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 710 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name ASC Query succeeded, using this AST as a start Fuzzing step 711 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC, name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 712 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 713 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name ASC NULLS FIRST Got boring AST Fuzzing step 714 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name ASC NULLS FIRST Got boring AST Fuzzing step 715 out of 1000 SELECT serialization_kind FROM system.parts_columns WHERE divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name ASC NULLS FIRST Error on processing query 'SELECT serialization_kind FROM system.parts_columns WHERE divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT serialization_kind FROM system.parts_columns WHERE divide(sum(if((a >= 0) AND (b != 100) AND (c = 0), 1, toNullable(toUInt128(Log, 0)))), number, 16) ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000403ed4e9 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000020032213 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000837fb9d 3. ./src/Common/Exception.h:0: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x00000000335017e7 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3684: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003345512b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 7. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 10. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349c225 12. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 15. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003344bf91 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000003349d355 18. ./contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003344ed06 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003343737c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000334334e6 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000334319d9 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000034985339 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000034cf4284 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000034ceb8ce 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x0000000034cf6cf5 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:270: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000034cf6853 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:818: ? @ 0x0000000034b948ec 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000358b5197 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000358a9d5d 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:723: DB::TCPHandler::runImpl() @ 0x000000003abd9038 31. ./build_docker/./src/Server/TCPHandler.cpp:0: DB::TCPHandler::run() @ 0x000000003ac2e251 Fuzzing step 716 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) ASC NULLS LAST, name ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 717 out of 1000 SELECT serialization_kind FROM system.parts_columns ORDER BY materialize(toUInt256(1)) DESC NULLS FIRST, name ASC